Bug 703109 - Add CreateOffscreenDrawTarget to gfxAndroidPlatform. r=Bas

This commit is contained in:
Matt Woodrow 2011-11-17 16:45:51 +13:00
parent ac25d15be5
commit 9f4d4881c9
2 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,12 @@ gfxAndroidPlatform::CreateOffscreenSurface(const gfxIntSize& size,
return newSurface.forget();
}
RefPtr<DrawTarget>
gfxAndroidPlatform::CreateOffscreenDrawTarget(const IntSize& aSize, SurfaceFormat aFormat)
{
return Factory::CreateDrawTarget(BACKEND_SKIA, aSize, aFormat);
}
nsresult
gfxAndroidPlatform::GetFontList(nsIAtom *aLangGroup,
const nsACString& aGenericFamily,

View File

@ -65,6 +65,9 @@ public:
virtual already_AddRefed<gfxASurface>
CreateOffscreenSurface(const gfxIntSize& size,
gfxASurface::gfxContentType contentType);
virtual mozilla::RefPtr<mozilla::gfx::DrawTarget>
CreateOffscreenDrawTarget(const mozilla::gfx::IntSize& aSize, mozilla::gfx::SurfaceFormat aFormat);
virtual gfxImageFormat GetOffscreenFormat() { return gfxASurface::ImageFormatRGB16_565; }