Bug 1123080 - Use Cairo's image backend with canvas fallback on Windows. r=Bas

This commit is contained in:
Nicolas Silva 2015-03-11 17:16:13 +01:00
parent 07dcabc254
commit 3820c2908f

View File

@ -1181,7 +1181,12 @@ gfxPlatform::CreateOffscreenCanvasDrawTarget(const IntSize& aSize, SurfaceFormat
return target.forget();
}
#ifdef XP_WIN
// On Windows, the fallback backend (Cairo) should use its image backend.
return Factory::CreateDrawTarget(mFallbackCanvasBackend, aSize, aFormat);
#else
return CreateDrawTargetForBackend(mFallbackCanvasBackend, aSize, aFormat);
#endif
}
TemporaryRef<DrawTarget>