Bug 1048110 - Expand complex visible regions if we're going to be resampling when using tiling. r=Bas

This commit is contained in:
Matt Woodrow
2014-08-04 15:29:55 +12:00
parent d60fcf9c67
commit 7d7314e136
12 changed files with 51 additions and 63 deletions

View File

@@ -327,6 +327,12 @@ ClientTiledLayerBuffer::GetContentType(SurfaceMode* aMode) const
content = gfxContentType::COLOR;
}
#endif
} else if (mode == SurfaceMode::SURFACE_OPAQUE) {
if (mThebesLayer->GetVisibleRegion().GetNumRects() > 1 &&
mThebesLayer->MayResample()) {
mode = SurfaceMode::SURFACE_SINGLE_CHANNEL_ALPHA;
content = gfxContentType::COLOR_ALPHA;
}
}
if (aMode) {