зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1062475 - [Camera] Camera button highlight appears as a square. r=sotaro
This commit is contained in:
Родитель
e0cc25c524
Коммит
29e15d9b54
|
@ -191,8 +191,9 @@ ImageClientSingle::UpdateImageInternal(ImageContainer* aContainer,
|
|||
if (image->AsSharedImage() && image->AsSharedImage()->GetTextureClient(this)) {
|
||||
// fast path: no need to allocate and/or copy image data
|
||||
RefPtr<TextureClient> texture = image->AsSharedImage()->GetTextureClient(this);
|
||||
|
||||
autoRemoveTexture.mTexture = mFrontBuffer;
|
||||
if (texture != mFrontBuffer) {
|
||||
autoRemoveTexture.mTexture = mFrontBuffer;
|
||||
}
|
||||
mFrontBuffer = texture;
|
||||
if (!AddTextureClient(texture)) {
|
||||
mFrontBuffer = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче