aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-12-05 20:49:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-05 20:49:03 -0800
commitf4e0d9eb2d72fe92c30237de978936113143dc16 (patch)
treec73250bf927c4a2be4492e30fe94dd55fbf648a9 /include/core
parent28f9c606e4c8e61015e864219c4bc83a3fdb4a86 (diff)
clear() is now an alias for drawPaint, so remove its virtual
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkCanvas.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index ee539c4244..ff60c57fa7 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -621,8 +621,11 @@ public:
*/
void drawColor(SkColor color, SkXfermode::Mode mode = SkXfermode::kSrcOver_Mode);
- // TODO: remove virtual when chrome subclass stop overriding this.
- virtual void clear(SkColor color) {
+ /**
+ * Helper method for drawing a color in SRC mode, completely replacing all the pixels
+ * in the current clip with this color.
+ */
+ void clear(SkColor color) {
this->drawColor(color, SkXfermode::kSrc_Mode);
}