Bug 1229202 (part 2) - Remove gfxQuartzSurface::GetCGContextWithClip, which is unused. r=mattwoodrow.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 02 Dec 2015 15:32:16 -0800
changeset 275287 5f78854c2c7233b9dc6692f2b652e9ae36c61b07
parent 275286 b8f81e66d022c8a18e5d47ade0b56374652623e9
child 275288 45f90e71e3fbe4d05949e43e6f80db7a5dac7101
push id68809
push usernnethercote@mozilla.com
push dateWed, 02 Dec 2015 23:53:23 +0000
treeherdermozilla-inbound@3e1abfc084f0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1229202
milestone45.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
Bug 1229202 (part 2) - Remove gfxQuartzSurface::GetCGContextWithClip, which is unused. r=mattwoodrow.
gfx/thebes/gfxQuartzSurface.cpp
gfx/thebes/gfxQuartzSurface.h
--- a/gfx/thebes/gfxQuartzSurface.cpp
+++ b/gfx/thebes/gfxQuartzSurface.cpp
@@ -158,22 +158,16 @@ gfxQuartzSurface::CreateSimilarSurface(g
         return nullptr;
     }
 
     RefPtr<gfxASurface> result = Wrap(surface, aSize);
     cairo_surface_destroy(surface);
     return result.forget();
 }
 
-CGContextRef
-gfxQuartzSurface::GetCGContextWithClip(gfxContext *ctx)
-{
-    return cairo_quartz_get_cg_context_with_clip(ctx->GetCairo());
-}
-
 already_AddRefed<gfxImageSurface> gfxQuartzSurface::GetAsImageSurface()
 {
     cairo_surface_t *surface = cairo_quartz_surface_get_image(mSurface);
     if (!surface || cairo_surface_status(surface))
         return nullptr;
 
     RefPtr<gfxASurface> img = Wrap(surface);
 
--- a/gfx/thebes/gfxQuartzSurface.h
+++ b/gfx/thebes/gfxQuartzSurface.h
@@ -28,18 +28,16 @@ public:
 
     virtual already_AddRefed<gfxASurface> CreateSimilarSurface(gfxContentType aType,
                                                                const mozilla::gfx::IntSize& aSize);
 
     virtual const mozilla::gfx::IntSize GetSize() const { return mozilla::gfx::IntSize(mSize.width, mSize.height); }
 
     CGContextRef GetCGContext() { return mCGContext; }
 
-    CGContextRef GetCGContextWithClip(gfxContext *ctx);
-
     already_AddRefed<gfxImageSurface> GetAsImageSurface();
 
 protected:
     void MakeInvalid();
 
     CGContextRef mCGContext;
     gfxSize      mSize;
 };