diff --git a/gfx/layers/TiledLayerBuffer.h b/gfx/layers/TiledLayerBuffer.h index 687c58d6bb1..e6fe6ea0775 100644 --- a/gfx/layers/TiledLayerBuffer.h +++ b/gfx/layers/TiledLayerBuffer.h @@ -225,7 +225,6 @@ TiledLayerBuffer::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, diff --git a/gfx/layers/composite/TiledContentHost.cpp b/gfx/layers/composite/TiledContentHost.cpp index 6ad99772e10..8b23c91b7e5 100644 --- a/gfx/layers/composite/TiledContentHost.cpp +++ b/gfx/layers/composite/TiledContentHost.cpp @@ -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.