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

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

Issue 671023002: Added varying struct (Closed) Base URL: https://skia.googlesource.com/skia.git@gp_emit_struct
Patch Set: cleanup Created 6 years, 1 month 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 GrGLGeometryShaderBuilder_DEFINED 8 #ifndef GrGLGeometryShaderBuilder_DEFINED
9 #define GrGLGeometryShaderBuilder_DEFINED 9 #define GrGLGeometryShaderBuilder_DEFINED
10 10
11 #include "GrGLShaderBuilder.h" 11 #include "GrGLShaderBuilder.h"
12 12
13 class GrGLVarying;
14
13 class GrGLGeometryBuilder : public GrGLShaderBuilder { 15 class GrGLGeometryBuilder : public GrGLShaderBuilder {
14 public: 16 public:
15 GrGLGeometryBuilder(GrGLProgramBuilder* program); 17 GrGLGeometryBuilder(GrGLProgramBuilder* program);
18
19 private:
16 /* 20 /*
17 * an internal call for GrGLFullProgramBuilder to add varyings 21 * an internal call for GrGLFullProgramBuilder to add varyings
18 */ 22 */
19 void addVarying(GrSLType type, 23 void addVarying(const char* name, GrGLVarying*);
20 const char* name,
21 const char** gsOutName);
22 24
23 bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shader Ids) const; 25 bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shader Ids) const;
24 26
27 friend class GrGLProgramBuilder;
28
25 typedef GrGLShaderBuilder INHERITED; 29 typedef GrGLShaderBuilder INHERITED;
26 }; 30 };
27 31
28 #endif 32 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp ('k') | src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698