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 GrGLGeometryShaderBuilder_DEFINED
9 #define GrGLGeometryShaderBuilder_DEFINED
10 
11 #include "GrGLShaderBuilder.h"
12 
13 class GrGLVarying;
14 
15 class GrGLGeometryBuilder : public GrGLShaderBuilder {
16 public:
17     GrGLGeometryBuilder(GrGLProgramBuilder* program);
18 
19 private:
20     /*
21      * an internal call for GrGLFullProgramBuilder to add varyings
22      */
23     void addVarying(const char* name, GrGLVarying*);
24 
25     bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds);
26 
27     friend class GrGLProgramBuilder;
28 
29     typedef GrGLShaderBuilder INHERITED;
30 };
31 
32 #endif
33