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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.h

Issue 2749653003: Prototype HTMLVideoElement properties for WebGL texImage2D (Closed)
Patch Set: update 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/core/html/HTMLVideoElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.h b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
index a8df45913e415587e09403c564639c6addf0284b..c95c7f2e308fada476309e193f4190dcc96b6322 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
@@ -121,6 +121,14 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
const ImageBitmapOptions&,
ExceptionState&) override;
+ unsigned webglLastUploadedWidth() const { return m_webglLastUploadedWidth; }
+ unsigned webglLastUploadedHeight() const { return m_webglLastUploadedHeight; }
+ double webglLastUploadedTimestamp() const {
+ return m_webglLastUploadedTimestamp;
+ }
+
+ void webglUpdateLastUploaded();
+
private:
friend class MediaCustomControlsFullscreenDetectorTest;
friend class HTMLMediaElementEventListenersTest;
@@ -150,6 +158,10 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
m_customControlsFullscreenDetector;
AtomicString m_defaultPosterURL;
+
+ unsigned m_webglLastUploadedWidth = 0;
+ unsigned m_webglLastUploadedHeight = 0;
+ double m_webglLastUploadedTimestamp = 0.0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698