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

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

Issue 1297983002: Update poster code as per https://html.spec.whatwg.org/#show-poster-flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: clean up Created 5 years, 3 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLVideoElement.h
diff --git a/Source/core/html/HTMLVideoElement.h b/Source/core/html/HTMLVideoElement.h
index 54a56ea19e21c83c4b8e10e492b321be84e5dd8a..a33183336183c04475f1097ba31ac31f8b2aeb09 100644
--- a/Source/core/html/HTMLVideoElement.h
+++ b/Source/core/html/HTMLVideoElement.h
@@ -71,7 +71,7 @@ public:
// Used by WebGL to do GPU-GPU textures copy if possible.
bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObject texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flipY);
- bool shouldDisplayPosterImage() const { return displayMode() == Poster; }
+ bool shouldDisplayPosterImage() const { return m_showPoster; }
bool hasAvailableVideoFrame() const;
@@ -99,10 +99,12 @@ private:
bool isURLAttribute(const Attribute&) const override;
const AtomicString imageSourceURL() const override;
- void updateDisplayState() override;
+ void updateDisplayState(bool forceUpdate) override;
void didMoveToNewDocument(Document& oldDocument) override;
- void setDisplayMode(DisplayMode) override;
+ void setShowPoster(bool) override;
+ // whether to show poster or video frame
+ bool m_showPoster : 1;
OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
AtomicString m_defaultPosterURL;
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698