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 |