Index: src/gpu/gl/builders/GrGLGeometryShaderBuilder.h |
diff --git a/src/gpu/gl/builders/GrGLGeometryShaderBuilder.h b/src/gpu/gl/builders/GrGLGeometryShaderBuilder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..833d31774f82f7f0a69d0921a4a98b95d9181b66 |
--- /dev/null |
+++ b/src/gpu/gl/builders/GrGLGeometryShaderBuilder.h |
@@ -0,0 +1,32 @@ |
+/* |
+ * Copyright 2014 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef GrGLGeometryShaderBuilder_DEFINED |
+#define GrGLGeometryShaderBuilder_DEFINED |
+ |
+#include "GrGLShaderBuilder.h" |
+ |
+class GrGLProgramBuilder; |
+ |
+class GrGLGeometryShaderBuilder : public GrGLFullShaderBuilder { |
+public: |
+ GrGLGeometryShaderBuilder(GrGLFullProgramBuilder* program); |
+private: |
+ /* |
+ * an internal call for GrGLFullProgramBuilder to add varyings |
+ */ |
+ void addVarying(GrSLType type, |
+ const char* name, |
+ const char** gsOutName); |
+ |
+ bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds) const; |
+ |
+ friend class GrGLFullProgramBuilder; |
+ typedef GrGLFullShaderBuilder INHERITED; |
+}; |
+ |
+#endif |