| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 | 103 |
| 104 for (size_t i = 0; i < m_arrayBufferList.size(); ++i) { | 104 for (size_t i = 0; i < m_arrayBufferList.size(); ++i) { |
| 105 if (m_arrayBufferList[i] == buffer) { | 105 if (m_arrayBufferList[i] == buffer) { |
| 106 m_arrayBufferList[i]->onDetached(context()->contextGL()); | 106 m_arrayBufferList[i]->onDetached(context()->contextGL()); |
| 107 m_arrayBufferList[i] = nullptr; | 107 m_arrayBufferList[i] = nullptr; |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 ScopedPersistent<v8::Array>* WebGLVertexArrayObjectBase::getPersistentCache() | |
| 113 { | |
| 114 return &m_arrayBufferWrappers; | |
| 115 } | |
| 116 | |
| 117 DEFINE_TRACE(WebGLVertexArrayObjectBase) | 112 DEFINE_TRACE(WebGLVertexArrayObjectBase) |
| 118 { | 113 { |
| 119 visitor->trace(m_boundElementArrayBuffer); | 114 visitor->trace(m_boundElementArrayBuffer); |
| 120 visitor->trace(m_arrayBufferList); | 115 visitor->trace(m_arrayBufferList); |
| 121 WebGLContextObject::trace(visitor); | 116 WebGLContextObject::trace(visitor); |
| 122 } | 117 } |
| 123 | 118 |
| 124 } // namespace blink | 119 } // namespace blink |
| OLD | NEW |