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 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 * vec2f or vec3f depending upon whether perspective interpolation is requir
ed or not. The names | 106 * vec2f or vec3f depending upon whether perspective interpolation is requir
ed or not. The names |
107 * of the varyings in the VS and FS as well their types are appended to the | 107 * of the varyings in the VS and FS as well their types are appended to the |
108 * TransformedCoordsArray* object, which is in turn passed to the effect's e
mitCode() function. | 108 * TransformedCoordsArray* object, which is in turn passed to the effect's e
mitCode() function. |
109 */ | 109 */ |
110 void emitTransforms(const GrProcessorStage& effectStage, | 110 void emitTransforms(const GrProcessorStage& effectStage, |
111 GrGLProcessor::TransformedCoordsArray* outCoords); | 111 GrGLProcessor::TransformedCoordsArray* outCoords); |
112 | 112 |
113 virtual bool compileAndAttachShaders(GrGLuint programId, | 113 virtual bool compileAndAttachShaders(GrGLuint programId, |
114 SkTDArray<GrGLuint>* shaderIds) const S
K_OVERRIDE; | 114 SkTDArray<GrGLuint>* shaderIds) const S
K_OVERRIDE; |
115 | 115 |
116 virtual void bindProgramLocations(GrGLuint programId) SK_OVERRIDE; | 116 virtual void bindProgramLocations(const GrOptDrawState&, GrGLuint programId)
SK_OVERRIDE; |
117 | 117 |
118 virtual GrGLProgramEffects* getProgramEffects() SK_OVERRIDE { return fProgra
mEffects.get(); } | 118 virtual GrGLProgramEffects* getProgramEffects() SK_OVERRIDE { return fProgra
mEffects.get(); } |
119 | 119 |
120 typedef GrGLProgramDesc::EffectKeyProvider EffectKeyProvider; | 120 typedef GrGLProgramDesc::EffectKeyProvider EffectKeyProvider; |
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 |