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

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

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: rebase 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/WebGLTexture.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
index 51a3a69c31b8d8192e0d43c9e20fcbd3d4f8cfea..04454573ac414b1ba9d24cd41320766f19821474 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
@@ -109,4 +109,17 @@ GLint WebGLTexture::computeLevelCount(GLsizei width,
return log + 1;
}
+void WebGLTexture::updateLastUploadedVideo(WebMediaPlayer* player) {
+ if (player && player->getLastUploadedFrameInfo(
+ &m_lastUploadedVideoWidth, &m_lastUploadedVideoHeight,
+ &m_lastUploadedVideoTimestamp)) {
+ return;
+ }
+
+ // getCurrentFrameInfo was unavailable or failed
+ m_lastUploadedVideoWidth = 0;
+ m_lastUploadedVideoHeight = 0;
+ m_lastUploadedVideoTimestamp = 0.0;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLTexture.h ('k') | third_party/WebKit/Source/modules/webgl/WebGLTexture.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698