Bug 921753 - Part 6: Define gfxPatternDrawable's destructor out of line; r=seth
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 15 Oct 2013 18:00:28 -0400
changeset 165606 c505616ed8a409abc0bae1e5f4d829f80d92b72e
parent 165595 a2e78dec2ccf750bc511d0b53d059bc35fcfdc06
child 165607 15e91a96d77d105afd200b0d9dc88752b72c8148
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersseth
bugs921753
milestone27.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 921753 - Part 6: Define gfxPatternDrawable's destructor out of line; r=seth
gfx/thebes/gfxDrawable.cpp
gfx/thebes/gfxDrawable.h
--- a/gfx/thebes/gfxDrawable.cpp
+++ b/gfx/thebes/gfxDrawable.cpp
@@ -183,16 +183,20 @@ gfxCallbackDrawable::Draw(gfxContext* aC
 
 gfxPatternDrawable::gfxPatternDrawable(gfxPattern* aPattern,
                                        const gfxIntSize aSize)
  : gfxDrawable(aSize)
  , mPattern(aPattern)
 {
 }
 
+gfxPatternDrawable::~gfxPatternDrawable()
+{
+}
+
 class DrawingCallbackFromDrawable : public gfxDrawingCallback {
 public:
     DrawingCallbackFromDrawable(gfxDrawable* aDrawable)
      : mDrawable(aDrawable) {
         NS_ASSERTION(aDrawable, "aDrawable is null!");
     }
 
     virtual ~DrawingCallbackFromDrawable() {}
--- a/gfx/thebes/gfxDrawable.h
+++ b/gfx/thebes/gfxDrawable.h
@@ -118,17 +118,17 @@ protected:
 /**
  * gfxPatternDrawable
  * A convenience implementation of gfxDrawable for patterns.
  */
 class gfxPatternDrawable : public gfxDrawable {
 public:
     gfxPatternDrawable(gfxPattern* aPattern,
                        const gfxIntSize aSize);
-    virtual ~gfxPatternDrawable() {}
+    virtual ~gfxPatternDrawable();
 
     virtual bool Draw(gfxContext* aContext,
                         const gfxRect& aFillRect,
                         bool aRepeat,
                         const GraphicsFilter& aFilter,
                         const gfxMatrix& aTransform = gfxMatrix());
 
 protected: