Bug 1330286 - Part 2. Check mContentBackend instead of mPreferredCanvasBackend. r=mstange
☠☠ backed out by ff279eed7871 ☠ ☠
authorcku <cku@mozilla.com>
Fri, 13 Jan 2017 00:39:24 +0800
changeset 374526 d8f5fb777c67f729e126145f2d7ccd010655cdaf
parent 374525 e54b0201b2000bc83bef7f5334114d13b0fbdd7c
child 374527 b540a38f365fff0eedf2b95283518b3b46d61ae1
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)
 {