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

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

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 EXTDisjointTimerQueryWebGL2_h 5 #ifndef EXTDisjointTimerQueryWebGL2_h
6 #define EXTDisjointTimerQueryWebGL2_h 6 #define EXTDisjointTimerQueryWebGL2_h
7 7
8 #include "bindings/core/v8/ScriptValue.h" 8 #include "bindings/core/v8/ScriptValue.h"
9 #include "modules/webgl/WebGLExtension.h" 9 #include "modules/webgl/WebGLExtension.h"
10 #include "modules/webgl/WebGLQuery.h" 10 #include "modules/webgl/WebGLQuery.h"
11 #include "wtf/HashMap.h" 11 #include "wtf/HashMap.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class WebGLRenderingContextBase; 15 class WebGLRenderingContextBase;
16 class WebGLQuery; 16 class WebGLQuery;
17 17
18 class EXTDisjointTimerQueryWebGL2 final : public WebGLExtension { 18 class EXTDisjointTimerQueryWebGL2 final : public WebGLExtension {
19 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
20 20
21 public: 21 public:
22 static EXTDisjointTimerQueryWebGL2* create(WebGLRenderingContextBase*); 22 static EXTDisjointTimerQueryWebGL2* create(WebGLRenderingContextBase*);
23 static bool supported(WebGLRenderingContextBase*); 23 static bool supported(WebGLRenderingContextBase*);
24 static const char* extensionName(); 24 static const char* extensionName();
25 25
26 ~EXTDisjointTimerQueryWebGL2() override;
27 WebGLExtensionName name() const override; 26 WebGLExtensionName name() const override;
28 27
29 void queryCounterEXT(WebGLQuery*, GLenum); 28 void queryCounterEXT(WebGLQuery*, GLenum);
30 29
31 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
32 31
33 private: 32 private:
34 explicit EXTDisjointTimerQueryWebGL2(WebGLRenderingContextBase*); 33 explicit EXTDisjointTimerQueryWebGL2(WebGLRenderingContextBase*);
35 }; 34 };
36 35
37 } // namespace blink 36 } // namespace blink
38 37
39 #endif // EXTDisjointTimerQueryWebGL2_h 38 #endif // EXTDisjointTimerQueryWebGL2_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698