diff options
author | reed <reed@chromium.org> | 2014-12-21 11:03:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-21 11:03:36 -0800 |
commit | ec57b54ac7546f9db7c5b8610ef4f3690833ca83 (patch) | |
tree | ac2ca4ce281a45ad1ae18080ee759b2dff9f17b4 | |
parent | ca32da7533ed86fbbe50e078c751b0f1c198bb5b (diff) |
remove dead SK_SUPPORT_LEGACY_DEVICE_CLEAR code
BUG=skia:
TBR=robertphilips@google.com
Review URL: https://codereview.chromium.org/807083003
-rw-r--r-- | include/core/SkDevice.h | 10 | ||||
-rw-r--r-- | src/core/SkDevice.cpp | 7 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index fbb53397ab..9f3ac58008 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -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 diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index f428851248..bc6c892079 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -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; |