diff options
author | fmalita <fmalita@chromium.org> | 2014-06-16 12:13:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-16 12:13:39 -0700 |
commit | 07fc662d7ee018bfc9eeddab82cc1768f57a69d2 (patch) | |
tree | d21c6a4a8e6c0c6651ee3713622e1a6794db7c56 /include | |
parent | 0eb02a6abbe2964e4955863b0f82aff6a8661801 (diff) |
Prepare for internal SaveFlags removal.
Chromium has a couple of SkCanvas subclasses which override willSave().
This adds a transitional shim to facilitate converting these to the
parameter-less API.
BUG=skia:2297
R=reed@google.com, scroggo@google.com
Author: fmalita@chromium.org
Review URL: https://codereview.chromium.org/338913002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index d6de257d89..738408bf51 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -1200,7 +1200,10 @@ protected: kNoLayer_SaveLayerStrategy }; + // Transitional, pending external clients cleanup. virtual void willSave(SaveFlags) {} + + virtual void willSave() { this->willSave(kMatrixClip_SaveFlag); } virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) { return kFullLayer_SaveLayerStrategy; } |