diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-11 09:40:37 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-11 14:13:26 +0000 |
commit | aff329b8e9b239bca1d93b13a914fbef45ccf7fe (patch) | |
tree | 06ba42a557c6695f145bcf4956c981fc87af55ff /include/core | |
parent | e2cbd0451832ec71d1b498e0f64d02b7d096b2b7 (diff) |
Make GrFragmentProcessor be non-refcounted and use std::unique_ptr.
Change-Id: I985e54a071338e99292a5aa2f42c92bc115b4008
Reviewed-on: https://skia-review.googlesource.com/32760
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkColorFilter.h | 4 | ||||
-rw-r--r-- | include/core/SkImageFilter.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h index 68142a29de..3241a2b311 100644 --- a/include/core/SkColorFilter.h +++ b/include/core/SkColorFilter.h @@ -131,8 +131,8 @@ public: * * A null return indicates that the color filter isn't implemented for the GPU backend. */ - virtual sk_sp<GrFragmentProcessor> asFragmentProcessor(GrContext*, - SkColorSpace* dstColorSpace) const; + virtual std::unique_ptr<GrFragmentProcessor> asFragmentProcessor( + GrContext*, SkColorSpace* dstColorSpace) const; #endif bool affectsTransparentBlack() const { diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h index 9fd370dad6..d9b0fb04ab 100644 --- a/include/core/SkImageFilter.h +++ b/include/core/SkImageFilter.h @@ -152,7 +152,7 @@ public: #if SK_SUPPORT_GPU static sk_sp<SkSpecialImage> DrawWithFP(GrContext* context, - sk_sp<GrFragmentProcessor> fp, + std::unique_ptr<GrFragmentProcessor> fp, const SkIRect& bounds, const OutputProperties& outputProperties); #endif |