Bug 1289251 - Replace GetDefaultContentBackend in nShmImage to use gfxVar. r=dvander

MozReview-Commit-ID: LYsjgi5FchN

--HG--
extra : rebase_source : 23c80b50794eb254cff4984f24c90f1b65e9fd98
This commit is contained in:
Ryan Hunt 2016-08-15 17:44:33 -07:00
parent 532f240619
commit df70f9dbf6

View File

@ -8,6 +8,7 @@
#ifdef MOZ_HAVE_SHMIMAGE
#include "mozilla/X11Util.h"
#include "mozilla/gfx/gfxVars.h"
#include "mozilla/ipc/SharedMemory.h"
#include "gfxPlatform.h"
#include "nsPrintfCString.h"
@ -150,7 +151,7 @@ nsShmImage::CreateImage(const IntSize& aSize)
mSize = aSize;
BackendType backend = gfxPlatform::GetPlatform()->GetDefaultContentBackend();
BackendType backend = gfxVars::ContentBackend();
mFormat = SurfaceFormat::UNKNOWN;
switch (mDepth) {