minor cleanup
authorjoshualitt <joshualitt@chromium.org>
Wed, 16 Sep 2015 15:55:21 +0000 (08:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Sep 2015 15:55:21 +0000 (08:55 -0700)
TBR=
BUG=skia:

Review URL: https://codereview.chromium.org/1348773003

src/gpu/GrPipeline.cpp
src/gpu/GrPipeline.h

index 93647d6a5632307901f78f4262ac54ac369e1446..1d7b71f605d57c06c1d323ee48602948a6fffe8e 100644 (file)
@@ -96,7 +96,6 @@ GrPipeline* GrPipeline::CreateAt(void* memory, const CreateArgs& args,
         const GrFragmentProcessor* fp = builder.getColorFragmentProcessor(i);
         pipeline->fFragmentProcessors[currFPIdx].reset(fp);
         usesLocalCoords = usesLocalCoords || fp->usesLocalCoords();
-        fp->gatherCoordTransforms(&pipeline->fCoordTransforms);
     }
 
     for (int i = firstCoverageProcessorIdx; i < builder.numCoverageFragmentProcessors();
@@ -104,7 +103,6 @@ GrPipeline* GrPipeline::CreateAt(void* memory, const CreateArgs& args,
         const GrFragmentProcessor* fp = builder.getCoverageFragmentProcessor(i);
         pipeline->fFragmentProcessors[currFPIdx].reset(fp);
         usesLocalCoords = usesLocalCoords || fp->usesLocalCoords();
-        fp->gatherCoordTransforms(&pipeline->fCoordTransforms);
     }
 
     // Setup info we need to pass to GrPrimitiveProcessors that are used with this GrPipeline.
index db1415524d91c1068332d8d22500e21e5282f48f..b7e8b1f80d2c1b99014e6771148a8de851b087a0 100644 (file)
@@ -140,10 +140,6 @@ public:
 
     bool readsFragPosition() const { return fReadsFragPosition; }
 
-    const SkTArray<const GrCoordTransform*, true>& coordTransforms() const {
-        return fCoordTransforms;
-    }
-
 private:
     GrPipeline() { /** Initialized in factory function*/ }
 
@@ -187,9 +183,6 @@ private:
     // This value is also the index in fFragmentProcessors where coverage processors begin.
     int                                 fNumColorProcessors;
 
-    SkSTArray<8, const GrCoordTransform*, true> fCoordTransforms;
-    GrProgramDesc                       fDesc;
-
     typedef SkRefCnt INHERITED;
 };