summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxASurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gfx/thebes/gfxASurface.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/gfx/thebes/gfxASurface.cpp b/gfx/thebes/gfxASurface.cpp
index f77c836fb9..d5c78d0938 100644
--- a/gfx/thebes/gfxASurface.cpp
+++ b/gfx/thebes/gfxASurface.cpp
@@ -248,25 +248,6 @@ void gfxASurface::Finish() {
cairo_surface_finish(mSurface);
}
-already_AddRefed<gfxImageSurface> gfxASurface::CopyToARGB32ImageSurface() {
- if (!mSurface || !mSurfaceValid) {
- return nullptr;
- }
-
- const IntSize size = GetSize();
- RefPtr<gfxImageSurface> imgSurface =
- new gfxImageSurface(size, SurfaceFormat::A8R8G8B8_UINT32);
-
- RefPtr<DrawTarget> dt = gfxPlatform::CreateDrawTargetForSurface(
- imgSurface, IntSize(size.width, size.height));
- RefPtr<SourceSurface> source =
- gfxPlatform::GetSourceSurfaceForSurface(dt, this);
-
- dt->CopySurface(source, IntRect(0, 0, size.width, size.height), IntPoint());
-
- return imgSurface.forget();
-}
-
int gfxASurface::CairoStatus() {
if (!mSurfaceValid) return -1;