Bug 1199371 - Don't create TextureClients for video when the video isn't visible. r=nical

This commit is contained in:
Matt Woodrow
2015-09-01 15:35:55 -04:00
parent 59913621a2
commit a91f95030c
5 changed files with 84 additions and 1 deletions

View File

@@ -19,11 +19,25 @@ ImageLayer::ImageLayer(LayerManager* aManager, void* aImplData)
{}
ImageLayer::~ImageLayer()
{}
{
if (mContainer) {
mContainer->NotifyDetached();
}
}
void ImageLayer::SetContainer(ImageContainer* aContainer)
{
if (aContainer == mContainer) {
return;
}
if (mContainer) {
mContainer->NotifyDetached();
}
mContainer = aContainer;
if (mContainer) {
mContainer->NotifyAttached();
}
}
void ImageLayer::ComputeEffectiveTransforms(const gfx::Matrix4x4& aTransformToSurface)