Add snapshot and detach to SkPath

These aren't clever (or even that useful), but they help with migrating
code that was written to use SkPathBuilder. In the future, these can be
optimized and/or changed to return an immutable path type.

Bug: b/40040287
Bug: b/335431546
Change-Id: I028bb36ca43aefb6abde0f9c07d4a3f10be2ecac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/842500
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
1 file changed