| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * This function uploads uniforms and calls each GrGLProcessor's setData. It
is called before a | 93 * This function uploads uniforms and calls each GrGLProcessor's setData. It
is called before a |
| 94 * draw occurs using the program after the program has already been bound. I
t also uses the | 94 * draw occurs using the program after the program has already been bound. I
t also uses the |
| 95 * GrGLGpu object to bind the textures required by the GrGLProcessors. The c
olor and coverage | 95 * GrGLGpu object to bind the textures required by the GrGLProcessors. The c
olor and coverage |
| 96 * stages come from GrGLProgramDesc::Build(). | 96 * stages come from GrGLProgramDesc::Build(). |
| 97 */ | 97 */ |
| 98 void setData(const GrPrimitiveProcessor&, const GrOptDrawState&, const GrBat
chTracker&); | 98 void setData(const GrPrimitiveProcessor&, const GrOptDrawState&, const GrBat
chTracker&, |
| 99 GrGpu::DrawType); |
| 99 | 100 |
| 100 protected: | 101 protected: |
| 101 typedef GrGLProgramDataManager::UniformHandle UniformHandle; | 102 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
| 102 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; | 103 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; |
| 103 | 104 |
| 104 GrGLProgram(GrGLGpu*, | 105 GrGLProgram(GrGLGpu*, |
| 105 const GrProgramDesc&, | 106 const GrProgramDesc&, |
| 106 const BuiltinUniformHandles&, | 107 const BuiltinUniformHandles&, |
| 107 GrGLuint programID, | 108 GrGLuint programID, |
| 108 const UniformInfoArray&, | 109 const UniformInfoArray&, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 int index, | 182 int index, |
| 182 GrGLInstalledFragProc*) SK_OVERRIDE; | 183 GrGLInstalledFragProc*) SK_OVERRIDE; |
| 183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOpt
DrawState&); | 184 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOpt
DrawState&); |
| 184 | 185 |
| 185 friend class GrGLNvprProgramBuilder; | 186 friend class GrGLNvprProgramBuilder; |
| 186 | 187 |
| 187 typedef GrGLProgram INHERITED; | 188 typedef GrGLProgram INHERITED; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 #endif | 191 #endif |
| OLD | NEW |