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/GrGLTypes.h" | 13 #include "gl/GrGLTypes.h" |
14 #include "SkTArray.h" | 14 #include "SkTArray.h" |
15 | 15 |
| 16 class GrGLVertexBuffer; |
| 17 class GrGLIndexBuffer; |
16 class GrGLGpu; | 18 class GrGLGpu; |
17 | 19 |
18 /** | 20 /** |
19 * This sets and tracks the vertex attribute array state. It is used internally
by GrGLVertexArray | 21 * This sets and tracks the vertex attribute array state. It is used internally
by GrGLVertexArray |
20 * (below) but is separate because it is also used to track the state of vertex
array object 0. | 22 * (below) but is separate because it is also used to track the state of vertex
array object 0. |
21 */ | 23 */ |
22 class GrGLAttribArrayState { | 24 class GrGLAttribArrayState { |
23 public: | 25 public: |
24 explicit GrGLAttribArrayState(int arrayCount = 0) { | 26 explicit GrGLAttribArrayState(int arrayCount = 0) { |
25 this->resize(arrayCount); | 27 this->resize(arrayCount); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void invalidateCachedState(); | 128 void invalidateCachedState(); |
127 | 129 |
128 private: | 130 private: |
129 GrGLuint fID; | 131 GrGLuint fID; |
130 GrGLAttribArrayState fAttribArrays; | 132 GrGLAttribArrayState fAttribArrays; |
131 GrGLuint fIndexBufferID; | 133 GrGLuint fIndexBufferID; |
132 bool fIndexBufferIDIsValid; | 134 bool fIndexBufferIDIsValid; |
133 }; | 135 }; |
134 | 136 |
135 #endif | 137 #endif |
OLD | NEW |