OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
10 | 10 |
11 #include "GrGLEffect.h" | 11 #include "GrGLEffect.h" |
| 12 #include "GrDrawState.h" |
12 | 13 |
13 class GrGpuGL; | 14 class GrGpuGL; |
14 | 15 |
15 // optionally compile the experimental GS code. Set to GR_DEBUG so that debug bu
ild bots will | 16 // optionally compile the experimental GS code. Set to GR_DEBUG so that debug bu
ild bots will |
16 // execute the code. | 17 // execute the code. |
17 #define GR_GL_EXPERIMENTAL_GS GR_DEBUG | 18 #define GR_GL_EXPERIMENTAL_GS GR_DEBUG |
18 | 19 |
19 | 20 |
20 /** This class describes a program to generate. It also serves as a program cach
e key. The only | 21 /** This class describes a program to generate. It also serves as a program cach
e key. The only |
21 thing GL-specific about this is the generation of GrGLEffect::EffectKeys. Wi
th some refactoring | 22 thing GL-specific about this is the generation of GrGLEffect::EffectKeys. Wi
th some refactoring |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 int8_t fPositionAttributeIndex; | 96 int8_t fPositionAttributeIndex; |
96 int8_t fColorAttributeIndex; | 97 int8_t fColorAttributeIndex; |
97 int8_t fCoverageAttributeIndex; | 98 int8_t fCoverageAttributeIndex; |
98 int8_t fLocalCoordsAttributeIndex; | 99 int8_t fLocalCoordsAttributeIndex; |
99 | 100 |
100 // GrGLProgram reads the private fields to generate code. | 101 // GrGLProgram reads the private fields to generate code. |
101 friend class GrGLProgram; | 102 friend class GrGLProgram; |
102 }; | 103 }; |
103 | 104 |
104 #endif | 105 #endif |
OLD | NEW |