aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPathPriv.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-06-08 12:00:44 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-08 20:15:03 +0000
commitafa11586d782c7cb3e83b8af48023ff227349516 (patch)
tree384b990836f0da6ecb3a00788fdb4e806d2daeb7 /src/core/SkPathPriv.h
parent1471df99f0c7b5d9df43e7462d68a6635c3c59be (diff)
Make the SkPathRef GenIDChangeListener ref counted
Bug: skia: Change-Id: I2780e3fc76153373b4efca6059ded82f4f749325 Reviewed-on: https://skia-review.googlesource.com/133502 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/core/SkPathPriv.h')
-rw-r--r--src/core/SkPathPriv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h
index 9190962962..bcf85a138d 100644
--- a/src/core/SkPathPriv.h
+++ b/src/core/SkPathPriv.h
@@ -86,8 +86,9 @@ public:
return false;
}
- static void AddGenIDChangeListener(const SkPath& path, SkPathRef::GenIDChangeListener* listener) {
- path.fPathRef->addGenIDChangeListener(listener);
+ static void AddGenIDChangeListener(const SkPath& path,
+ sk_sp<SkPathRef::GenIDChangeListener> listener) {
+ path.fPathRef->addGenIDChangeListener(std::move(listener));
}
/**