Bug 703109 - Add CreateOffscreenDrawTarget to gfxAndroidPlatform. r=Bas

This commit is contained in:
Matt Woodrow 2011-11-17 16:45:51 +13:00
Родитель 8c89bf6706
Коммит aed5160707
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -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,

Просмотреть файл

@ -66,6 +66,9 @@ public:
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; }
mozilla::RefPtr<mozilla::gfx::ScaledFont>