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

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

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 years, 8 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 WebGLVertexArrayObjectBase_h 5 #ifndef WebGLVertexArrayObjectBase_h
6 #define WebGLVertexArrayObjectBase_h 6 #define WebGLVertexArrayObjectBase_h
7 7
8 #include "modules/webgl/WebGLBuffer.h" 8 #include "modules/webgl/WebGLBuffer.h"
9 #include "modules/webgl/WebGLContextObject.h" 9 #include "modules/webgl/WebGLContextObject.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 22 matching lines...) Expand all
33 WebGLBuffer* getArrayBufferForAttrib(size_t); 33 WebGLBuffer* getArrayBufferForAttrib(size_t);
34 void setArrayBufferForAttrib(GLuint, WebGLBuffer*); 34 void setArrayBufferForAttrib(GLuint, WebGLBuffer*);
35 void unbindBuffer(WebGLBuffer*); 35 void unbindBuffer(WebGLBuffer*);
36 36
37 DECLARE_VIRTUAL_TRACE(); 37 DECLARE_VIRTUAL_TRACE();
38 38
39 protected: 39 protected:
40 WebGLVertexArrayObjectBase(WebGLRenderingContextBase*, VaoType); 40 WebGLVertexArrayObjectBase(WebGLRenderingContextBase*, VaoType);
41 41
42 private: 42 private:
43 void dispatchDetached(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*); 43 void dispatchDetached(gpu::gles2::GLES2Interface*);
44 bool hasObject() const override { return m_object != 0; } 44 bool hasObject() const override { return m_object != 0; }
45 void deleteObjectImpl(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*) ov erride; 45 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override;
46 46
47 Platform3DObject m_object; 47 Platform3DObject m_object;
48 48
49 VaoType m_type; 49 VaoType m_type;
50 bool m_hasEverBeenBound; 50 bool m_hasEverBeenBound;
51 bool m_destructionInProgress; 51 bool m_destructionInProgress;
52 Member<WebGLBuffer> m_boundElementArrayBuffer; 52 Member<WebGLBuffer> m_boundElementArrayBuffer;
53 HeapVector<Member<WebGLBuffer>> m_arrayBufferList; 53 HeapVector<Member<WebGLBuffer>> m_arrayBufferList;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // WebGLVertexArrayObjectBase_h 58 #endif // WebGLVertexArrayObjectBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698