Bug 635035, part 7: Remove obsoleted gfxASurface::SupportsSelfCopy. r=roc a=b
authorChris Jones <jones.chris.g@gmail.com>
Wed, 09 Mar 2011 11:27:37 -0600
changeset 63372 54f451b29081be265e0b4fa1c794c0b8c4acc8ac
parent 63371 edf7507120f7f33ba37c21c3bd9e4763ea914228
child 63373 5b58ca341da48709e4e72ebd2547a60a52a89c0c
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, b
bugs635035
milestone2.0b13pre
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 635035, part 7: Remove obsoleted gfxASurface::SupportsSelfCopy. r=roc a=b
gfx/thebes/gfxASurface.h
gfx/thebes/gfxImageSurface.h
--- a/gfx/thebes/gfxASurface.h
+++ b/gfx/thebes/gfxASurface.h
@@ -215,18 +215,16 @@ public:
     }
     const gfxRect& GetOpaqueRect() {
         if (mOpaqueRect)
             return *mOpaqueRect;
         static const gfxRect empty(0, 0, 0, 0);
         return empty;
     }
 
-    virtual PRBool SupportsSelfCopy() { return PR_TRUE; }
-
     /**
      * Move the pixels in |aSourceRect| to |aDestTopLeft|.  Like with
      * memmove(), |aSourceRect| and the rectangle defined by
      * |aDestTopLeft| are allowed to overlap, and the effect is
      * equivalent to copying |aSourceRect| to a scratch surface and
      * then back to |aDestTopLeft|.
      *
      * |aSourceRect| and the destination rectangle defined by
--- a/gfx/thebes/gfxImageSurface.h
+++ b/gfx/thebes/gfxImageSurface.h
@@ -103,18 +103,16 @@ public:
 
     /* return new Subimage with pointing to original image starting from aRect.pos
      * and size of aRect.size. New subimage keeping current image reference
      */
     already_AddRefed<gfxSubimageSurface> GetSubimage(const gfxRect& aRect);
 
     virtual already_AddRefed<gfxImageSurface> GetAsImageSurface();
 
-    virtual PRBool SupportsSelfCopy() { return PR_FALSE; }
-
     /** See gfxASurface.h. */
     NS_OVERRIDE
     virtual void MovePixels(const nsIntRect& aSourceRect,
                             const nsIntPoint& aDestTopLeft);
 
 protected:
     gfxImageSurface();
     void InitWithData(unsigned char *aData, const gfxIntSize& aSize,