mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
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:
parent
532f240619
commit
df70f9dbf6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user