Backout f26e4c26ce4a (bug 881018) to land a different patch

This commit is contained in:
Jim Chen 2013-07-24 11:10:55 -04:00
parent 812f2f3899
commit b95fd80400
2 changed files with 1 additions and 2 deletions

View File

@ -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,

View File

@ -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.