remove dead SK_SUPPORT_LEGACY_DEVICE_CLEAR code
authorreed <reed@chromium.org>
Sun, 21 Dec 2014 19:03:36 +0000 (11:03 -0800)
committerCommit bot <commit-bot@chromium.org>
Sun, 21 Dec 2014 19:03:36 +0000 (11:03 -0800)
BUG=skia:
TBR=robertphilips@google.com

Review URL: https://codereview.chromium.org/807083003

include/core/SkDevice.h
src/core/SkDevice.cpp

index fbb5339..9f3ac58 100644 (file)
@@ -161,16 +161,6 @@ protected:
      virtual void setMatrixClip(const SkMatrix&, const SkRegion&,
                                 const SkClipStack&) {};
 
-#ifdef SK_SUPPORT_LEGACY_DEVICE_CLEAR
-private:
-    /** Clears the entire device to the specified color (including alpha).
-     *  Ignores the clip.
-     *  DEPRECATED : will go away when chrome subclasses have been updated
-     */
-    virtual void clear(SkColor color);
-public:
-#endif
-
     /** These are called inside the per-device-layer loop for each draw call.
      When these are called, we have already applied any saveLayer operations,
      and are handling any looping from the paint, and any effects from the
index f428851..bc6c892 100644 (file)
@@ -90,13 +90,6 @@ SkSurface* SkBaseDevice::newSurface(const SkImageInfo&, const SkSurfaceProps&) {
 
 const void* SkBaseDevice::peekPixels(SkImageInfo*, size_t*) { return NULL; }
 
-#ifdef SK_SUPPORT_LEGACY_DEVICE_CLEAR
-// DEPRECATED : remove when chrome subclass have been updated to not override clear()
-void SkBaseDevice::clear(SkColor color) {
-    SkFAIL("SkDevice::clear() should not be called");
-}
-#endif
-
 void SkBaseDevice::drawDRRect(const SkDraw& draw, const SkRRect& outer,
                               const SkRRect& inner, const SkPaint& paint) {
     SkPath path;