Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: src/gpu/GrProcOptInfo.h

Issue 2041113004: sk_sp for gpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make it run. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrProcOptInfo.h
diff --git a/src/gpu/GrProcOptInfo.h b/src/gpu/GrProcOptInfo.h
index 87e7cd9c69774ed677cf5fcf0bc35538e0cc6edf..4048897ded129db31c1357d92a18d544c5f5cb97 100644
--- a/src/gpu/GrProcOptInfo.h
+++ b/src/gpu/GrProcOptInfo.h
@@ -10,6 +10,7 @@
#include "GrColor.h"
#include "GrInvariantOutput.h"
+#include "SkRefCnt.h"
class GrDrawBatch;
class GrFragmentProcessor;
@@ -28,10 +29,10 @@ public:
, fInputColorIsUsed(true)
, fInputColor(0) {}
- void calcWithInitialValues(const GrFragmentProcessor* const *, int cnt, GrColor startColor,
+ void calcWithInitialValues(const sk_sp<GrFragmentProcessor>*, int cnt, GrColor startColor,
GrColorComponentFlags, bool areCoverageStages, bool isLCD = false);
void initUsingInvariantOutput(GrInitInvariantOutput invOutput);
- void completeCalculations(const GrFragmentProcessor * const processors[], int cnt);
+ void completeCalculations(const sk_sp<GrFragmentProcessor>* processors, int cnt);
bool isSolidWhite() const { return fInOut.isSolidWhite(); }
bool isOpaque() const { return fInOut.isOpaque(); }
@@ -74,7 +75,7 @@ public:
GrColor inputColorToFirstEffectiveProccesor() const { return fInputColor; }
private:
- void internalCalc(const GrFragmentProcessor* const[], int cnt);
+ void internalCalc(const sk_sp<GrFragmentProcessor>*, int cnt);
GrInvariantOutput fInOut;
int fFirstEffectiveProcessorIndex;

Powered by Google App Engine
This is Rietveld 408576698