Backed out changeset 8a49d4f4bb25 (bug 1127289) for frequent B2G reftest failures.

This commit is contained in:
Ryan VanderMeulen 2015-02-06 13:25:22 -05:00
parent 6122a30fcc
commit e3d0e1af9b

View File

@ -1091,11 +1091,9 @@ ClientTiledLayerBuffer::UnlockTile(TileClient aTile)
// We locked the back buffer, and flipped so we now need to unlock the front
if (aTile.mFrontBuffer && aTile.mFrontBuffer->IsLocked()) {
aTile.mFrontBuffer->Unlock();
aTile.mFrontBuffer->SyncWithObject(mCompositableClient->GetForwarder()->GetSyncObject());
}
if (aTile.mFrontBufferOnWhite && aTile.mFrontBufferOnWhite->IsLocked()) {
aTile.mFrontBufferOnWhite->Unlock();
aTile.mFrontBufferOnWhite->SyncWithObject(mCompositableClient->GetForwarder()->GetSyncObject());
}
if (aTile.mBackBuffer && aTile.mBackBuffer->IsLocked()) {
aTile.mBackBuffer->Unlock();
@ -1295,6 +1293,8 @@ ClientTiledLayerBuffer::ValidateTile(TileClient aTile,
tileRegion.SubOut(aDirtyRegion); // Has now been validated
backBuffer->SetWaste(tileRegion.Area() * mResolution * mResolution);
backBuffer->Unlock();
backBuffer->SyncWithObject(mCompositableClient->GetForwarder()->GetSyncObject());
if (createdTextureClient) {
if (!mCompositableClient->AddTextureClient(backBuffer)) {