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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLTexture.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/WebGLTexture.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp b/third_party/WebKit/Source/modules/webgl/WebGLTexture.cpp
index 51a3a69c31b8d8192e0d43c9e20fcbd3d4f8cfea..19c112ea37c2cab890531947333d08d532b7385a 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::videoUpdateLastUploaded(WebMediaPlayer* player) {
+ if (player && player->getLastUploadedFrameInfo(
+ &m_videoLastUploadedWidth, &m_videoLastUploadedHeight,
+ &m_videoLastUploadedTimestamp)) {
+ return;
+ }
+
+ // getCurrentFrameInfo was unavailable or failed
+ m_videoLastUploadedWidth = 0;
+ m_videoLastUploadedHeight = 0;
+ m_videoLastUploadedTimestamp = 0.0;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698