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
This commit is contained in:
fmalita 2014-06-16 12:13:39 -07:00 committed by Commit bot
parent 0eb02a6abb
commit 07fc662d7e

View File

@ -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;
}