author | Matt Woodrow <mwoodrow@mozilla.com> |
Thu, 17 Nov 2011 16:45:51 +1300 | |
changeset 80372 | b201f2434265d12621b3846b90ff595da685a6be |
parent 80371 | bb6ef2d824a8d259bcc0d13e880f1a1ad19cca70 |
child 80373 | e7d5dd9efecacc14b6828f79a28e6b59cb0c7a6b |
push id | 3414 |
push user | mwoodrow@mozilla.com |
push date | Thu, 17 Nov 2011 03:48:18 +0000 |
treeherder | mozilla-inbound@b201f2434265 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | Bas |
bugs | 703109 |
milestone | 11.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
gfx/thebes/gfxAndroidPlatform.cpp | file | annotate | diff | comparison | revisions | |
gfx/thebes/gfxAndroidPlatform.h | file | annotate | diff | comparison | revisions |
--- a/gfx/thebes/gfxAndroidPlatform.cpp +++ b/gfx/thebes/gfxAndroidPlatform.cpp @@ -74,16 +74,22 @@ gfxAndroidPlatform::CreateOffscreenSurfa if (contentType == gfxImageSurface::CONTENT_COLOR) newSurface = new gfxImageSurface (size, GetOffscreenFormat()); else newSurface = new gfxImageSurface (size, gfxASurface::FormatFromContent(contentType)); 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, nsTArray<nsString>& aListOfFonts) { gfxPlatformFontList::PlatformFontList()->GetFontList(aLangGroup, aGenericFamily, aListOfFonts);
--- a/gfx/thebes/gfxAndroidPlatform.h +++ b/gfx/thebes/gfxAndroidPlatform.h @@ -60,16 +60,19 @@ public: static gfxAndroidPlatform *GetPlatform() { return (gfxAndroidPlatform*) gfxPlatform::GetPlatform(); } 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; } mozilla::RefPtr<mozilla::gfx::ScaledFont> GetScaledFontForFont(gfxFont *aFont); // to support IPC font list (sharing between chrome and content) void GetFontList(InfallibleTArray<FontListEntry>* retValue);