| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXTDisjointTimerQueryWebGL2_h |
| 6 #define EXTDisjointTimerQueryWebGL2_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "modules/webgl/WebGLExtension.h" |
| 10 #include "modules/webgl/WebGLQuery.h" |
| 11 #include "wtf/HashMap.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class WebGLRenderingContextBase; |
| 16 class WebGLQuery; |
| 17 |
| 18 class EXTDisjointTimerQueryWebGL2 final : public WebGLExtension { |
| 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 |
| 21 public: |
| 22 static EXTDisjointTimerQueryWebGL2* create(WebGLRenderingContextBase*); |
| 23 static bool supported(WebGLRenderingContextBase*); |
| 24 static const char* extensionName(); |
| 25 |
| 26 ~EXTDisjointTimerQueryWebGL2() override; |
| 27 WebGLExtensionName name() const override; |
| 28 |
| 29 void queryCounterEXT(WebGLQuery*, GLenum); |
| 30 |
| 31 DECLARE_VIRTUAL_TRACE(); |
| 32 |
| 33 private: |
| 34 explicit EXTDisjointTimerQueryWebGL2(WebGLRenderingContextBase*); |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // EXTDisjointTimerQueryWebGL2_h |
| OLD | NEW |