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

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

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
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"
11 #include "wtf/PassRefPtr.h" 11 #include "wtf/PassRefPtr.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class WebGLVertexArrayObjectBase : public WebGLContextObject { 15 class WebGLVertexArrayObjectBase : public WebGLContextObject {
16 public: 16 public:
17 enum VaoType { 17 enum VaoType {
18 VaoTypeDefault, 18 VaoTypeDefault,
19 VaoTypeUser, 19 VaoTypeUser,
20 }; 20 };
21 21
22 virtual ~WebGLVertexArrayObjectBase(); 22 ~WebGLVertexArrayObjectBase() override;
23 23
24 Platform3DObject object() const { return m_object; } 24 Platform3DObject object() const { return m_object; }
25 25
26 // Cached values for vertex attrib range checks 26 // Cached values for vertex attrib range checks
27 class VertexAttribState final : public NoBaseWillBeGarbageCollected<VertexAt tribState> { 27 class VertexAttribState final : public NoBaseWillBeGarbageCollected<VertexAt tribState> {
28 public: 28 public:
29 VertexAttribState() 29 VertexAttribState()
30 : enabled(false) 30 : enabled(false)
31 , bytesPerElement(0) 31 , bytesPerElement(0)
32 , size(4) 32 , size(4)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #if ENABLE(OILPAN) 83 #if ENABLE(OILPAN)
84 bool m_destructionInProgress; 84 bool m_destructionInProgress;
85 #endif 85 #endif
86 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; 86 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer;
87 WillBeHeapVector<OwnPtrWillBeMember<VertexAttribState>> m_vertexAttribState; 87 WillBeHeapVector<OwnPtrWillBeMember<VertexAttribState>> m_vertexAttribState;
88 }; 88 };
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 #endif // WebGLVertexArrayObjectBase_h 92 #endif // WebGLVertexArrayObjectBase_h
OLDNEW
« no previous file with comments | « Source/modules/webgl/WebGLSharedObject.h ('k') | Source/modules/webmidi/MIDIAccessInitializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698