Bug 1108162 - Don't reuse a tile's front buffer if it just switched from non-component-alpha to compoenent-alpha. r=jrmuizel

This commit is contained in:
Nicolas Silva 2014-12-11 10:07:53 +01:00
parent 55ab94f4b0
commit 69017d515d

View File

@ -719,7 +719,8 @@ TileClient::GetBackBuffer(const nsIntRegion& aDirtyRegion,
// Try to re-use the front-buffer if possible
if (mFrontBuffer &&
mFrontBuffer->HasInternalBuffer() &&
mFrontLock->GetReadCount() == 1) {
mFrontLock->GetReadCount() == 1 &&
!(aMode == SurfaceMode::SURFACE_COMPONENT_ALPHA && !mFrontBufferOnWhite)) {
// If we had a backbuffer we no longer care about it since we'll
// re-use the front buffer.
DiscardBackBuffer();