diff options
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index a6f263f517..25d15b450c 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); |