aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrShape.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/gpu/GrShape.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/gpu/GrShape.h')
-rw-r--r--src/gpu/GrShape.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h
index 36402330ce..c333168b53 100644
--- a/src/gpu/GrShape.h
+++ b/src/gpu/GrShape.h
@@ -396,9 +396,9 @@ public:
/**
* Adds a listener to the *original* path. Typically used to invalidate cached resources when
* a path is no longer in-use. If the shape started out as something other than a path, this
- * does nothing (but will delete the listener).
+ * does nothing.
*/
- void addGenIDChangeListener(SkPathRef::GenIDChangeListener* listener) const;
+ void addGenIDChangeListener(sk_sp<SkPathRef::GenIDChangeListener>) const;
/**
* Helpers that are only exposed for unit tests, to determine if the shape is a path, and get