aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-11-08 15:31:30 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-08 21:43:27 +0000
commit7a59f23bc12b0ee5808b598059565a8fb39a1759 (patch)
treea88fde25a27caf6ee50899615ba4270fa3c5b566 /src/gpu
parent58898eab5d5e698cc088890ee4c5599f2251f0ff (diff)
Update GrFragmentProcessor handling in Make methods in SkSL
Change-Id: I89ec73049126f3b5ff695a31a94e4816d4639fcd Reviewed-on: https://skia-review.googlesource.com/68901 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/effects/GrArithmeticFP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrArithmeticFP.h b/src/gpu/effects/GrArithmeticFP.h
index 6e6b6a5cc2..940f1adcf4 100644
--- a/src/gpu/effects/GrArithmeticFP.h
+++ b/src/gpu/effects/GrArithmeticFP.h
@@ -25,7 +25,7 @@ public:
bool enforcePMColor,
std::unique_ptr<GrFragmentProcessor> child) {
return std::unique_ptr<GrFragmentProcessor>(
- new GrArithmeticFP(k1, k2, k3, k4, enforcePMColor, child->clone()));
+ new GrArithmeticFP(k1, k2, k3, k4, enforcePMColor, std::move(child)));
}
GrArithmeticFP(const GrArithmeticFP& src);
std::unique_ptr<GrFragmentProcessor> clone() const override;