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

Unified Diff: include/core/SkDrawLooper.h

Issue 993863002: Make the canvas draw looper internal layer not part of SkCanvas save count Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: another approach Created 5 years, 9 months 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 | « gyp/tests.gypi ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDrawLooper.h
diff --git a/include/core/SkDrawLooper.h b/include/core/SkDrawLooper.h
index ec070467a5aaecd2b2922173d09e0dcdd6e9f21f..9c6c8df69e4d76f2e53739e052b6deafd16ef7f2 100644
--- a/include/core/SkDrawLooper.h
+++ b/include/core/SkDrawLooper.h
@@ -56,6 +56,11 @@ public:
* The implementation must ensure that, when next() finally returns
* false, the canvas has been restored to the state it was
* initially, before createContext() was first called.
+ *
+ * It is an error to call SkCanvas::restore() or SkCanvas::restoreToCount on the canvas
+ * from this function, unless corresponding SkCanvas::save() or SkCanvas::saveLayer() has
+ * been called. The corresponding save call must be made from this function, but it may be
+ * made from earlier invocation.
*/
virtual bool next(SkCanvas* canvas, SkPaint* paint) = 0;
};
« no previous file with comments | « gyp/tests.gypi ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698