OLD | NEW |
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 GrGLVertexShader_DEFINED | 8 #ifndef GrGLVertexShader_DEFINED |
9 #define GrGLVertexShader_DEFINED | 9 #define GrGLVertexShader_DEFINED |
10 | 10 |
11 #include "GrGLShaderBuilder.h" | 11 #include "GrGLShaderBuilder.h" |
| 12 #include "GrGeometryProcessor.h" |
12 | 13 |
13 class GrGLVarying; | 14 class GrGLVarying; |
14 | 15 |
15 class GrGLVertexBuilder : public GrGLShaderBuilder { | 16 class GrGLVertexBuilder : public GrGLShaderBuilder { |
16 public: | 17 public: |
17 GrGLVertexBuilder(GrGLProgramBuilder* program); | 18 GrGLVertexBuilder(GrGLProgramBuilder* program); |
18 | 19 |
19 void transformToNormalizedDeviceSpace(const GrShaderVar& posVar); | 20 void transformToNormalizedDeviceSpace(const GrShaderVar& posVar); |
20 void emitAttributes(const GrGeometryProcessor& gp); | 21 void emitAttributes(const GrGeometryProcessor& gp); |
21 | 22 |
(...skipping 19 matching lines...) Expand all Loading... |
41 bool addAttribute(const GrShaderVar& var); | 42 bool addAttribute(const GrShaderVar& var); |
42 | 43 |
43 const char* fRtAdjustName; | 44 const char* fRtAdjustName; |
44 | 45 |
45 friend class GrGLProgramBuilder; | 46 friend class GrGLProgramBuilder; |
46 | 47 |
47 typedef GrGLShaderBuilder INHERITED; | 48 typedef GrGLShaderBuilder INHERITED; |
48 }; | 49 }; |
49 | 50 |
50 #endif | 51 #endif |
OLD | NEW |