Bug 1149954 - Only Skia canvases need be considered for acceleration. Carry r=jmuizelaar from bug 1124249

This commit is contained in:
Milan Sreckovic 2015-04-01 15:23:20 -04:00
parent 442b83c70d
commit cb3878f277

View File

@ -1349,7 +1349,9 @@ CanvasRenderingContext2D::EnsureTarget(RenderingMode aRenderingMode)
} }
if (layerManager) { if (layerManager) {
if (mode == RenderingMode::OpenGLBackendMode && CheckSizeForSkiaGL(size)) { if (mode == RenderingMode::OpenGLBackendMode &&
gfxPlatform::GetPlatform()->UseAcceleratedSkiaCanvas() &&
CheckSizeForSkiaGL(size)) {
DemoteOldestContextIfNecessary(); DemoteOldestContextIfNecessary();
#if USE_SKIA_GPU #if USE_SKIA_GPU