Bug 990017. Prevent skia accelerated canvas backends from rendering content. r=jmuizelaar

This commit is contained in:
Mason Chang 2015-12-02 09:11:52 -08:00
parent 18b7acb05b
commit 0a8cbe971b

View File

@ -1116,6 +1116,16 @@ gfxPlatform::SupportsAzureContentForDrawTarget(DrawTarget* aTarget)
return false;
}
#ifdef USE_SKIA_GPU
// Skia content rendering doesn't support GPU acceleration, so we can't
// use the same backend if the current backend is accelerated.
if ((aTarget->GetType() == DrawTargetType::HARDWARE_RASTER)
&& (aTarget->GetBackendType() == BackendType::SKIA))
{
return false;
}
#endif
return SupportsAzureContentForType(aTarget->GetBackendType());
}