| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 /** | 126 /** |
| 127 * This function uploads uniforms and calls each GrGLProcessor's setData. It
is called before a | 127 * This function uploads uniforms and calls each GrGLProcessor's setData. It
is called before a |
| 128 * draw occurs using the program after the program has already been bound. I
t also uses the | 128 * draw occurs using the program after the program has already been bound. I
t also uses the |
| 129 * GrGpuGL object to bind the textures required by the GrGLProcessors. The c
olor and coverage | 129 * GrGpuGL object to bind the textures required by the GrGLProcessors. The c
olor and coverage |
| 130 * stages come from GrGLProgramDesc::Build(). | 130 * stages come from GrGLProgramDesc::Build(). |
| 131 */ | 131 */ |
| 132 void setData(const GrOptDrawState&, | 132 void setData(const GrOptDrawState&, GrGpu::DrawType); |
| 133 GrGpu::DrawType, | |
| 134 const GrDeviceCoordTexture* dstCopy /* can be NULL*/); | |
| 135 | 133 |
| 136 protected: | 134 protected: |
| 137 typedef GrGLProgramDataManager::UniformHandle UniformHandle; | 135 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
| 138 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; | 136 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; |
| 139 | 137 |
| 140 GrGLProgram(GrGpuGL*, | 138 GrGLProgram(GrGpuGL*, |
| 141 const GrProgramDesc&, | 139 const GrProgramDesc&, |
| 142 const BuiltinUniformHandles&, | 140 const BuiltinUniformHandles&, |
| 143 GrGLuint programID, | 141 GrGLuint programID, |
| 144 const UniformInfoArray&, | 142 const UniformInfoArray&, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 GrGLInstalledFragProc*) SK_OVERRIDE; | 259 GrGLInstalledFragProc*) SK_OVERRIDE; |
| 262 | 260 |
| 263 int fTexCoordSetCnt; | 261 int fTexCoordSetCnt; |
| 264 | 262 |
| 265 friend class GrGLLegacyNvprProgramBuilder; | 263 friend class GrGLLegacyNvprProgramBuilder; |
| 266 | 264 |
| 267 typedef GrGLNvprProgramBase INHERITED; | 265 typedef GrGLNvprProgramBase INHERITED; |
| 268 }; | 266 }; |
| 269 | 267 |
| 270 #endif | 268 #endif |
| OLD | NEW |