Use pathbuilder to keep paths' immutable (their geometry)
- add == helper to pathbuilder
- allow path.reset(), is it doesn't violate immutable path geometry.
- (safety) disallow passing a temporary path to Iterator
Notes on operator==
- mimics the checks done in today's SkPath==
- like SkPath's, does not look at bounds, convexity, IsA
- if those might be useful for quickrejects, suggest a separate CL
Change-Id: I6a30464d21006808501b2bd1ddf47d5d4eb00de7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1067736
Reviewed-by: Daniel Dilan <danieldilan@google.com>
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Mike Reed <mike@reedtribe.org>
6 files changed