Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index ee539c4244864072ac25be34f06c1b01d2d189f0..ff60c57fa7ec325a7678fbb8e1e28629b83e71a2 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); |
} |