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

Unified Diff: src/record/SkRecorder.cpp

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/SkRecordOpts.cpp ('k') | src/record/SkRecords.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/record/SkRecorder.cpp
diff --git a/src/record/SkRecorder.cpp b/src/record/SkRecorder.cpp
index 345597c5bb5300e49db15d659762aef6d18236b4..2b787dd5abe96aa4bc9a89dd60e51c4ba90a5a66 100644
--- a/src/record/SkRecorder.cpp
+++ b/src/record/SkRecorder.cpp
@@ -195,14 +195,22 @@ void SkRecorder::drawVertices(VertexMode vmode,
}
void SkRecorder::willSave(SkCanvas::SaveFlags flags) {
- APPEND(Save, flags);
+ APPEND(Save
+#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
+ , flags
+#endif
+ );
INHERITED(willSave, flags);
}
SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds,
const SkPaint* paint,
SkCanvas::SaveFlags flags) {
- APPEND(SaveLayer, this->copy(bounds), this->copy(paint), flags);
+ APPEND(SaveLayer, this->copy(bounds), this->copy(paint)
+#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
+ , flags
+#endif
+ );
INHERITED(willSaveLayer, bounds, paint, flags);
return SkCanvas::kNoLayer_SaveLayerStrategy;
}
« no previous file with comments | « src/record/SkRecordOpts.cpp ('k') | src/record/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698