commit | aff329b8e9b239bca1d93b13a914fbef45ccf7fe | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Fri Aug 11 09:40:37 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Aug 11 14:13:26 2017 +0000 |
tree | 06ba42a557c6695f145bcf4956c981fc87af55ff | |
parent | e2cbd0451832ec71d1b498e0f64d02b7d096b2b7 [diff] [blame] |
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>
diff --git a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp index ac22a8c..b54ca53 100644 --- a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp +++ b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp
@@ -255,7 +255,7 @@ GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrGaussianConvolutionFragmentProcessor); #if GR_TEST_UTILS -sk_sp<GrFragmentProcessor> GrGaussianConvolutionFragmentProcessor::TestCreate( +std::unique_ptr<GrFragmentProcessor> GrGaussianConvolutionFragmentProcessor::TestCreate( GrProcessorTestData* d) { int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : GrProcessorUnitTest::kAlphaTextureIdx;