| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebGLVertexArrayObjectBase_h | 5 #ifndef WebGLVertexArrayObjectBase_h |
| 6 #define WebGLVertexArrayObjectBase_h | 6 #define WebGLVertexArrayObjectBase_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/TraceWrapperMember.h" | 8 #include "bindings/core/v8/TraceWrapperMember.h" |
| 9 #include "modules/webgl/WebGLBuffer.h" | 9 #include "modules/webgl/WebGLBuffer.h" |
| 10 #include "modules/webgl/WebGLContextObject.h" | 10 #include "modules/webgl/WebGLContextObject.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void dispatchDetached(gpu::gles2::GLES2Interface*); | 55 void dispatchDetached(gpu::gles2::GLES2Interface*); |
| 56 bool hasObject() const override { return m_object != 0; } | 56 bool hasObject() const override { return m_object != 0; } |
| 57 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; | 57 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; |
| 58 | 58 |
| 59 void updateAttribBufferBoundStatus(); | 59 void updateAttribBufferBoundStatus(); |
| 60 | 60 |
| 61 GLuint m_object; | 61 GLuint m_object; |
| 62 | 62 |
| 63 VaoType m_type; | 63 VaoType m_type; |
| 64 bool m_hasEverBeenBound; | 64 bool m_hasEverBeenBound; |
| 65 bool m_destructionInProgress; | |
| 66 TraceWrapperMember<WebGLBuffer> m_boundElementArrayBuffer; | 65 TraceWrapperMember<WebGLBuffer> m_boundElementArrayBuffer; |
| 67 HeapVector<TraceWrapperMember<WebGLBuffer>> m_arrayBufferList; | 66 HeapVector<TraceWrapperMember<WebGLBuffer>> m_arrayBufferList; |
| 68 Vector<bool> m_attribEnabled; | 67 Vector<bool> m_attribEnabled; |
| 69 bool m_isAllEnabledAttribBufferBound; | 68 bool m_isAllEnabledAttribBufferBound; |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace blink | 71 } // namespace blink |
| 73 | 72 |
| 74 #endif // WebGLVertexArrayObjectBase_h | 73 #endif // WebGLVertexArrayObjectBase_h |
| OLD | NEW |