Index: src/gpu/glsl/GrGLSLPrimitiveProcessor.h |
diff --git a/src/gpu/glsl/GrGLSLPrimitiveProcessor.h b/src/gpu/glsl/GrGLSLPrimitiveProcessor.h |
index d164bbe53e03c0fea0fe4439599e27c37c0beacc..9fa5150e8288854bb5b6a54ebabd044e88c24d11 100644 |
--- a/src/gpu/glsl/GrGLSLPrimitiveProcessor.h |
+++ b/src/gpu/glsl/GrGLSLPrimitiveProcessor.h |
@@ -18,6 +18,7 @@ class GrPrimitiveProcessor; |
class GrGLSLCaps; |
class GrGLSLFragmentBuilder; |
class GrGLSLGPBuilder; |
+class GrGLSLUniformHandler; |
class GrGLSLVaryingHandler; |
class GrGLSLVertexBuilder; |
@@ -33,10 +34,10 @@ public: |
typedef SkSTArray<8, GrGLSLTransformedCoordsArray> TransformsOut; |
struct EmitArgs { |
- EmitArgs(GrGLSLGPBuilder* pb, |
- GrGLSLVertexBuilder* vertBuilder, |
+ EmitArgs(GrGLSLVertexBuilder* vertBuilder, |
GrGLSLFragmentBuilder* fragBuilder, |
GrGLSLVaryingHandler* varyingHandler, |
+ GrGLSLUniformHandler* uniformHandler, |
const GrGLSLCaps* caps, |
const GrPrimitiveProcessor& gp, |
const char* outputColor, |
@@ -44,10 +45,10 @@ public: |
const TextureSamplerArray& samplers, |
const TransformsIn& transformsIn, |
TransformsOut* transformsOut) |
- : fPB(pb) |
- , fVertBuilder(vertBuilder) |
+ : fVertBuilder(vertBuilder) |
, fFragBuilder(fragBuilder) |
, fVaryingHandler(varyingHandler) |
+ , fUniformHandler(uniformHandler) |
, fGLSLCaps(caps) |
, fGP(gp) |
, fOutputColor(outputColor) |
@@ -55,10 +56,10 @@ public: |
, fSamplers(samplers) |
, fTransformsIn(transformsIn) |
, fTransformsOut(transformsOut) {} |
- GrGLSLGPBuilder* fPB; |
GrGLSLVertexBuilder* fVertBuilder; |
GrGLSLFragmentBuilder* fFragBuilder; |
GrGLSLVaryingHandler* fVaryingHandler; |
+ GrGLSLUniformHandler* fUniformHandler; |
const GrGLSLCaps* fGLSLCaps; |
const GrPrimitiveProcessor& fGP; |
const char* fOutputColor; |
@@ -91,8 +92,8 @@ public: |
const SkTArray<const GrCoordTransform*, true>& transforms) = 0; |
protected: |
- void setupUniformColor(GrGLSLGPBuilder* pb, |
- GrGLSLFragmentBuilder* fragBuilder, |
+ void setupUniformColor(GrGLSLFragmentBuilder* fragBuilder, |
+ GrGLSLUniformHandler* uniformHandler, |
const char* outputName, |
UniformHandle* colorUniform); |