diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /gfx/thebes/gfxASurface.cpp | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/thebes/gfxASurface.cpp')
-rw-r--r-- | gfx/thebes/gfxASurface.cpp | 19 |
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; |