Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h

Issue 2401893002: [wrapper-tracing] WebGL and friends: Add write barriers (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698