mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 02:43:07 +00:00
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:
parent
a3439cd445
commit
0998df8907
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user