commit | 425b1337dcb850cff6e9a11ee82bfa25f41218ad | [log] [tgz] |
---|---|---|
author | Scott Violet <sky@chromium.org> | Sat Oct 15 15:11:37 2022 -0700 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Oct 17 20:34:45 2022 +0000 |
tree | cbe0fa152e678a62b5c8c6a614aa7466cf18f3aa | |
parent | 8c73a59cd417b3f8fae08dd2919840ca5a0848cc [diff] |
SkPath: when creating a new SkPathRef, only copy if old is not empty This ends up giving a 15% improvement to the micro-benchmark mentioned in the bug. Bug: skia:13817 Change-Id: I0304b388a8e88c28153ad3c654139796bb1d19ff Reviewed-on: https://skia-review.googlesource.com/c/skia/+/591081 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Herb Derby <herb@google.com>