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

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

Issue 2392313004: [wrapper-tracing] Add tracing to WebGLRenderingContextBase and friends (Closed)
Patch Set: Add WebGL2RenderingContextBase 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 #include "modules/webgl/WebGLVertexArrayObjectBase.h" 5 #include "modules/webgl/WebGLVertexArrayObjectBase.h"
6 6
7 #include "gpu/command_buffer/client/gles2_interface.h" 7 #include "gpu/command_buffer/client/gles2_interface.h"
8 #include "modules/webgl/WebGLRenderingContextBase.h" 8 #include "modules/webgl/WebGLRenderingContextBase.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 wrapper, m_arrayBufferList[i], isolate); 144 wrapper, m_arrayBufferList[i], isolate);
145 } 145 }
146 } 146 }
147 147
148 DEFINE_TRACE(WebGLVertexArrayObjectBase) { 148 DEFINE_TRACE(WebGLVertexArrayObjectBase) {
149 visitor->trace(m_boundElementArrayBuffer); 149 visitor->trace(m_boundElementArrayBuffer);
150 visitor->trace(m_arrayBufferList); 150 visitor->trace(m_arrayBufferList);
151 WebGLContextObject::trace(visitor); 151 WebGLContextObject::trace(visitor);
152 } 152 }
153 153
154 DEFINE_TRACE_WRAPPERS(WebGLVertexArrayObjectBase) {
155 visitor->traceWrappers(m_boundElementArrayBuffer);
156 for (size_t i = 0; i < m_arrayBufferList.size(); ++i) {
157 visitor->traceWrappers(m_arrayBufferList[i]);
158 }
159 WebGLContextObject::traceWrappers(visitor);
160 }
161
154 } // namespace blink 162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698