mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
dbc254e7e7
commit
3ca0a3ab75
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user