Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index a6f263f517dd387510638b00d7bba207e93cda4e..25d15b450c09836f11e2cd495fd22668aaa32fca 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1706,6 +1706,14 @@ void SkCanvas::drawDRRect(const SkRRect& outer, const SkRRect& inner, |
// These are the virtual drawing methods |
////////////////////////////////////////////////////////////////////////////// |
+void SkCanvas::clear(SkColor color) { |
+ SkDrawIter iter(this); |
+ this->predrawNotify(); |
+ while (iter.next()) { |
+ iter.fDevice->clear(color); |
+ } |
+} |
+ |
void SkCanvas::onDiscard() { |
if (fSurfaceBase) { |
fSurfaceBase->aboutToDraw(SkSurface::kDiscard_ContentChangeMode); |