OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 8 |
9 #ifndef GrGLProgram_DEFINED | 9 #ifndef GrGLProgram_DEFINED |
10 #define GrGLProgram_DEFINED | 10 #define GrGLProgram_DEFINED |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 GrGLInstalledFragProcs* fragmentProcessors); | 145 GrGLInstalledFragProcs* fragmentProcessors); |
146 | 146 |
147 // Sets the texture units for samplers. | 147 // Sets the texture units for samplers. |
148 void initSamplerUniforms(); | 148 void initSamplerUniforms(); |
149 void initSamplers(GrGLInstalledProc*, int* texUnitIdx); | 149 void initSamplers(GrGLInstalledProc*, int* texUnitIdx); |
150 | 150 |
151 // Helper for setData(). Makes GL calls to specify the initial color when th
ere is not | 151 // Helper for setData(). Makes GL calls to specify the initial color when th
ere is not |
152 // per-vertex colors. | 152 // per-vertex colors. |
153 void setColor(const GrOptDrawState&, GrColor color); | 153 void setColor(const GrOptDrawState&, GrColor color); |
154 | 154 |
155 // Helper for setData(). Makes GL calls to specify the initial coverage when
there is not | |
156 // per-vertex coverages. | |
157 void setCoverage(const GrOptDrawState&, uint8_t coverage); | |
158 | |
159 // A templated helper to loop over effects, set the transforms(via subclass)
and bind textures | 155 // A templated helper to loop over effects, set the transforms(via subclass)
and bind textures |
160 void setFragmentData(const GrOptDrawState&); | 156 void setFragmentData(const GrOptDrawState&); |
161 virtual void setTransformData(const GrPendingFragmentStage&, GrGLInstalledFr
agProc*); | 157 virtual void setTransformData(const GrPendingFragmentStage&, GrGLInstalledFr
agProc*); |
162 void bindTextures(const GrGLInstalledProc*, const GrProcessor&); | 158 void bindTextures(const GrGLInstalledProc*, const GrProcessor&); |
163 | 159 |
164 /* | 160 /* |
165 * Legacy NVPR needs a hook here to flush path tex gen settings. | 161 * Legacy NVPR needs a hook here to flush path tex gen settings. |
166 * TODO when legacy nvpr is removed, remove this call. | 162 * TODO when legacy nvpr is removed, remove this call. |
167 */ | 163 */ |
168 virtual void didSetData(GrGpu::DrawType); | 164 virtual void didSetData(GrGpu::DrawType); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 GrGLInstalledFragProc*) SK_OVERRIDE; | 260 GrGLInstalledFragProc*) SK_OVERRIDE; |
265 | 261 |
266 int fTexCoordSetCnt; | 262 int fTexCoordSetCnt; |
267 | 263 |
268 friend class GrGLLegacyNvprProgramBuilder; | 264 friend class GrGLLegacyNvprProgramBuilder; |
269 | 265 |
270 typedef GrGLNvprProgramBase INHERITED; | 266 typedef GrGLNvprProgramBase INHERITED; |
271 }; | 267 }; |
272 | 268 |
273 #endif | 269 #endif |
OLD | NEW |