| 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 "modules/webgl/WebGLBuffer.h" | 9 #include "modules/webgl/WebGLBuffer.h" |
| 9 #include "modules/webgl/WebGLContextObject.h" | 10 #include "modules/webgl/WebGLContextObject.h" |
| 10 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class WebGLVertexArrayObjectBase : public WebGLContextObject { | 15 class WebGLVertexArrayObjectBase : public WebGLContextObject { |
| 15 public: | 16 public: |
| 16 enum VaoType { | 17 enum VaoType { |
| 17 VaoTypeDefault, | 18 VaoTypeDefault, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 bool hasObject() const override { return m_object != 0; } | 56 bool hasObject() const override { return m_object != 0; } |
| 56 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; | 57 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; |
| 57 | 58 |
| 58 void updateAttribBufferBoundStatus(); | 59 void updateAttribBufferBoundStatus(); |
| 59 | 60 |
| 60 GLuint m_object; | 61 GLuint m_object; |
| 61 | 62 |
| 62 VaoType m_type; | 63 VaoType m_type; |
| 63 bool m_hasEverBeenBound; | 64 bool m_hasEverBeenBound; |
| 64 bool m_destructionInProgress; | 65 bool m_destructionInProgress; |
| 65 Member<WebGLBuffer> m_boundElementArrayBuffer; | 66 TraceWrapperMember<WebGLBuffer> m_boundElementArrayBuffer; |
| 66 HeapVector<Member<WebGLBuffer>> m_arrayBufferList; | 67 HeapVector<TraceWrapperMember<WebGLBuffer>> m_arrayBufferList; |
| 67 Vector<bool> m_attribEnabled; | 68 Vector<bool> m_attribEnabled; |
| 68 bool m_isAllEnabledAttribBufferBound; | 69 bool m_isAllEnabledAttribBufferBound; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace blink | 72 } // namespace blink |
| 72 | 73 |
| 73 #endif // WebGLVertexArrayObjectBase_h | 74 #endif // WebGLVertexArrayObjectBase_h |
| OLD | NEW |