Bug 1062475 - [Camera] Camera button highlight appears as a square. r=sotaro

This commit is contained in:
chiajung hung 2014-10-20 02:49:00 -04:00
Родитель e0cc25c524
Коммит 29e15d9b54
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;