mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
Bug 825325 - ImageContainer::NotifyPaintedImage is not called on android. r=nical
This commit is contained in:
parent
ea6ba09621
commit
3f5531a79a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user