DescriptionAdd SkRecord::defrag().
Called by SkRecordOptimize(), this moves all the NoOps to the end and
slices them off.
This implementation with std::remove_if() is linear and doesn't malloc.
No diffs: https://gold.skia.org/search2?issue=1461663003&unt=true&query=source_type%3Dgm&master=false
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/c3c6194ba2b90fde57d8d0bc1d6302656f0dae27
Patch Set 1 #Patch Set 2 : remove_if #Patch Set 3 : simplify #Patch Set 4 : simplify #
Messages
Total messages: 11 (5 generated)
|