DescriptionDecrement SkCanvas::fDeferredSaveCount in doSave()
We're currently decrementing early in checkForDeferredSave(), but that
means we break the getSaveCount() invariant during willSave() dispatch.
Instead, we can defer to doSave(), until after willSave() is called.
This allows overriders to call getSaveCount().
R=reed@google.com,robertphillips@google.com
Committed: https://skia.googlesource.com/skia/+/a62d32d1e3112c7e5a26c27e5e967d124ef8dd81
Patch Set 1 #
Messages
Total messages: 5 (1 generated)
|