Index: third_party/WebKit/Source/modules/webgl/WebGLTexture.h |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.h b/third_party/WebKit/Source/modules/webgl/WebGLTexture.h |
index 8606ad57da999d4fdc2511adddfc50737fea4da4..0ede0de2da1c4fe643cc13851e7c677d7dc133e9 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLTexture.h |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTexture.h |
@@ -27,6 +27,7 @@ |
#define WebGLTexture_h |
#include "modules/webgl/WebGLSharedPlatform3DObject.h" |
+#include "public/platform/WebMediaPlayer.h" |
namespace blink { |
@@ -46,6 +47,13 @@ class WebGLTexture final : public WebGLSharedPlatform3DObject { |
static GLint computeLevelCount(GLsizei width, GLsizei height, GLsizei depth); |
+ void videoUpdateLastUploaded(WebMediaPlayer*); |
Ken Russell (switch to Gerrit)
2017/03/20 19:14:14
I think these would read better by naming this:
u
|
+ unsigned videoLastUploadedWidth() const { return m_videoLastUploadedWidth; } |
+ unsigned videoLastUploadedHeight() const { return m_videoLastUploadedHeight; } |
+ double videoLastUploadedTimestamp() const { |
+ return m_videoLastUploadedTimestamp; |
+ } |
+ |
private: |
explicit WebGLTexture(WebGLRenderingContextBase*); |
@@ -56,6 +64,10 @@ class WebGLTexture final : public WebGLSharedPlatform3DObject { |
int mapTargetToIndex(GLenum) const; |
GLenum m_target; |
+ |
+ unsigned m_videoLastUploadedWidth = 0; |
+ unsigned m_videoLastUploadedHeight = 0; |
+ double m_videoLastUploadedTimestamp = 0.0; |
}; |
} // namespace blink |