Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: move fields to WebGLTexture Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index defdd0fff2a7287ef759fe52fb6b25ce1b9524ab..b84b911a7a01b0606032eb881b47c668ca19560f 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -5288,6 +5288,7 @@ void WebGLRenderingContextBase::texImageHelperHTMLVideoElement(
if (video->copyVideoTextureToPlatformTexture(contextGL(), texture->object(),
DaleCurtis 2017/03/17 21:47:52 Sorry, can you instead add the parameters you want
Kai Ninomiya 2017/03/18 01:08:58 Hm, adding it to copyVideoTextureToPlatformTexture
DaleCurtis 2017/03/20 17:58:13 Is there any other way to upload a frame? Also 6 c
Ken Russell (switch to Gerrit) 2017/03/20 19:14:14 Dale, there are three different entry points on HT
DaleCurtis 2017/03/20 21:59:54 Yes, this all sounds reasonable to me for the expe
m_unpackPremultiplyAlpha,
m_unpackFlipY)) {
+ texture->videoUpdateLastUploaded(video->webMediaPlayer());
return;
}
@@ -5316,6 +5317,7 @@ void WebGLRenderingContextBase::texImageHelperHTMLVideoElement(
texture->object(), internalformat, type, level,
m_unpackPremultiplyAlpha, m_unpackFlipY, IntPoint(0, 0),
IntRect(0, 0, video->videoWidth(), video->videoHeight()))) {
+ texture->videoUpdateLastUploaded(video->webMediaPlayer());
return;
}
}
@@ -5332,8 +5334,10 @@ void WebGLRenderingContextBase::texImageHelperHTMLVideoElement(
contextGL(), level, convertTexInternalFormat(internalformat, type),
format, type, xoffset, yoffset, zoffset, m_unpackFlipY,
m_unpackPremultiplyAlpha &&
- m_unpackColorspaceConversion == GL_NONE))
+ m_unpackColorspaceConversion == GL_NONE)) {
+ texture->videoUpdateLastUploaded(video->webMediaPlayer());
return;
+ }
}
RefPtr<Image> image = videoFrameToImage(video);
@@ -5344,6 +5348,7 @@ void WebGLRenderingContextBase::texImageHelperHTMLVideoElement(
WebGLImageConversion::HtmlDomVideo, m_unpackFlipY,
m_unpackPremultiplyAlpha, sourceImageRect, depth,
unpackImageHeight);
+ texture->videoUpdateLastUploaded(video->webMediaPlayer());
}
void WebGLRenderingContextBase::texImageBitmapByGPU(ImageBitmap* bitmap,

Powered by Google App Engine
This is Rietveld 408576698