diff options
Diffstat (limited to 'src/gpu/gl/builders')
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.cpp | 14 | ||||
-rw-r--r-- | src/gpu/gl/builders/GrGLProgramBuilder.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index 9fbb4c1953..088169622c 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp @@ -193,8 +193,8 @@ void GrGLProgramBuilder::emitAndInstallProcs(GrGLSLExpr4* inputColor, GrGLSLExpr // First we loop over all of the installed processors and collect coord transforms. These will // be sent to the GrGLPrimitiveProcessor in its emitCode function SkSTArray<8, GrGLProcessor::TransformedCoordsArray> outCoords; - for (int i = 0; i < this->optState().numFragmentStages(); i++) { - const GrFragmentProcessor* processor = this->optState().getFragmentStage(i).processor(); + for (int i = 0; i < this->pipeline().numFragmentStages(); i++) { + const GrFragmentProcessor* processor = this->pipeline().getFragmentStage(i).processor(); SkSTArray<2, const GrCoordTransform*, true>& procCoords = fCoordTransforms.push_back(); for (int t = 0; t < processor->numTransforms(); t++) { procCoords.push_back(&processor->coordTransform(t)); @@ -205,10 +205,10 @@ void GrGLProgramBuilder::emitAndInstallProcs(GrGLSLExpr4* inputColor, GrGLSLExpr this->emitAndInstallProc(primProc, inputColor, inputCoverage); fFragmentProcessors.reset(SkNEW(GrGLInstalledFragProcs)); - int numProcs = this->optState().numFragmentStages(); - this->emitAndInstallFragProcs(0, this->optState().numColorStages(), inputColor); - this->emitAndInstallFragProcs(this->optState().numColorStages(), numProcs, inputCoverage); - this->emitAndInstallXferProc(*this->optState().getXferProcessor(), *inputColor, *inputCoverage); + int numProcs = this->pipeline().numFragmentStages(); + this->emitAndInstallFragProcs(0, this->pipeline().numColorStages(), inputColor); + this->emitAndInstallFragProcs(this->pipeline().numColorStages(), numProcs, inputCoverage); + this->emitAndInstallXferProc(*this->pipeline().getXferProcessor(), *inputColor, *inputCoverage); } void GrGLProgramBuilder::emitAndInstallFragProcs(int procOffset, @@ -216,7 +216,7 @@ void GrGLProgramBuilder::emitAndInstallFragProcs(int procOffset, GrGLSLExpr4* inOut) { for (int e = procOffset; e < numProcs; ++e) { GrGLSLExpr4 output; - const GrPendingFragmentStage& stage = this->optState().getFragmentStage(e); + const GrPendingFragmentStage& stage = this->pipeline().getFragmentStage(e); this->emitAndInstallProc(stage, e, *inOut, &output); *inOut = output; } diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.h b/src/gpu/gl/builders/GrGLProgramBuilder.h index 612791e078..4b40cefad0 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.h +++ b/src/gpu/gl/builders/GrGLProgramBuilder.h @@ -15,8 +15,8 @@ #include "../GrGLUniformHandle.h" #include "../GrGLGeometryProcessor.h" #include "../GrGLXferProcessor.h" -#include "../../GrOptDrawState.h" #include "../../GrPendingFragmentStage.h" +#include "../../GrPipeline.h" /* * This is the base class for a series of interfaces. This base class *MUST* remain abstract with @@ -283,7 +283,7 @@ protected: GrGLProgramBuilder(GrGLGpu*, const DrawArgs&); const GrPrimitiveProcessor& primitiveProcessor() const { return *fArgs.fPrimitiveProcessor; } - const GrOptDrawState& optState() const { return *fArgs.fOptState; } + const GrPipeline& pipeline() const { return *fArgs.fPipeline; } const GrProgramDesc& desc() const { return *fArgs.fDesc; } const GrBatchTracker& batchTracker() const { return *fArgs.fBatchTracker; } const GrProgramDesc::KeyHeader& header() const { return fArgs.fDesc->header(); } |