summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webgl/webgl_video_texture.idl
blob: fddd62916abd2e58d7668ff79d69f648ad88bf23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2018 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.

// https://www.khronos.org/registry/webgl/extensions/proposals/WEBGL_video_texture/

[
    RuntimeEnabled=WebGLDraftExtensions,
    DoNotCheckConstants,
    LegacyNoInterfaceObject
] interface WebGLVideoTexture {
    const GLenum TEXTURE_VIDEO_IMAGE = 0x9248;
    const GLenum SAMPLER_VIDEO_IMAGE = 0x9249;

    [CallWith=ExecutionContext, RaisesException] VideoFrameMetadata shareVideoImageWEBGL(GLenum target, HTMLVideoElement video);
    [CallWith=ExecutionContext, RaisesException] boolean releaseVideoImageWEBGL(GLenum target);
};