Removing some dead code in SkDeferredCanvas
authorjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Feb 2012 18:32:38 +0000 (18:32 +0000)
committerjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 Feb 2012 18:32:38 +0000 (18:32 +0000)
REVIEW=http://codereview.appspot.com/5620062/

git-svn-id: http://skia.googlecode.com/svn/trunk@3140 2bbb7eff-a529-9590-31e7-b0007b416f81

include/utils/SkDeferredCanvas.h
src/utils/SkDeferredCanvas.cpp

index 9eabb7b..b1241bd 100644 (file)
@@ -143,7 +143,6 @@ public:
     class DeviceContext : public SkRefCnt {
     public:
         virtual void prepareForDraw() {}
-        virtual void flush() {}
     };
 
 public:
@@ -183,7 +182,6 @@ public:
         SkDevice* immediateDevice() const {return fImmediateDevice;}
 
         void flushPending();
-        void flushContext();
         void purgePending();
         void flushIfNeeded(const SkBitmap& bitmap);
 
index 906b1c5..01ee73f 100644 (file)
@@ -538,13 +538,6 @@ void SkDeferredCanvas::DeferredDevice::flush()
     fImmediateCanvas->flush();
 }
 
-void SkDeferredCanvas::DeferredDevice::flushContext()
-{
-    if (fDeviceContext) {
-        fDeviceContext->flush();
-    }
-}
-
 void SkDeferredCanvas::DeferredDevice::flushIfNeeded(const SkBitmap& bitmap)
 {
     if (bitmap.isImmutable()) {