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

Side by Side Diff: src/gpu/gl/builders/GrGLFullProgramBuilder.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
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 GrGLFullProgramBuilder_DEFINED 8 #ifndef GrGLFullProgramBuilder_DEFINED
9 #define GrGLFullProgramBuilder_DEFINED 9 #define GrGLFullProgramBuilder_DEFINED
10 10
11 #include "GrGLProgramBuilder.h" 11 #include "GrGLProgramBuilder.h"
12 #include "../GrGLGeometryProcessor.h" 12 #include "../GrGLGeometryProcessor.h"
13 13
14 class GrGLVertexProgramEffects; 14 class GrGLVertexProgramEffects;
15 15
16 class GrGLFullProgramBuilder : public GrGLProgramBuilder { 16 class GrGLFullProgramBuilder : public GrGLProgramBuilder {
17 public: 17 public:
18 GrGLFullProgramBuilder(GrGpuGL*, const GrGLProgramDesc&); 18 GrGLFullProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLProgramDes c&);
19 19
20 /** Add a varying variable to the current program to pass values between vert ex and fragment 20 /** Add a varying variable to the current program to pass values between vert ex and fragment
21 shaders. If the last two parameters are non-NULL, they are filled in wit h the name 21 shaders. If the last two parameters are non-NULL, they are filled in wit h the name
22 generated. */ 22 generated. */
23 void addVarying(GrSLType type, 23 void addVarying(GrSLType type,
24 const char* name, 24 const char* name,
25 const char** vsOutName = NULL, 25 const char** vsOutName = NULL,
26 const char** fsInName = NULL, 26 const char** fsInName = NULL,
27 GrGLShaderVar::Precision fsPrecision=GrGLShaderVar::kDefault _Precision); 27 GrGLShaderVar::Precision fsPrecision=GrGLShaderVar::kDefault _Precision);
28 28
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 GrGLGeometryProcessorEmitter fGLGeometryProcessorEmitter; 122 GrGLGeometryProcessorEmitter fGLGeometryProcessorEmitter;
123 GrGLGeometryShaderBuilder fGS; 123 GrGLGeometryShaderBuilder fGS;
124 GrGLVertexShaderBuilder fVS; 124 GrGLVertexShaderBuilder fVS;
125 SkAutoTDelete<GrGLVertexProgramEffects> fProgramEffects; 125 SkAutoTDelete<GrGLVertexProgramEffects> fProgramEffects;
126 126
127 typedef GrGLProgramBuilder INHERITED; 127 typedef GrGLProgramBuilder INHERITED;
128 }; 128 };
129 129
130 #endif 130 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLFragmentOnlyProgramBuilder.cpp ('k') | src/gpu/gl/builders/GrGLFullProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698