зеркало из https://github.com/mozilla/gecko-dev.git
Bug 934106 - Reduce ImageClient holding video frame number to one. r=nical
This commit is contained in:
Родитель
887cb957c0
Коммит
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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче