Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow)

This commit is contained in:
David Anderson
2015-10-07 16:34:41 -07:00
parent 8bbf6cbce8
commit eef3cd883d

View File

@@ -131,8 +131,9 @@ CanvasClient2D::CreateTextureClientForCanvas(gfx::SurfaceFormat aFormat,
#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
}