| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrGLUniformHandler_DEFINED | 8 #ifndef GrGLUniformHandler_DEFINED |
| 9 #define GrGLUniformHandler_DEFINED | 9 #define GrGLUniformHandler_DEFINED |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 , fUniforms(kUniformsPerBlock) {} | 31 , fUniforms(kUniformsPerBlock) {} |
| 32 | 32 |
| 33 UniformHandle internalAddUniformArray(uint32_t visibility, | 33 UniformHandle internalAddUniformArray(uint32_t visibility, |
| 34 GrSLType type, | 34 GrSLType type, |
| 35 GrSLPrecision precision, | 35 GrSLPrecision precision, |
| 36 const char* name, | 36 const char* name, |
| 37 bool mangleName, | 37 bool mangleName, |
| 38 int arrayCount, | 38 int arrayCount, |
| 39 const char** outName) override; | 39 const char** outName) override; |
| 40 | 40 |
| 41 void appendUniformDecls(ShaderVisibility, SkString*) const override; | 41 void appendUniformDecls(GrShaderFlags visibility, SkString*) const override; |
| 42 | 42 |
| 43 // Manually set uniform locations for all our uniforms. | 43 // Manually set uniform locations for all our uniforms. |
| 44 void bindUniformLocations(GrGLuint programID, const GrGLCaps& caps); | 44 void bindUniformLocations(GrGLuint programID, const GrGLCaps& caps); |
| 45 | 45 |
| 46 // Updates the loction of the Uniforms if we cannot bind uniform locations m
anually | 46 // Updates the loction of the Uniforms if we cannot bind uniform locations m
anually |
| 47 void getUniformLocations(GrGLuint programID, const GrGLCaps& caps); | 47 void getUniformLocations(GrGLuint programID, const GrGLCaps& caps); |
| 48 | 48 |
| 49 const GrGLGpu* glGpu() const; | 49 const GrGLGpu* glGpu() const; |
| 50 | 50 |
| 51 typedef GrGLProgramDataManager::UniformInfo UniformInfo; | 51 typedef GrGLProgramDataManager::UniformInfo UniformInfo; |
| 52 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; | 52 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; |
| 53 | 53 |
| 54 UniformInfoArray fUniforms; | 54 UniformInfoArray fUniforms; |
| 55 | 55 |
| 56 friend class GrGLProgramBuilder; | 56 friend class GrGLProgramBuilder; |
| 57 | 57 |
| 58 typedef GrGLSLUniformHandler INHERITED; | 58 typedef GrGLSLUniformHandler INHERITED; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif | 61 #endif |
| OLD | NEW |