From aff329b8e9b239bca1d93b13a914fbef45ccf7fe Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 11 Aug 2017 09:40:37 -0400 Subject: 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 Reviewed-by: Brian Osman --- src/effects/GrAlphaThresholdFragmentProcessor.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/effects/GrAlphaThresholdFragmentProcessor.h') diff --git a/src/effects/GrAlphaThresholdFragmentProcessor.h b/src/effects/GrAlphaThresholdFragmentProcessor.h index 78424d0359..3b649516c1 100644 --- a/src/effects/GrAlphaThresholdFragmentProcessor.h +++ b/src/effects/GrAlphaThresholdFragmentProcessor.h @@ -24,19 +24,19 @@ public: float innerThreshold() const { return fInnerThreshold; } float outerThreshold() const { return fOuterThreshold; } - static sk_sp Make(sk_sp image, - sk_sp - colorXform, - sk_sp - mask, - float innerThreshold, - float outerThreshold, - const SkIRect& bounds) { - return sk_sp(new GrAlphaThresholdFragmentProcessor( + static std::unique_ptr Make(sk_sp image, + sk_sp + colorXform, + sk_sp + mask, + float innerThreshold, + float outerThreshold, + const SkIRect& bounds) { + return std::unique_ptr(new GrAlphaThresholdFragmentProcessor( image, colorXform, mask, innerThreshold, outerThreshold, bounds)); } GrAlphaThresholdFragmentProcessor(const GrAlphaThresholdFragmentProcessor& src); - sk_sp clone() const override; + std::unique_ptr clone() const override; const char* name() const override { return "AlphaThresholdFragmentProcessor"; } private: -- cgit v1.2.3