diff options
author | 2014-12-05 20:49:03 -0800 | |
---|---|---|
committer | 2014-12-05 20:49:03 -0800 | |
commit | f4e0d9eb2d72fe92c30237de978936113143dc16 (patch) | |
tree | c73250bf927c4a2be4492e30fe94dd55fbf648a9 /include/core | |
parent | 28f9c606e4c8e61015e864219c4bc83a3fdb4a86 (diff) |
clear() is now an alias for drawPaint, so remove its virtual
Needs these to land first:
https://codereview.chromium.org/733343005
https://codereview.chromium.org/777413004
BUG=skia:
Review URL: https://codereview.chromium.org/780393002
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkCanvas.h | 7 |
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); } |