| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const GrEffectStage* colorStages[], | 45 const GrEffectStage* colorStages[], |
| 46 const GrEffectStage* coverageStages[]); | 46 const GrEffectStage* coverageStages[]); |
| 47 | 47 |
| 48 virtual ~GrGLProgram(); | 48 virtual ~GrGLProgram(); |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * Call to abandon GL objects owned by this program. | 51 * Call to abandon GL objects owned by this program. |
| 52 */ | 52 */ |
| 53 void abandon(); | 53 void abandon(); |
| 54 | 54 |
| 55 /** | |
| 56 * The shader may modify the blend coefficients. Params are in/out. | |
| 57 */ | |
| 58 void overrideBlend(GrBlendCoeff* srcCoeff, GrBlendCoeff* dstCoeff) const; | |
| 59 | |
| 60 const GrGLProgramDesc& getDesc() { return fDesc; } | 55 const GrGLProgramDesc& getDesc() { return fDesc; } |
| 61 | 56 |
| 62 /** | 57 /** |
| 63 * Gets the GL program ID for this program. | 58 * Gets the GL program ID for this program. |
| 64 */ | 59 */ |
| 65 GrGLuint programID() const { return fProgramID; } | 60 GrGLuint programID() const { return fProgramID; } |
| 66 | 61 |
| 67 bool hasVertexShader() const { return fHasVertexShader; } | 62 bool hasVertexShader() const { return fHasVertexShader; } |
| 68 | 63 |
| 69 /** | 64 /** |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 197 |
| 203 GrGLProgramDesc fDesc; | 198 GrGLProgramDesc fDesc; |
| 204 GrGpuGL* fGpu; | 199 GrGpuGL* fGpu; |
| 205 | 200 |
| 206 GrGLProgramDataManager fProgramDataManager; | 201 GrGLProgramDataManager fProgramDataManager; |
| 207 | 202 |
| 208 typedef SkRefCnt INHERITED; | 203 typedef SkRefCnt INHERITED; |
| 209 }; | 204 }; |
| 210 | 205 |
| 211 #endif | 206 #endif |
| OLD | NEW |