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

Unified Diff: include/core/SkCanvas.h

Issue 287593005: Inline noop willFoo/didFoo into SkCanvas.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 70cfe287b85bb9226803dbdaf045db185eeb96a8..fa19176eeb99a90faff4c8965bdf2a52cee32674 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1226,12 +1226,14 @@ protected:
kFullLayer_SaveLayerStrategy,
kNoLayer_SaveLayerStrategy
};
- virtual void willSave(SaveFlags);
- virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags);
- virtual void willRestore();
- virtual void didConcat(const SkMatrix&);
- virtual void didSetMatrix(const SkMatrix&);
+ virtual void willSave(SaveFlags) {}
+ virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) {
+ return kFullLayer_SaveLayerStrategy;
+ }
+ virtual void willRestore() {}
+ virtual void didConcat(const SkMatrix&) {}
+ virtual void didSetMatrix(const SkMatrix&) {}
virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698