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