Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow)
authorDavid Anderson <danderson@mozilla.com>
Wed, 07 Oct 2015 16:34:41 -0700
changeset 266697 7a6ec4430c07c8ca5466a694fa57692e7d712091
parent 266696 b9e37b791afc35c55e946d7f457f2aff39135956
child 266698 d337fcb3aef0e275fc51b341f995bf4da71fd99e
push id66261
push userdanderson@mozilla.com
push dateWed, 07 Oct 2015 23:35:27 +0000
treeherdermozilla-inbound@7a6ec4430c07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1212499
milestone44.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
Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow)
gfx/layers/client/CanvasClient.cpp
--- a/gfx/layers/client/CanvasClient.cpp
+++ b/gfx/layers/client/CanvasClient.cpp
@@ -126,18 +126,19 @@ CanvasClient2D::CreateTextureClientForCa
                                                    mTextureFlags | aFlags);
   }
 
 #ifdef XP_WIN
   return CreateTextureClientForDrawing(aFormat, aSize, BackendSelector::Canvas, aFlags);
 #else
   // XXX - We should use CreateTextureClientForDrawing, but we first need
   // to use double buffering.
+  gfx::BackendType backend = gfxPlatform::GetPlatform()->GetPreferredCanvasBackend();
   return TextureClient::CreateForRawBufferAccess(GetForwarder(),
-                                                 aFormat, aSize, gfx::BackendType::NONE,
+                                                 aFormat, aSize, backend,
                                                  mTextureFlags | aFlags);
 #endif
 }
 
 ////////////////////////////////////////////////////////////////////////
 
 CanvasClientSharedSurface::CanvasClientSharedSurface(CompositableForwarder* aLayerForwarder,
                                                      TextureFlags aFlags)