| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * This function uploads uniforms, calls each GrGLProcessor's setData, and r
etrieves the | 92 * This function uploads uniforms, calls each GrGLProcessor's setData, and r
etrieves the |
| 93 * textures that need to be bound on each unit. It is the caller's responsib
ility to ensure | 93 * textures that need to be bound on each unit. It is the caller's responsib
ility to ensure |
| 94 * the program is bound before calling, and to bind the outgoing textures to
their respective | 94 * the program is bound before calling, and to bind the outgoing textures to
their respective |
| 95 * units upon return. (Each index in the array corresponds to its matching G
L texture unit.) | 95 * units upon return. (Each index in the array corresponds to its matching G
L texture unit.) |
| 96 */ | 96 */ |
| 97 void setData(const GrPrimitiveProcessor&, const GrPipeline&, const GrBatchTr
acker&, | 97 void setData(const GrPrimitiveProcessor&, const GrPipeline&, |
| 98 SkTArray<const GrTextureAccess*>* textureBindings); | 98 SkTArray<const GrTextureAccess*>* textureBindings); |
| 99 | 99 |
| 100 protected: | 100 protected: |
| 101 typedef GrGLProgramDataManager::UniformHandle UniformHandle; | 101 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
| 102 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; | 102 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; |
| 103 | 103 |
| 104 GrGLProgram(GrGLGpu*, | 104 GrGLProgram(GrGLGpu*, |
| 105 const GrProgramDesc&, | 105 const GrProgramDesc&, |
| 106 const BuiltinUniformHandles&, | 106 const BuiltinUniformHandles&, |
| 107 GrGLuint programID, | 107 GrGLuint programID, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 GrGLGpu* fGpu; | 146 GrGLGpu* fGpu; |
| 147 GrGLProgramDataManager fProgramDataManager; | 147 GrGLProgramDataManager fProgramDataManager; |
| 148 SkTArray<UniformHandle> fSamplerUniforms; | 148 SkTArray<UniformHandle> fSamplerUniforms; |
| 149 | 149 |
| 150 friend class GrGLProgramBuilder; | 150 friend class GrGLProgramBuilder; |
| 151 | 151 |
| 152 typedef SkRefCnt INHERITED; | 152 typedef SkRefCnt INHERITED; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 #endif | 155 #endif |
| OLD | NEW |