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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: update 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/core/html/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index f0c93fd8584c1bfad56cb8d4cb5ca9dc7dd233c4..b3ae76334321b94c81d9f565fd6736ea832ec824 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -388,4 +388,18 @@ ScriptPromise HTMLVideoElement::createImageBitmap(
eventTarget.toLocalDOMWindow()->document(), options));
}
+void HTMLVideoElement::webglUpdateLastUploaded() {
+ if (webMediaPlayer() &&
+ webMediaPlayer()->getLastUploadedFrameInfo(
+ &m_webglLastUploadedWidth, &m_webglLastUploadedHeight,
+ &m_webglLastUploadedTimestamp)) {
+ return;
+ }
+
+ // getCurrentFrameInfo was unavailable or failed
+ m_webglLastUploadedWidth = 0;
+ m_webglLastUploadedHeight = 0;
+ m_webglLastUploadedTimestamp = 0.0;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698