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 GrGLVertexArray_DEFINED | 8 #ifndef GrGLVertexArray_DEFINED |
9 #define GrGLVertexArray_DEFINED | 9 #define GrGLVertexArray_DEFINED |
10 | 10 |
11 #include "GrTypesPriv.h" | 11 #include "GrTypesPriv.h" |
12 #include "gl/GrGLDefines.h" | 12 #include "gl/GrGLDefines.h" |
13 #include "gl/GrGLFunctions.h" | 13 #include "gl/GrGLTypes.h" |
14 #include "SkTArray.h" | 14 #include "SkTArray.h" |
15 | 15 |
16 class GrGLVertexBuffer; | 16 class GrGLVertexBuffer; |
17 class GrGLIndexBuffer; | 17 class GrGLIndexBuffer; |
18 class GrGLGpu; | 18 class GrGLGpu; |
19 | 19 |
20 struct GrGLAttribLayout { | 20 struct GrGLAttribLayout { |
21 GrGLint fCount; | 21 GrGLint fCount; |
22 GrGLenum fType; | 22 GrGLenum fType; |
23 GrGLboolean fNormalized; | 23 GrGLboolean fNormalized; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void invalidateCachedState(); | 160 void invalidateCachedState(); |
161 | 161 |
162 private: | 162 private: |
163 GrGLuint fID; | 163 GrGLuint fID; |
164 GrGLAttribArrayState fAttribArrays; | 164 GrGLAttribArrayState fAttribArrays; |
165 GrGLuint fIndexBufferID; | 165 GrGLuint fIndexBufferID; |
166 bool fIndexBufferIDIsValid; | 166 bool fIndexBufferIDIsValid; |
167 }; | 167 }; |
168 | 168 |
169 #endif | 169 #endif |
OLD | NEW |