| 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 22 matching lines...) Expand all Loading... |
| 33 * Uniforms are program-local so we can't rely on fHWState to hold the | 33 * Uniforms are program-local so we can't rely on fHWState to hold the |
| 34 * previous uniform state after a program change. | 34 * previous uniform state after a program change. |
| 35 */ | 35 */ |
| 36 class GrGLProgram : public SkRefCnt { | 36 class GrGLProgram : public SkRefCnt { |
| 37 public: | 37 public: |
| 38 SK_DECLARE_INST_COUNT(GrGLProgram) | 38 SK_DECLARE_INST_COUNT(GrGLProgram) |
| 39 | 39 |
| 40 typedef GrGLProgramBuilder::BuiltinUniformHandles BuiltinUniformHandles; | 40 typedef GrGLProgramBuilder::BuiltinUniformHandles BuiltinUniformHandles; |
| 41 | 41 |
| 42 static GrGLProgram* Create(GrGpuGL* gpu, | 42 static GrGLProgram* Create(GrGpuGL* gpu, |
| 43 const GrOptDrawState& optState, |
| 43 const GrGLProgramDesc& desc, | 44 const GrGLProgramDesc& desc, |
| 44 const GrGeometryStage* geometryProcessor, | 45 const GrGeometryStage* geometryProcessor, |
| 45 const GrFragmentStage* colorStages[], | 46 const GrFragmentStage* colorStages[], |
| 46 const GrFragmentStage* coverageStages[]); | 47 const GrFragmentStage* coverageStages[]); |
| 47 | 48 |
| 48 virtual ~GrGLProgram(); | 49 virtual ~GrGLProgram(); |
| 49 | 50 |
| 50 /** | 51 /** |
| 51 * Call to abandon GL objects owned by this program. | 52 * Call to abandon GL objects owned by this program. |
| 52 */ | 53 */ |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 198 |
| 198 GrGLProgramDesc fDesc; | 199 GrGLProgramDesc fDesc; |
| 199 GrGpuGL* fGpu; | 200 GrGpuGL* fGpu; |
| 200 | 201 |
| 201 GrGLProgramDataManager fProgramDataManager; | 202 GrGLProgramDataManager fProgramDataManager; |
| 202 | 203 |
| 203 typedef SkRefCnt INHERITED; | 204 typedef SkRefCnt INHERITED; |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 #endif | 207 #endif |
| OLD | NEW |