diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-06-08 12:00:44 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-08 20:15:03 +0000 |
commit | afa11586d782c7cb3e83b8af48023ff227349516 (patch) | |
tree | 384b990836f0da6ecb3a00788fdb4e806d2daeb7 /src/core/SkPathPriv.h | |
parent | 1471df99f0c7b5d9df43e7462d68a6635c3c59be (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.h | 5 |
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)); } /** |