mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1149954 - Only Skia canvases need be considered for acceleration. Carry r=jmuizelaar from bug 1124249
This commit is contained in:
parent
442b83c70d
commit
cb3878f277
@ -1349,7 +1349,9 @@ CanvasRenderingContext2D::EnsureTarget(RenderingMode aRenderingMode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (layerManager) {
|
if (layerManager) {
|
||||||
if (mode == RenderingMode::OpenGLBackendMode && CheckSizeForSkiaGL(size)) {
|
if (mode == RenderingMode::OpenGLBackendMode &&
|
||||||
|
gfxPlatform::GetPlatform()->UseAcceleratedSkiaCanvas() &&
|
||||||
|
CheckSizeForSkiaGL(size)) {
|
||||||
DemoteOldestContextIfNecessary();
|
DemoteOldestContextIfNecessary();
|
||||||
|
|
||||||
#if USE_SKIA_GPU
|
#if USE_SKIA_GPU
|
||||||
|
Loading…
Reference in New Issue
Block a user