| 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 "modules/webgl/WebGLBuffer.h" | 8 #include "modules/webgl/WebGLBuffer.h" |
| 9 #include "modules/webgl/WebGLContextObject.h" | 9 #include "modules/webgl/WebGLContextObject.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/PassRefPtr.h" | 11 #include "wtf/PassRefPtr.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class WebGLVertexArrayObjectBase : public WebGLContextObject { | 15 class WebGLVertexArrayObjectBase : public WebGLContextObject { |
| 16 public: | 16 public: |
| 17 enum VaoType { | 17 enum VaoType { |
| 18 VaoTypeDefault, | 18 VaoTypeDefault, |
| 19 VaoTypeUser, | 19 VaoTypeUser, |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 virtual ~WebGLVertexArrayObjectBase(); | 22 ~WebGLVertexArrayObjectBase() override; |
| 23 | 23 |
| 24 Platform3DObject object() const { return m_object; } | 24 Platform3DObject object() const { return m_object; } |
| 25 | 25 |
| 26 // Cached values for vertex attrib range checks | 26 // Cached values for vertex attrib range checks |
| 27 class VertexAttribState final : public NoBaseWillBeGarbageCollected<VertexAt
tribState> { | 27 class VertexAttribState final : public NoBaseWillBeGarbageCollected<VertexAt
tribState> { |
| 28 public: | 28 public: |
| 29 VertexAttribState() | 29 VertexAttribState() |
| 30 : enabled(false) | 30 : enabled(false) |
| 31 , bytesPerElement(0) | 31 , bytesPerElement(0) |
| 32 , size(4) | 32 , size(4) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 #if ENABLE(OILPAN) | 83 #if ENABLE(OILPAN) |
| 84 bool m_destructionInProgress; | 84 bool m_destructionInProgress; |
| 85 #endif | 85 #endif |
| 86 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; | 86 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; |
| 87 WillBeHeapVector<OwnPtrWillBeMember<VertexAttribState>> m_vertexAttribState; | 87 WillBeHeapVector<OwnPtrWillBeMember<VertexAttribState>> m_vertexAttribState; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // WebGLVertexArrayObjectBase_h | 92 #endif // WebGLVertexArrayObjectBase_h |
| OLD | NEW |