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 |
(...skipping 17 matching lines...) Expand all Loading... |
28 private: | 28 private: |
29 /* | 29 /* |
30 * Internal call for GrGLProgramBuilder.addVarying | 30 * Internal call for GrGLProgramBuilder.addVarying |
31 */ | 31 */ |
32 void addVarying(const char* name, GrGLVarying*); | 32 void addVarying(const char* name, GrGLVarying*); |
33 | 33 |
34 /* | 34 /* |
35 * private helpers for compilation by GrGLProgramBuilder | 35 * private helpers for compilation by GrGLProgramBuilder |
36 */ | 36 */ |
37 void bindVertexAttributes(GrGLuint programID); | 37 void bindVertexAttributes(GrGLuint programID); |
38 bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shader
Ids) const; | 38 bool compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shader
Ids); |
39 | 39 |
40 // an internal call which checks for uniquness of a var before adding it to
the list of inputs | 40 // an internal call which checks for uniquness of a var before adding it to
the list of inputs |
41 bool addAttribute(const GrShaderVar& var); | 41 bool addAttribute(const GrShaderVar& var); |
42 | 42 |
43 const char* fRtAdjustName; | 43 const char* fRtAdjustName; |
44 | 44 |
45 friend class GrGLProgramBuilder; | 45 friend class GrGLProgramBuilder; |
46 | 46 |
47 typedef GrGLShaderBuilder INHERITED; | 47 typedef GrGLShaderBuilder INHERITED; |
48 }; | 48 }; |
49 | 49 |
50 #endif | 50 #endif |
OLD | NEW |