Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: src/core/SkCanvas.cpp

Issue 735233003: SkCanvas::clear() should call down to devices even when the clip is empty. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/CanvasTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 4fda7a37b32a306aea9b229c083769acd44e0c1b..eb92585cafd5b525500e1405406492af1244a382 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -1702,7 +1702,7 @@ void SkCanvas::drawDRRect(const SkRRect& outer, const SkRRect& inner,
//////////////////////////////////////////////////////////////////////////////
void SkCanvas::clear(SkColor color) {
- SkDrawIter iter(this);
+ SkDrawIter iter(this, false/*clear can affect empty clips*/);
this->predrawNotify();
while (iter.next()) {
iter.fDevice->clear(color);
« no previous file with comments | « no previous file | tests/CanvasTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698