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

Unified Diff: Source/core/layout/LayoutVideo.cpp

Issue 1254613003: Let the WebMediaPlayer decide whether to use overlay video. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes after rebase Created 5 years, 5 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: Source/core/layout/LayoutVideo.cpp
diff --git a/Source/core/layout/LayoutVideo.cpp b/Source/core/layout/LayoutVideo.cpp
index 85d2caa574f58ff732e200d320932b67d8fe021f..2c5a199d61c71904542538fc030cc8dbb1fe296e 100644
--- a/Source/core/layout/LayoutVideo.cpp
+++ b/Source/core/layout/LayoutVideo.cpp
@@ -246,11 +246,9 @@ LayoutUnit LayoutVideo::offsetHeight() const
CompositingReasons LayoutVideo::additionalCompositingReasons() const
{
- if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) {
- HTMLMediaElement* media = toHTMLMediaElement(node());
- if (media->isFullscreen())
- return CompositingReasonVideo;
- }
+ HTMLMediaElement* element = toHTMLMediaElement(node());
+ if (element->isFullscreen() && element->supportsOverlayFullscreenVideo())
+ return CompositingReasonVideo;
if (shouldDisplayVideo() && supportsAcceleratedRendering())
return CompositingReasonVideo;

Powered by Google App Engine
This is Rietveld 408576698