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 #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 Loading... |
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 |
OLD | NEW |