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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLTexture.h

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.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

Powered by Google App Engine
This is Rietveld 408576698