| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrGLShaderBuilder_DEFINED | 8 #ifndef GrGLShaderBuilder_DEFINED |
| 9 #define GrGLShaderBuilder_DEFINED | 9 #define GrGLShaderBuilder_DEFINED |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class GrEffectStage; | 24 class GrEffectStage; |
| 25 class GrGLProgramDesc; | 25 class GrGLProgramDesc; |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 Contains all the incremental state of a shader as it is being built,as well as
helpers to | 28 Contains all the incremental state of a shader as it is being built,as well as
helpers to |
| 29 manipulate that state. | 29 manipulate that state. |
| 30 */ | 30 */ |
| 31 class GrGLShaderBuilder { | 31 class GrGLShaderBuilder { |
| 32 public: | 32 public: |
| 33 typedef GrTAllocator<GrGLShaderVar> VarArray; | 33 typedef GrTAllocator<GrGLShaderVar> VarArray; |
| 34 typedef GrBackendEffectFactory::EffectKey EffectKey; | |
| 35 typedef GrGLProgramEffects::TextureSampler TextureSampler; | 34 typedef GrGLProgramEffects::TextureSampler TextureSampler; |
| 36 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray; | 35 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray; |
| 37 typedef GrGLUniformManager::BuilderUniform BuilderUniform; | 36 typedef GrGLUniformManager::BuilderUniform BuilderUniform; |
| 38 | 37 |
| 39 enum ShaderVisibility { | 38 enum ShaderVisibility { |
| 40 kVertex_Visibility = 0x1, | 39 kVertex_Visibility = 0x1, |
| 41 kGeometry_Visibility = 0x2, | 40 kGeometry_Visibility = 0x2, |
| 42 kFragment_Visibility = 0x4, | 41 kFragment_Visibility = 0x4, |
| 43 }; | 42 }; |
| 44 | 43 |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 int effectCnt, | 513 int effectCnt, |
| 515 const GrGLProgramDesc::Effe
ctKeyProvider&, | 514 const GrGLProgramDesc::Effe
ctKeyProvider&, |
| 516 GrGLSLExpr4* inOutFSColor)
SK_OVERRIDE; | 515 GrGLSLExpr4* inOutFSColor)
SK_OVERRIDE; |
| 517 | 516 |
| 518 virtual void emitCodeAfterEffects() SK_OVERRIDE {} | 517 virtual void emitCodeAfterEffects() SK_OVERRIDE {} |
| 519 | 518 |
| 520 typedef GrGLShaderBuilder INHERITED; | 519 typedef GrGLShaderBuilder INHERITED; |
| 521 }; | 520 }; |
| 522 | 521 |
| 523 #endif | 522 #endif |
| OLD | NEW |