| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrGLFullProgramBuilder_DEFINED | 8 #ifndef GrGLFullProgramBuilder_DEFINED |
| 9 #define GrGLFullProgramBuilder_DEFINED | 9 #define GrGLFullProgramBuilder_DEFINED |
| 10 | 10 |
| 11 #include "GrGLProgramBuilder.h" | 11 #include "GrGLProgramBuilder.h" |
| 12 #include "../GrGLGeometryProcessor.h" | 12 #include "../GrGLGeometryProcessor.h" |
| 13 | 13 |
| 14 class GrGLVertexProgramEffects; | 14 class GrGLVertexProgramEffects; |
| 15 | 15 |
| 16 class GrGLFullProgramBuilder : public GrGLProgramBuilder { | 16 class GrGLFullProgramBuilder : public GrGLProgramBuilder { |
| 17 public: | 17 public: |
| 18 GrGLFullProgramBuilder(GrGpuGL*, const GrGLProgramDesc&); | 18 GrGLFullProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLProgramDes
c&); |
| 19 | 19 |
| 20 /** Add a varying variable to the current program to pass values between vert
ex and fragment | 20 /** Add a varying variable to the current program to pass values between vert
ex and fragment |
| 21 shaders. If the last two parameters are non-NULL, they are filled in wit
h the name | 21 shaders. If the last two parameters are non-NULL, they are filled in wit
h the name |
| 22 generated. */ | 22 generated. */ |
| 23 void addVarying(GrSLType type, | 23 void addVarying(GrSLType type, |
| 24 const char* name, | 24 const char* name, |
| 25 const char** vsOutName = NULL, | 25 const char** vsOutName = NULL, |
| 26 const char** fsInName = NULL, | 26 const char** fsInName = NULL, |
| 27 GrGLShaderVar::Precision fsPrecision=GrGLShaderVar::kDefault
_Precision); | 27 GrGLShaderVar::Precision fsPrecision=GrGLShaderVar::kDefault
_Precision); |
| 28 | 28 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 GrGLGeometryProcessorEmitter fGLGeometryProcessorEmitter; | 122 GrGLGeometryProcessorEmitter fGLGeometryProcessorEmitter; |
| 123 GrGLGeometryShaderBuilder fGS; | 123 GrGLGeometryShaderBuilder fGS; |
| 124 GrGLVertexShaderBuilder fVS; | 124 GrGLVertexShaderBuilder fVS; |
| 125 SkAutoTDelete<GrGLVertexProgramEffects> fProgramEffects; | 125 SkAutoTDelete<GrGLVertexProgramEffects> fProgramEffects; |
| 126 | 126 |
| 127 typedef GrGLProgramBuilder INHERITED; | 127 typedef GrGLProgramBuilder INHERITED; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 #endif | 130 #endif |
| OLD | NEW |