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

Unified Diff: src/utils/SkDeferredCanvas.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/SkRecords.h ('k') | src/utils/SkNWayCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkDeferredCanvas.cpp
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index 9f444e11f3c17bb58e0b5ca298240e4fe4ff341e..709987aa8a6dc32ab9ae92dc93f3fb6778f64a7f 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -699,14 +699,22 @@ bool SkDeferredCanvas::isFullFrame(const SkRect* rect,
}
void SkDeferredCanvas::willSave(SaveFlags flags) {
- this->drawingCanvas()->save(flags);
+ this->drawingCanvas()->save(
+#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
+ flags
+#endif
+ );
this->recordedDrawCommand();
this->INHERITED::willSave(flags);
}
SkCanvas::SaveLayerStrategy SkDeferredCanvas::willSaveLayer(const SkRect* bounds,
const SkPaint* paint, SaveFlags flags) {
- this->drawingCanvas()->saveLayer(bounds, paint, flags);
+ this->drawingCanvas()->saveLayer(bounds, paint
+#ifdef SK_SUPPORT_LEGACY_SAVEFLAGS
+ , flags
+#endif
+ );
this->recordedDrawCommand();
this->INHERITED::willSaveLayer(bounds, paint, flags);
// No need for a full layer.
« no previous file with comments | « src/record/SkRecords.h ('k') | src/utils/SkNWayCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698