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

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

Issue 2034573004: FYI: Adds V8PrivateProperty::getOrUndefined(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698