diff options
author | fmalita <fmalita@chromium.org> | 2014-06-17 13:52:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-17 13:52:18 -0700 |
commit | 6ca763f362f25500ffeee0cc0b5dd2b58e9f2a79 (patch) | |
tree | a81b214e89b18869ce42d4c98ec4226eeeda05b5 /include/core/SkCanvas.h | |
parent | dbb7b30429691d3a340e49f62c2b3f6f4cb81120 (diff) | |
download | skia-6ca763f362f25500ffeee0cc0b5dd2b58e9f2a79.tar.gz |
More SaveFlags removal twiddling.
This is a follow up to https://codereview.chromium.org/338913002/. More
tweaks to allow migrating clients to the new API.
1) switch the shim call direction willSave(SaveFlags) -> willSave()
(internal users are still using the former, so external overriders of
the latter will not be notified otherwise - doh)
2) ensure willSave() stays visible in SkProxyCanvas (Chromium's
TimingCanvas attempts to call it explicitly).
BUG=skia:2297
R=reed@google.com
Author: fmalita@chromium.org
Review URL: https://codereview.chromium.org/334393008
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 738408bf5..a08e82800 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -1201,9 +1201,9 @@ protected: }; // Transitional, pending external clients cleanup. - virtual void willSave(SaveFlags) {} + virtual void willSave(SaveFlags) { this->willSave(); } - virtual void willSave() { this->willSave(kMatrixClip_SaveFlag); } + virtual void willSave() {} virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) { return kFullLayer_SaveLayerStrategy; } |