blob: 998d2b820cc57d900f53005389d93d851a0f8b00 [file] [log] [blame]
// 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/
typedef unsigned long GLenum;
[
RuntimeEnabled=WebGLDraftExtensions,
DoNotCheckConstants,
NoInterfaceObject
] interface WebGLVideoTexture {
const GLenum TEXTURE_VIDEO_IMAGE = 0x9248;
const GLenum SAMPLER_VIDEO_IMAGE = 0x9249;
[CallWith=ExecutionContext, RaisesException] WebGLVideoFrameInfo VideoElementTargetVideoTexture(GLenum target, HTMLVideoElement video);
};