OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2014 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef GrGLFragmentOnlyProgramBuilder_DEFINED |
| 9 #define GrGLFragmentOnlyProgramBuilder_DEFINED |
| 10 |
| 11 #include "GrGLProgramBuilder.h" |
| 12 |
| 13 class GrGLFragmentOnlyProgramBuilder : public GrGLProgramBuilder { |
| 14 public: |
| 15 GrGLFragmentOnlyProgramBuilder(GrGpuGL*, const GrGLProgramDesc&); |
| 16 |
| 17 int addTexCoordSets(int count); |
| 18 |
| 19 private: |
| 20 virtual void emitCodeBeforeEffects(GrGLSLExpr4* color, |
| 21 GrGLSLExpr4* coverage) SK_OVERRIDE {} |
| 22 |
| 23 virtual void emitGeometryProcessor(const GrEffectStage* geometryProcessor, |
| 24 GrGLSLExpr4* coverage) SK_OVERRIDE { |
| 25 SkASSERT(NULL == geometryProcessor); |
| 26 } |
| 27 |
| 28 virtual GrGLProgramEffects* createAndEmitEffects(const GrEffectStage* effect
Stages[], |
| 29 int effectCnt, |
| 30 const GrGLProgramDesc::Effe
ctKeyProvider&, |
| 31 GrGLSLExpr4* inOutFSColor)
SK_OVERRIDE; |
| 32 |
| 33 virtual void emitCodeAfterEffects() SK_OVERRIDE {} |
| 34 |
| 35 typedef GrGLProgramBuilder INHERITED; |
| 36 }; |
| 37 |
| 38 #endif |
OLD | NEW |