Bug 825325 - ImageContainer::NotifyPaintedImage is not called on android. r=nical

This commit is contained in:
Paul Adenot
2013-01-15 19:57:04 +01:00
parent d993fff4ae
commit ee9eb7eda5

View File

@@ -262,6 +262,8 @@ BasicShadowableImageLayer::Paint(gfxContext* aContext, Layer* aMaskLayer)
uint32_t containerID = mContainer->GetAsyncContainerID();
BasicManager()->PaintedImage(BasicManager()->Hold(this),
SharedImageID(containerID));
AutoLockImage autoLock(mContainer);
mContainer->NotifyPaintedImage(autoLock.GetImage());
return;
}
@@ -287,6 +289,7 @@ BasicShadowableImageLayer::Paint(gfxContext* aContext, Layer* aMaskLayer)
SharedTextureDescriptor texture(data->mShareType, data->mHandle, data->mSize, data->mInverted);
SurfaceDescriptor descriptor(texture);
BasicManager()->PaintedImage(BasicManager()->Hold(this), descriptor);
mContainer->NotifyPaintedImage(image);
return;
}
@@ -345,6 +348,7 @@ BasicShadowableImageLayer::Paint(gfxContext* aContext, Layer* aMaskLayer)
BasicManager()->PaintedImage(BasicManager()->Hold(this),
yuv);
mContainer->NotifyPaintedImage(image);
return;
}