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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 typedef GrGLShaderBuilder INHERITED; | 432 typedef GrGLShaderBuilder INHERITED; |
433 }; | 433 }; |
434 | 434 |
435 //////////////////////////////////////////////////////////////////////////////// | 435 //////////////////////////////////////////////////////////////////////////////// |
436 | 436 |
437 class GrGLFragmentOnlyShaderBuilder : public GrGLShaderBuilder { | 437 class GrGLFragmentOnlyShaderBuilder : public GrGLShaderBuilder { |
438 public: | 438 public: |
439 GrGLFragmentOnlyShaderBuilder(GrGpuGL*, GrGLUniformManager&, const GrGLProgr
amDesc&); | 439 GrGLFragmentOnlyShaderBuilder(GrGpuGL*, GrGLUniformManager&, const GrGLProgr
amDesc&); |
440 | 440 |
441 int getNumTexCoordSets() const { return fNumTexCoordSets; } | 441 int getNumTexCoordSets() const { return fNumTexCoordSets; } |
442 int addTexCoordSets(int count) { return (fNumTexCoordSets += count) - count;
} | 442 int addTexCoordSets(int count); |
443 | 443 |
444 virtual GrGLProgramEffects* createAndEmitEffects( | 444 virtual GrGLProgramEffects* createAndEmitEffects( |
445 const GrEffectStage* effectStages[], | 445 const GrEffectStage* effectStages[], |
446 const EffectKey effectKeys[], | 446 const EffectKey effectKeys[], |
447 int effectCnt, | 447 int effectCnt, |
448 GrGLSLExpr<4>* inOutFSColor) SK_OVERRIDE; | 448 GrGLSLExpr<4>* inOutFSColor) SK_OVERRIDE; |
449 | 449 |
450 private: | 450 private: |
451 int fNumTexCoordSets; | 451 int fNumTexCoordSets; |
452 | 452 |
453 typedef GrGLShaderBuilder INHERITED; | 453 typedef GrGLShaderBuilder INHERITED; |
454 }; | 454 }; |
455 | 455 |
456 #endif | 456 #endif |
OLD | NEW |