| OLD | NEW |
| 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 EXTDisjointTimerQuery_h | 5 #ifndef EXTDisjointTimerQuery_h |
| 6 #define EXTDisjointTimerQuery_h | 6 #define EXTDisjointTimerQuery_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 "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class WebGLRenderingContextBase; | 14 class WebGLRenderingContextBase; |
| 15 class WebGLTimerQueryEXT; | 15 class WebGLTimerQueryEXT; |
| 16 | 16 |
| 17 class EXTDisjointTimerQuery final : public WebGLExtension { | 17 class EXTDisjointTimerQuery final : public WebGLExtension { |
| 18 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 static EXTDisjointTimerQuery* create(WebGLRenderingContextBase*); | 21 static EXTDisjointTimerQuery* create(WebGLRenderingContextBase*); |
| 22 static bool supported(WebGLRenderingContextBase*); | 22 static bool supported(WebGLRenderingContextBase*); |
| 23 static const char* extensionName(); | 23 static const char* extensionName(); |
| 24 | 24 |
| 25 ~EXTDisjointTimerQuery() override; | |
| 26 WebGLExtensionName name() const override; | 25 WebGLExtensionName name() const override; |
| 27 | 26 |
| 28 WebGLTimerQueryEXT* createQueryEXT(); | 27 WebGLTimerQueryEXT* createQueryEXT(); |
| 29 void deleteQueryEXT(WebGLTimerQueryEXT*); | 28 void deleteQueryEXT(WebGLTimerQueryEXT*); |
| 30 GLboolean isQueryEXT(WebGLTimerQueryEXT*); | 29 GLboolean isQueryEXT(WebGLTimerQueryEXT*); |
| 31 void beginQueryEXT(GLenum, WebGLTimerQueryEXT*); | 30 void beginQueryEXT(GLenum, WebGLTimerQueryEXT*); |
| 32 void endQueryEXT(GLenum); | 31 void endQueryEXT(GLenum); |
| 33 void queryCounterEXT(WebGLTimerQueryEXT*, GLenum); | 32 void queryCounterEXT(WebGLTimerQueryEXT*, GLenum); |
| 34 ScriptValue getQueryEXT(ScriptState*, GLenum, GLenum); | 33 ScriptValue getQueryEXT(ScriptState*, GLenum, GLenum); |
| 35 ScriptValue getQueryObjectEXT(ScriptState*, WebGLTimerQueryEXT*, GLenum); | 34 ScriptValue getQueryObjectEXT(ScriptState*, WebGLTimerQueryEXT*, GLenum); |
| 36 | 35 |
| 37 DECLARE_VIRTUAL_TRACE(); | 36 DECLARE_VIRTUAL_TRACE(); |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 friend class WebGLTimerQueryEXT; | 39 friend class WebGLTimerQueryEXT; |
| 41 explicit EXTDisjointTimerQuery(WebGLRenderingContextBase*); | 40 explicit EXTDisjointTimerQuery(WebGLRenderingContextBase*); |
| 42 | 41 |
| 43 Member<WebGLTimerQueryEXT> m_currentElapsedQuery; | 42 Member<WebGLTimerQueryEXT> m_currentElapsedQuery; |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 } // namespace blink | 45 } // namespace blink |
| 47 | 46 |
| 48 #endif // EXTDisjointTimerQuery_h | 47 #endif // EXTDisjointTimerQuery_h |
| OLD | NEW |