Chromium Code Reviews| Index: src/gpu/glsl/GrGLSLProgramBuilder.h |
| diff --git a/src/gpu/glsl/GrGLSLProgramBuilder.h b/src/gpu/glsl/GrGLSLProgramBuilder.h |
| index 27c84372c1aeaaddab852f5122f9d39a3be8b611..a5becb723a7e5a09c05fbc13715926b2dc68b783 100644 |
| --- a/src/gpu/glsl/GrGLSLProgramBuilder.h |
| +++ b/src/gpu/glsl/GrGLSLProgramBuilder.h |
| @@ -8,6 +8,9 @@ |
| #ifndef GrGLSLProgramBuilder_DEFINED |
| #define GrGLSLProgramBuilder_DEFINED |
|
robertphillips
2016/09/15 20:44:30
Why do we need utility ?
bsalomon
2016/09/15 20:55:52
Hm, maybe at one point I had a std::unique_ptr in
|
| +#include <utility> |
| + |
| +#include "GrCoordTransform.h" |
| #include "GrGeometryProcessor.h" |
| #include "GrGpu.h" |
| #include "glsl/GrGLSLFragmentProcessor.h" |
| @@ -139,9 +142,10 @@ private: |
| void emitAndInstallPrimProc(const GrPrimitiveProcessor&, |
| GrGLSLExpr4* outputColor, |
| GrGLSLExpr4* outputCoverage); |
| - void emitAndInstallFragProcs(int procOffset, int numProcs, GrGLSLExpr4* inOut); |
| + void emitAndInstallFragProcs(GrGLSLExpr4* colorInOut, GrGLSLExpr4* coverageInOut); |
| void emitAndInstallFragProc(const GrFragmentProcessor&, |
| int index, |
| + int transformedCoordVarsIdx, |
| const GrGLSLExpr4& input, |
| GrGLSLExpr4* output); |
| void emitAndInstallXferProc(const GrXferProcessor&, |
| @@ -167,11 +171,10 @@ private: |
| void verify(const GrFragmentProcessor&); |
| #endif |
| - GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; |
| - GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
| - int fNumVertexSamplers; |
| - int fNumGeometrySamplers; |
| - int fNumFragmentSamplers; |
| + int fNumVertexSamplers; |
| + int fNumGeometrySamplers; |
| + int fNumFragmentSamplers; |
| + SkSTArray<4, GrShaderVar> fTransformedCoordVars; |
| }; |
| #endif |