зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1126903 - More efficiently track invalid regions in tiling code. r=Bas
This commit is contained in:
Родитель
a63a67a5e2
Коммит
6f049c53ff
|
@ -1201,8 +1201,7 @@ ClientTiledLayerBuffer::ValidateTile(TileClient aTile,
|
|||
}
|
||||
|
||||
// The new buffer is now validated, remove the dirty region from it.
|
||||
aTile.mInvalidBack.Sub(nsIntRect(0, 0, GetTileSize().width, GetTileSize().height),
|
||||
offsetScaledDirtyRegion);
|
||||
aTile.mInvalidBack.SubOut(offsetScaledDirtyRegion);
|
||||
|
||||
aTile.Flip();
|
||||
|
||||
|
@ -1267,8 +1266,7 @@ ClientTiledLayerBuffer::ValidateTile(TileClient aTile,
|
|||
}
|
||||
|
||||
// The new buffer is now validated, remove the dirty region from it.
|
||||
aTile.mInvalidBack.Sub(nsIntRect(0, 0, GetTileSize().width, GetTileSize().height),
|
||||
offsetScaledDirtyRegion);
|
||||
aTile.mInvalidBack.SubOut(offsetScaledDirtyRegion);
|
||||
|
||||
#ifdef GFX_TILEDLAYER_DEBUG_OVERLAY
|
||||
DrawDebugOverlay(drawTarget, aTileOrigin.x * mResolution,
|
||||
|
|
Загрузка…
Ссылка в новой задаче