blob: 8d45c30a4f06d0a089e7b6aac7a1d42a7b68a8ab [file]
// 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();
WebGLExtensionName name() const override;
void queryCounterEXT(WebGLQuery*, GLenum);
DECLARE_VIRTUAL_TRACE();
private:
explicit EXTDisjointTimerQueryWebGL2(WebGLRenderingContextBase*);
};
} // namespace blink
#endif // EXTDisjointTimerQueryWebGL2_h