blob: a3fa922004861c2a0da949d80b7926f11f262386 [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,
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);
};