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

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

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: rebase 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..e8a9c634a911c6bcb7380feaa2b1db2e55ee65be 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 updateLastUploadedVideo(WebMediaPlayer*);
+ unsigned lastUploadedVideoWidth() const { return m_lastUploadedVideoWidth; }
+ unsigned lastUploadedVideoHeight() const { return m_lastUploadedVideoHeight; }
+ double lastUploadedVideoTimestamp() const {
+ return m_lastUploadedVideoTimestamp;
+ }
+
private:
explicit WebGLTexture(WebGLRenderingContextBase*);
@@ -56,6 +64,10 @@ class WebGLTexture final : public WebGLSharedPlatform3DObject {
int mapTargetToIndex(GLenum) const;
GLenum m_target;
+
+ unsigned m_lastUploadedVideoWidth = 0;
+ unsigned m_lastUploadedVideoHeight = 0;
+ double m_lastUploadedVideoTimestamp = 0.0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698