DescriptionSkClipStack::Element tweaks.
(
This is intended to facilitate efficient kMatrix_SaveFlags emulation
on restore():
* collect all clip stack elements for the current save count into a
side clip stack
* canvas.restore(everything)
* replay the collected clip ops to restore the initial clip state
=> we restored the matrix but the clip state is unchanged
)
Two main changes:
* expose the save count for SkClipStack::Element
* expose a replay method for the same (logic relocated from
SkCanvas::replayClips)
The SkCanvas::ClipVisitor shuffling is to enable forward decl
in SkClipStack.h (cannot fwdecl a nested class).
R=robertphillips@google.com
TBR=reed@google.com
Committed: https://skia.googlesource.com/skia/+/c3b589a24eb4d567a906189f882c259ecf5c2f58
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebased #
Messages
Total messages: 16 (0 generated)
|