author | Phil Ringnalda <philringnalda@gmail.com> |
Mon, 05 Nov 2012 22:35:59 -0800 | |
changeset 112388 | 8f5204fb76c86b08a54aad5a6e1f423c5415de9f |
parent 112387 | 3c8992f602ddb4dd3e05a6325c1adb446f062d09 |
child 112389 | f4aeed115e54727e034b19815a286f475d9bcc3e |
push id | 23812 |
push user | emorley@mozilla.com |
push date | Tue, 06 Nov 2012 14:01:34 +0000 |
treeherder | mozilla-central@f4aeed115e54 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 808746 |
milestone | 19.0a1 |
backs out | 0d4e09ade3368bfa95e66c514bfe31271daafecb |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/gfx/layers/basic/BasicTiledThebesLayer.cpp +++ b/gfx/layers/basic/BasicTiledThebesLayer.cpp @@ -90,20 +90,20 @@ BasicTiledLayerBuffer::PaintThebes(Basic // If this region is empty XMost() - 1 will give us a negative value. NS_ASSERTION(!aPaintRegion.GetBounds().IsEmpty(), "Empty paint region\n"); bool useSinglePaintBuffer = UseSinglePaintBuffer(); if (useSinglePaintBuffer) { // Check if the paint only spans a single tile. If that's // the case there's no point in using a single paint buffer. nsIntRect paintBounds = aPaintRegion.GetBounds(); - useSinglePaintBuffer = RoundDownToTileEdge(paintBounds.x) != - RoundDownToTileEdge(paintBounds.XMost() - 1) || - RoundDownToTileEdge(paintBounds.y) != - RoundDownToTileEdge(paintBounds.YMost() - 1); + useSinglePaintBuffer = GetTileStart(paintBounds.x) != + GetTileStart(paintBounds.XMost() - 1) || + GetTileStart(paintBounds.y) != + GetTileStart(paintBounds.YMost() - 1); } if (useSinglePaintBuffer) { const nsIntRect bounds = aPaintRegion.GetBounds(); { SAMPLE_LABEL("BasicTiledLayerBuffer", "PaintThebesSingleBufferAlloc"); mSinglePaintBuffer = new gfxImageSurface(gfxIntSize(bounds.width, bounds.height), GetFormat(), !aLayer->CanUseOpaqueSurface()); mSinglePaintBufferOffset = nsIntPoint(bounds.x, bounds.y);