Bug 1082895 - Don't use gralloc surfaces when layers.gralloc.disable is set. r=mattwoodrow

This commit is contained in:
Chris Jones
2014-10-14 18:30:13 -07:00
parent 34e5648049
commit 11ed66efba
3 changed files with 8 additions and 0 deletions

View File

@@ -215,6 +215,9 @@ TextureClient::GetIPDLActor()
static bool
DisableGralloc(SurfaceFormat aFormat, const gfx::IntSize& aSizeHint)
{
if (gfxPrefs::DisableGralloc()) {
return true;
}
if (aFormat == gfx::SurfaceFormat::A8) {
return true;
}