Bug 934106 - Reduce ImageClient holding video frame number to one. r=nical

This commit is contained in:
Sotaro Ikeda 2013-11-06 12:32:12 -05:00
parent 887cb957c0
commit dd983902e3

View File

@ -135,7 +135,11 @@ ImageContainer::ImageContainer(int flag)
if (flag == ENABLE_ASYNC && ImageBridgeChild::IsCreated()) { if (flag == ENABLE_ASYNC && ImageBridgeChild::IsCreated()) {
// the refcount of this ImageClient is 1. we don't use a RefPtr here because the refcount // 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. // 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); MOZ_ASSERT(mImageClient);
} }
} }