mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout f26e4c26ce4a (bug 881018) to land a different patch
This commit is contained in:
parent
812f2f3899
commit
b95fd80400
@ -225,7 +225,6 @@ TiledLayerBuffer<Derived, Tile>::GetTile(const nsIntPoint& aTileOrigin) const
|
||||
// TODO Cache firstTileOriginX/firstTileOriginY
|
||||
// Find the tile x/y of the first tile and the target tile relative to the (0, 0)
|
||||
// origin, the difference is the tile x/y relative to the start of the tile buffer.
|
||||
volatile float resolution = mResolution; // bug 881018 investigation
|
||||
int firstTileX = floor_div(mValidRegion.GetBounds().x, GetScaledTileLength());
|
||||
int firstTileY = floor_div(mValidRegion.GetBounds().y, GetScaledTileLength());
|
||||
return GetTile(floor_div(aTileOrigin.x, GetScaledTileLength()) - firstTileX,
|
||||
|
@ -228,7 +228,7 @@ TiledContentHost::RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
|
||||
NS_WARNING("Can't render tiled content host - no compositor");
|
||||
return;
|
||||
}
|
||||
volatile float resolution = aLayerBuffer.GetResolution(); // bug 881018 investigation
|
||||
float resolution = aLayerBuffer.GetResolution();
|
||||
gfxSize layerScale(1, 1);
|
||||
// We assume that the current frame resolution is the one used in our primary
|
||||
// layer buffer. Compensate for a changing frame resolution.
|
||||
|
Loading…
Reference in New Issue
Block a user