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

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

Issue 1974713003: Speed up fix for expando-loss conformance test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback from haraken. Use phantom persistents. Created 4 years, 7 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 WebGLVertexArrayObject_h 5 #ifndef WebGLVertexArrayObject_h
6 #define WebGLVertexArrayObject_h 6 #define WebGLVertexArrayObject_h
7 7
8 #include "modules/webgl/WebGLVertexArrayObjectBase.h" 8 #include "modules/webgl/WebGLVertexArrayObjectBase.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebGLVertexArrayObject final : public WebGLVertexArrayObjectBase { 12 class WebGLVertexArrayObject final : public WebGLVertexArrayObjectBase {
13 DEFINE_WRAPPERTYPEINFO(); 13 DEFINE_WRAPPERTYPEINFO();
14 public: 14 public:
15 static WebGLVertexArrayObject* create(WebGLRenderingContextBase*, VaoType); 15 static WebGLVertexArrayObject* create(WebGLRenderingContextBase*, VaoType);
16 16
17 private: 17 private:
18 explicit WebGLVertexArrayObject(WebGLRenderingContextBase*, VaoType); 18 explicit WebGLVertexArrayObject(WebGLRenderingContextBase*, VaoType);
19
20 // For preserving the wrappers of WebGLBuffer objects latched in
21 // via vertexAttribPointer calls.
22 v8::Persistent<v8::Array> m_bufferWrappers;
19 }; 23 };
20 24
21 } // namespace blink 25 } // namespace blink
22 26
23 #endif // WebGLVertexArrayObject_h 27 #endif // WebGLVertexArrayObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698