Bug 1128042 - Don't round critical displayport out as it should already be tile aligned and rounding error can increase tile usage. r=botond

This commit is contained in:
Kartikaya Gupta 2015-03-20 14:26:51 -04:00
parent dbc254e7e7
commit 3ca0a3ab75

View File

@ -174,7 +174,7 @@ ClientTiledPaintedLayer::BeginPaint()
ParentLayerRect criticalDisplayPort = ParentLayerRect criticalDisplayPort =
(displayportMetrics.GetCriticalDisplayPort() * displayportMetrics.GetZoom()) (displayportMetrics.GetCriticalDisplayPort() * displayportMetrics.GetZoom())
+ displayportMetrics.mCompositionBounds.TopLeft(); + displayportMetrics.mCompositionBounds.TopLeft();
mPaintData.mCriticalDisplayPort = RoundedOut( mPaintData.mCriticalDisplayPort = RoundedToInt(
ApplyParentLayerToLayerTransform(transformDisplayPortToLayer, criticalDisplayPort)); ApplyParentLayerToLayerTransform(transformDisplayPortToLayer, criticalDisplayPort));
} }
TILING_LOG("TILING %p: Critical displayport %s\n", this, Stringify(mPaintData.mCriticalDisplayPort).c_str()); TILING_LOG("TILING %p: Critical displayport %s\n", this, Stringify(mPaintData.mCriticalDisplayPort).c_str());