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

Unified Diff: src/record/SkRecords.h

Issue 249253003: Hide SaveFlags from the public SkCanvas API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Suppress the canvas-state GM. Created 6 years, 8 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 | « src/record/SkRecorder.cpp ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/record/SkRecords.h
diff --git a/src/record/SkRecords.h b/src/record/SkRecords.h
index 8b96e8d91387873488ca468c8fd28921e1e867b6..679c9e3c4e38b47242e35b3c178062ccaa8d63a6 100644
--- a/src/record/SkRecords.h
+++ b/src/record/SkRecords.h
@@ -175,8 +175,13 @@ private:
RECORD0(NoOp);
RECORD0(Restore);
+#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
RECORD1(Save, SkCanvas::SaveFlags, flags);
RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas::SaveFlags, flags);
+#else
+RECORD0(Save);
+RECORD2(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint);
+#endif
RECORD1(PushCull, SkRect, rect);
RECORD0(PopCull);
« no previous file with comments | « src/record/SkRecorder.cpp ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698