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&); |