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:
parent
0eb02a6abb
commit
07fc662d7e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user