Index: src/gpu/GrProcOptInfo.cpp |
diff --git a/src/gpu/GrProcOptInfo.cpp b/src/gpu/GrProcOptInfo.cpp |
index 183a42fb33e17c9153fe64b4c5bf26d21e09e442..7b53690670ca1a97424b74af1af7cdb339928024 100644 |
--- a/src/gpu/GrProcOptInfo.cpp |
+++ b/src/gpu/GrProcOptInfo.cpp |
@@ -11,7 +11,7 @@ |
#include "batches/GrDrawBatch.h" |
-void GrProcOptInfo::calcWithInitialValues(const GrFragmentProcessor * const processors[], |
+void GrProcOptInfo::calcWithInitialValues(const sk_sp<GrFragmentProcessor>* processors, |
int cnt, |
GrColor startColor, |
GrColorComponentFlags flags, |
@@ -30,17 +30,17 @@ void GrProcOptInfo::initUsingInvariantOutput(GrInitInvariantOutput invOutput) { |
fInOut.reset(invOutput); |
} |
-void GrProcOptInfo::completeCalculations(const GrFragmentProcessor * const processors[], int cnt) { |
+void GrProcOptInfo::completeCalculations(const sk_sp<GrFragmentProcessor>* processors, int cnt) { |
this->internalCalc(processors, cnt); |
} |
-void GrProcOptInfo::internalCalc(const GrFragmentProcessor* const processors[], int cnt) { |
+void GrProcOptInfo::internalCalc(const sk_sp<GrFragmentProcessor>* processors, int cnt) { |
fFirstEffectiveProcessorIndex = 0; |
fInputColorIsUsed = true; |
fInputColor = fInOut.color(); |
for (int i = 0; i < cnt; ++i) { |
- const GrFragmentProcessor* processor = processors[i]; |
+ const sk_sp<GrFragmentProcessor> processor = processors[i]; |
fInOut.resetWillUseInputColor(); |
processor->computeInvariantOutput(&fInOut); |
SkDEBUGCODE(fInOut.validate()); |