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

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

Issue 1325453007: Added support for EXTDisjointTimerQuery on the Blink side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch to use HeapHashMap instead Created 5 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EXTDisjointTimerQuery_h
6 #define EXTDisjointTimerQuery_h
7
8 #include "bindings/core/v8/ScriptValue.h"
9 #include "modules/webgl/WebGLExtension.h"
10 #include "wtf/HashMap.h"
11
12 namespace blink {
13
14 class WebGLRenderingContextBase;
15 class WebGLTimerQueryEXT;
16
17 class EXTDisjointTimerQuery final : public WebGLExtension {
18 DEFINE_WRAPPERTYPEINFO();
19 public:
20 static EXTDisjointTimerQuery* create(WebGLRenderingContextBase*);
21 static bool supported(WebGLRenderingContextBase*);
22 static const char* extensionName();
23
24 ~EXTDisjointTimerQuery() override;
25 WebGLExtensionName name() const override;
26
27 WebGLTimerQueryEXT* createQueryEXT();
28 void deleteQueryEXT(WebGLTimerQueryEXT*);
29 GLboolean isQueryEXT(WebGLTimerQueryEXT*);
30 void beginQueryEXT(GLenum, WebGLTimerQueryEXT*);
31 void endQueryEXT(GLenum);
32 void queryCounterEXT(WebGLTimerQueryEXT*, GLenum);
33 ScriptValue getQueryEXT(ScriptState*, GLenum, GLenum);
34 ScriptValue getQueryObjectEXT(ScriptState*, WebGLTimerQueryEXT*, GLenum);
35
36 DECLARE_VIRTUAL_TRACE();
37
38 private:
39 friend class WebGLTimerQueryEXT;
40 explicit EXTDisjointTimerQuery(WebGLRenderingContextBase*);
41
42 void OnQueryDeleted(GLuint);
43
44 HeapHashMap<GLuint, WeakMember<WebGLTimerQueryEXT>> m_timerQueryMap;
45 };
46
47 } // namespace blink
48
49 #endif // EXTDisjointTimerQuery_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698