Bug 1126903 - More efficiently track invalid regions in tiling code. r=Bas

This commit is contained in:
Nicolas Silva 2015-02-03 18:14:33 +01:00
Родитель a63a67a5e2
Коммит 6f049c53ff
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -1201,8 +1201,7 @@ ClientTiledLayerBuffer::ValidateTile(TileClient aTile,
} }
// The new buffer is now validated, remove the dirty region from it. // The new buffer is now validated, remove the dirty region from it.
aTile.mInvalidBack.Sub(nsIntRect(0, 0, GetTileSize().width, GetTileSize().height), aTile.mInvalidBack.SubOut(offsetScaledDirtyRegion);
offsetScaledDirtyRegion);
aTile.Flip(); aTile.Flip();
@ -1267,8 +1266,7 @@ ClientTiledLayerBuffer::ValidateTile(TileClient aTile,
} }
// The new buffer is now validated, remove the dirty region from it. // The new buffer is now validated, remove the dirty region from it.
aTile.mInvalidBack.Sub(nsIntRect(0, 0, GetTileSize().width, GetTileSize().height), aTile.mInvalidBack.SubOut(offsetScaledDirtyRegion);
offsetScaledDirtyRegion);
#ifdef GFX_TILEDLAYER_DEBUG_OVERLAY #ifdef GFX_TILEDLAYER_DEBUG_OVERLAY
DrawDebugOverlay(drawTarget, aTileOrigin.x * mResolution, DrawDebugOverlay(drawTarget, aTileOrigin.x * mResolution,