Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Side by Side Diff: src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.h

Issue 576543005: Breaking out full program and frag only (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramEffects.cpp ('k') | src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698