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

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

Issue 628293002: Plumb OptDrawState down to VertexShaderBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « src/gpu/gl/GrGpuGL_program.cpp ('k') | src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 GrGLFragmentOnlyProgramBuilder_DEFINED 8 #ifndef GrGLFragmentOnlyProgramBuilder_DEFINED
9 #define GrGLFragmentOnlyProgramBuilder_DEFINED 9 #define GrGLFragmentOnlyProgramBuilder_DEFINED
10 10
11 #include "GrGLProgramBuilder.h" 11 #include "GrGLProgramBuilder.h"
12 12
13 class GrGLFragmentOnlyProgramBuilder : public GrGLProgramBuilder { 13 class GrGLFragmentOnlyProgramBuilder : public GrGLProgramBuilder {
14 public: 14 public:
15 GrGLFragmentOnlyProgramBuilder(GrGpuGL*, const GrGLProgramDesc&); 15 GrGLFragmentOnlyProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLPr ogramDesc&);
16 16
17 int addTexCoordSets(int count); 17 int addTexCoordSets(int count);
18 18
19 private: 19 private:
20 virtual void createAndEmitEffects(const GrGeometryStage* geometryProcessor, 20 virtual void createAndEmitEffects(const GrGeometryStage* geometryProcessor,
21 const GrFragmentStage* colorStages[], 21 const GrFragmentStage* colorStages[],
22 const GrFragmentStage* coverageStages[], 22 const GrFragmentStage* coverageStages[],
23 GrGLSLExpr4* inputColor, 23 GrGLSLExpr4* inputColor,
24 GrGLSLExpr4* inputCoverage) SK_OVERRIDE; 24 GrGLSLExpr4* inputCoverage) SK_OVERRIDE;
25 25
(...skipping 21 matching lines...) Expand all
47 virtual GrGLProgramEffects* getProgramEffects() SK_OVERRIDE { return fProgra mEffects.get(); } 47 virtual GrGLProgramEffects* getProgramEffects() SK_OVERRIDE { return fProgra mEffects.get(); }
48 48
49 typedef GrGLProgramDesc::EffectKeyProvider EffectKeyProvider; 49 typedef GrGLProgramDesc::EffectKeyProvider EffectKeyProvider;
50 50
51 SkAutoTDelete<GrGLPathTexGenProgramEffects> fProgramEffects; 51 SkAutoTDelete<GrGLPathTexGenProgramEffects> fProgramEffects;
52 52
53 typedef GrGLProgramBuilder INHERITED; 53 typedef GrGLProgramBuilder INHERITED;
54 }; 54 };
55 55
56 #endif 56 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGpuGL_program.cpp ('k') | src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698