mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 745054 - Part 2: Allow factory construction of Skia drawtargets on all platforms. r=mattwoodrow
This commit is contained in:
parent
db05f2fa78
commit
173372bc56
@ -99,19 +99,7 @@ Factory::CreateDrawTarget(BackendType aBackend, const IntSize &aSize, SurfaceFor
|
||||
}
|
||||
break;
|
||||
}
|
||||
#elif defined XP_MACOSX || defined ANDROID || defined LINUX
|
||||
#ifdef USE_SKIA
|
||||
case BACKEND_SKIA:
|
||||
{
|
||||
RefPtr<DrawTargetSkia> newTarget;
|
||||
newTarget = new DrawTargetSkia();
|
||||
if (newTarget->Init(aSize, aFormat)) {
|
||||
return newTarget;
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
#ifdef XP_MACOSX
|
||||
#elif defined XP_MACOSX
|
||||
case BACKEND_COREGRAPHICS:
|
||||
{
|
||||
RefPtr<DrawTargetCG> newTarget;
|
||||
@ -122,6 +110,16 @@ Factory::CreateDrawTarget(BackendType aBackend, const IntSize &aSize, SurfaceFor
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_SKIA
|
||||
case BACKEND_SKIA:
|
||||
{
|
||||
RefPtr<DrawTargetSkia> newTarget;
|
||||
newTarget = new DrawTargetSkia();
|
||||
if (newTarget->Init(aSize, aFormat)) {
|
||||
return newTarget;
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
gfxDebug() << "Invalid draw target type specified.";
|
||||
|
Loading…
Reference in New Issue
Block a user