OLD | NEW |
(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 |
| 20 public: |
| 21 static EXTDisjointTimerQuery* create(WebGLRenderingContextBase*); |
| 22 static bool supported(WebGLRenderingContextBase*); |
| 23 static const char* extensionName(); |
| 24 |
| 25 ~EXTDisjointTimerQuery() override; |
| 26 WebGLExtensionName name() const override; |
| 27 |
| 28 WebGLTimerQueryEXT* createQueryEXT(); |
| 29 void deleteQueryEXT(WebGLTimerQueryEXT*); |
| 30 GLboolean isQueryEXT(WebGLTimerQueryEXT*); |
| 31 void beginQueryEXT(GLenum, WebGLTimerQueryEXT*); |
| 32 void endQueryEXT(GLenum); |
| 33 void queryCounterEXT(WebGLTimerQueryEXT*, GLenum); |
| 34 ScriptValue getQueryEXT(ScriptState*, GLenum, GLenum); |
| 35 ScriptValue getQueryObjectEXT(ScriptState*, WebGLTimerQueryEXT*, GLenum); |
| 36 |
| 37 DECLARE_VIRTUAL_TRACE(); |
| 38 |
| 39 private: |
| 40 friend class WebGLTimerQueryEXT; |
| 41 explicit EXTDisjointTimerQuery(WebGLRenderingContextBase*); |
| 42 |
| 43 void OnQueryDeleted(GLuint); |
| 44 |
| 45 Member<WebGLTimerQueryEXT> m_currentElapsedQuery; |
| 46 }; |
| 47 |
| 48 } // namespace blink |
| 49 |
| 50 #endif // EXTDisjointTimerQuery_h |
OLD | NEW |