mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 934106 - Reduce ImageClient holding video frame number to one. r=nical
This commit is contained in:
parent
887cb957c0
commit
dd983902e3
@ -135,7 +135,11 @@ ImageContainer::ImageContainer(int flag)
|
||||
if (flag == ENABLE_ASYNC && ImageBridgeChild::IsCreated()) {
|
||||
// the refcount of this ImageClient is 1. we don't use a RefPtr here because the refcount
|
||||
// of this class must be done on the ImageBridge thread.
|
||||
mImageClient = ImageBridgeChild::GetSingleton()->CreateImageClient(BUFFER_IMAGE_BUFFERED).drop();
|
||||
if (gfxPlatform::GetPlatform()->UseDeprecatedTextures()) {
|
||||
mImageClient = ImageBridgeChild::GetSingleton()->CreateImageClient(BUFFER_IMAGE_BUFFERED).drop();
|
||||
} else {
|
||||
mImageClient = ImageBridgeChild::GetSingleton()->CreateImageClient(BUFFER_IMAGE_SINGLE).drop();
|
||||
}
|
||||
MOZ_ASSERT(mImageClient);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user