Bug 1330286 - Part 2. Check mContentBackend instead of mPreferredCanvasBackend. r=mstange
authorcku <cku@mozilla.com>
Fri, 13 Jan 2017 00:39:24 +0800
changeset 374571 d79f059bb478ffec5e50bd0b0d991f2abdf3a913
parent 374570 1ea6959ad3cfe822af7f7ca3f728bc2e5eb31776
child 374572 d2a185bd6efe21872bd81157b83367c48784c841
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1330286
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1330286 - Part 2. Check mContentBackend instead of mPreferredCanvasBackend. r=mstange MozReview-Commit-ID: 9Cg1c6PjYeO
gfx/thebes/gfxPlatform.cpp
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -1442,17 +1442,17 @@ gfxPlatform::CreateOffscreenCanvasDrawTa
 #else
   return CreateDrawTargetForBackend(mFallbackCanvasBackend, aSize, aFormat);
 #endif
 }
 
 already_AddRefed<DrawTarget>
 gfxPlatform::CreateOffscreenContentDrawTarget(const IntSize& aSize, SurfaceFormat aFormat)
 {
-  NS_ASSERTION(mPreferredCanvasBackend != BackendType::NONE, "No backend.");
+  NS_ASSERTION(mContentBackend != BackendType::NONE, "No backend.");
   return CreateDrawTargetForBackend(mContentBackend, aSize, aFormat);
 }
 
 already_AddRefed<DrawTarget>
 gfxPlatform::CreateSimilarSoftwareDrawTarget(DrawTarget* aDT,
                                              const IntSize& aSize,
                                              SurfaceFormat aFormat)
 {