summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/webgl/EXTDisjointTimerQuery.idl
blob: 6da8e5bb44b95cda50a5d9b7d84708fd661f054e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2015 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.

typedef unsigned long long GLuint64EXT;

[
    DoNotCheckConstants,
    NoInterfaceObject,
    GarbageCollected,
    SetWrapperReferenceFrom=canvas,
] interface EXTDisjointTimerQuery {
    const GLenum QUERY_COUNTER_BITS_EXT      = 0x8864;
    const GLenum CURRENT_QUERY_EXT           = 0x8865;
    const GLenum QUERY_RESULT_EXT            = 0x8866;
    const GLenum QUERY_RESULT_AVAILABLE_EXT  = 0x8867;
    const GLenum TIME_ELAPSED_EXT            = 0x88BF;
    const GLenum TIMESTAMP_EXT               = 0x8E28;
    const GLenum GPU_DISJOINT_EXT            = 0x8FBB;

    WebGLTimerQueryEXT createQueryEXT();
    void deleteQueryEXT([Default=Undefined] WebGLTimerQueryEXT? query);
    boolean isQueryEXT([Default=Undefined] WebGLTimerQueryEXT? query);
    void beginQueryEXT(GLenum target, [Default=Undefined] WebGLTimerQueryEXT? query);
    void endQueryEXT(GLenum target);
    void queryCounterEXT([Default=Undefined] WebGLTimerQueryEXT? query, GLenum target);
    [CallWith=ScriptState] any getQueryEXT(GLenum target, GLenum pname);
    [CallWith=ScriptState] any getQueryObjectEXT([Default=Undefined] WebGLTimerQueryEXT? query, GLenum pname);
};