Descriptionwip for drawables
Idea:
1. in its mutable recording state, keep a table of drawables on the side, and store an index in the record list.
2. In "immediate-mode" draw, just call the clients drawable directly (need access to our private list to turn the stored index into a proc)
3. when we "snap", we replace the list of drawables with a list of (sub) pictures, and then during playback of the snapped picture, we invoke a private drawable which just calls "drawPicture" on the index'd subpicture.
Committed: https://skia.googlesource.com/skia/+/6be2aa9a251bf6022570a03140f956655b3ef1da
Patch Set 1 #Patch Set 2 : works, but I took a few short-cuts #
Total comments: 6
Patch Set 3 : rebase #
Total comments: 2
Patch Set 4 : address comments from #2 #Patch Set 5 : use SkData's release-proc to encapsulate the unref requirement for the array #Patch Set 6 : #
Total comments: 2
Patch Set 7 : make the pictures in the array also const (the array already was const) #
Messages
Total messages: 25 (6 generated)
|