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

Unified Diff: third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.h

Issue 2437233002: Implement EXT_disjoint_timer_query_webgl2 (Closed)
Patch Set: fix logic again Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.h
diff --git a/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.h b/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.h
new file mode 100644
index 0000000000000000000000000000000000000000..fcb41cf99eb8aa62d5b7d11674bd389dc7c5e688
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQueryWebGL2.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTDisjointTimerQueryWebGL2_h
+#define EXTDisjointTimerQueryWebGL2_h
+
+#include "bindings/core/v8/ScriptValue.h"
+#include "modules/webgl/WebGLExtension.h"
+#include "modules/webgl/WebGLQuery.h"
+#include "wtf/HashMap.h"
+
+namespace blink {
+
+class WebGLRenderingContextBase;
+class WebGLQuery;
+
+class EXTDisjointTimerQueryWebGL2 final : public WebGLExtension {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static EXTDisjointTimerQueryWebGL2* create(WebGLRenderingContextBase*);
+ static bool supported(WebGLRenderingContextBase*);
+ static const char* extensionName();
+
+ ~EXTDisjointTimerQueryWebGL2() override;
+ WebGLExtensionName name() const override;
+
+ void queryCounterEXT(WebGLQuery*, GLenum);
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ explicit EXTDisjointTimerQueryWebGL2(WebGLRenderingContextBase*);
+};
+
+} // namespace blink
+
+#endif // EXTDisjointTimerQueryWebGL2_h

Powered by Google App Engine
This is Rietveld 408576698