blob: 30bb0631eef6af2c663bc8911872864dd8a54599 [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// 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,
LegacyNoInterfaceObject
] interface WebGLVideoTexture {
const GLenum TEXTURE_VIDEO_IMAGE = 0x9248;
const GLenum SAMPLER_VIDEO_IMAGE = 0x9249;
[CallWith=ScriptState, RaisesException] VideoFrameMetadata? shareVideoImageWEBGL(GLenum target, HTMLVideoElement video);
[RaisesException] boolean releaseVideoImageWEBGL(GLenum target);
};