зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1206076
- Use a specialized PersistentBufferProvider for Canvas2D when using a SkiaGL DrawTarget. r=jrmuizel, a=sylvestre
--HG-- extra : source : 499fd45447a200cf0cc8a721c5ff85995e9c1340
This commit is contained in:
Родитель
30ce0a0f9e
Коммит
e80599614d
|
@ -984,7 +984,7 @@ pref("devtools.debugger.unix-domain-socket", "/data/local/debugger-socket");
|
|||
// falling back to Skia/software for smaller canvases
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
pref("gfx.canvas.azure.backends", "skia");
|
||||
pref("gfx.canvas.azure.accelerated", true);
|
||||
pref("gfx.canvas.azure.accelerated", false);
|
||||
#endif
|
||||
|
||||
// Turn on dynamic cache size for Skia
|
||||
|
|
|
@ -1399,6 +1399,7 @@ CanvasRenderingContext2D::EnsureTarget(RenderingMode aRenderingMode)
|
|||
mTarget = Factory::CreateDrawTargetSkiaWithGrContext(glue->GetGrContext(), size, format);
|
||||
if (mTarget) {
|
||||
AddDemotableContext(this);
|
||||
mBufferProvider = new PersistentBufferProviderBasic(mTarget);
|
||||
} else {
|
||||
printf_stderr("Failed to create a SkiaGL DrawTarget, falling back to software\n");
|
||||
mode = RenderingMode::SoftwareBackendMode;
|
||||
|
|
|
@ -681,7 +681,7 @@ pref("gfx.content.azure.backends", "direct2d1.1,direct2d,cairo");
|
|||
pref("gfx.content.azure.backends", "cg");
|
||||
pref("gfx.canvas.azure.backends", "skia");
|
||||
// Accelerated cg canvas where available (10.7+)
|
||||
pref("gfx.canvas.azure.accelerated", true);
|
||||
pref("gfx.canvas.azure.accelerated", false);
|
||||
#else
|
||||
pref("gfx.canvas.azure.backends", "cairo");
|
||||
pref("gfx.content.azure.backends", "cairo");
|
||||
|
|
Загрузка…
Ссылка в новой задаче