| 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 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 void notifyVertexBufferDelete(GrGLuint id) { | 154 void notifyVertexBufferDelete(GrGLuint id) { |
| 155 fAttribArrays.notifyVertexBufferDelete(id); | 155 fAttribArrays.notifyVertexBufferDelete(id); |
| 156 } | 156 } |
| 157 | 157 |
| 158 GrGLuint arrayID() const { return fID; } | 158 GrGLuint arrayID() const { return fID; } |
| 159 | 159 |
| 160 void invalidateCachedState(); | 160 void invalidateCachedState(); |
| 161 | 161 |
| 162 protected: | 162 protected: |
| 163 virtual size_t onGpuMemorySize() const SK_OVERRIDE { return 0; } | 163 size_t onGpuMemorySize() const SK_OVERRIDE { return 0; } |
| 164 | 164 |
| 165 virtual void onAbandon() SK_OVERRIDE; | 165 void onAbandon() SK_OVERRIDE; |
| 166 | 166 |
| 167 virtual void onRelease() SK_OVERRIDE; | 167 void onRelease() SK_OVERRIDE; |
| 168 | 168 |
| 169 private: | 169 private: |
| 170 GrGLuint fID; | 170 GrGLuint fID; |
| 171 GrGLAttribArrayState fAttribArrays; | 171 GrGLAttribArrayState fAttribArrays; |
| 172 GrGLuint fIndexBufferID; | 172 GrGLuint fIndexBufferID; |
| 173 bool fIndexBufferIDIsValid; | 173 bool fIndexBufferIDIsValid; |
| 174 | 174 |
| 175 typedef GrGpuResource INHERITED; | 175 typedef GrGpuResource INHERITED; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif | 178 #endif |
| OLD | NEW |