зеркало из https://github.com/mozilla/gecko-dev.git
Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow)
This commit is contained in:
Родитель
e5a7882380
Коммит
3b183cc62a
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче