mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990017. Prevent skia accelerated canvas backends from rendering content. r=jmuizelaar
This commit is contained in:
parent
18b7acb05b
commit
0a8cbe971b
@ -1116,6 +1116,16 @@ gfxPlatform::SupportsAzureContentForDrawTarget(DrawTarget* aTarget)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef USE_SKIA_GPU
|
||||
// Skia content rendering doesn't support GPU acceleration, so we can't
|
||||
// use the same backend if the current backend is accelerated.
|
||||
if ((aTarget->GetType() == DrawTargetType::HARDWARE_RASTER)
|
||||
&& (aTarget->GetBackendType() == BackendType::SKIA))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
return SupportsAzureContentForType(aTarget->GetBackendType());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user