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 |