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

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: Address Xianzhu's Comments Created 5 years, 4 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..0dc2abe3237296e7b7f4171aa333c3f346cd001e 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->usesOverlayFullscreenVideo())
+ return CompositingReasonVideo;
if (shouldDisplayVideo() && supportsAcceleratedRendering())
return CompositingReasonVideo;
« no previous file with comments | « Source/core/html/HTMLVideoElement.cpp ('k') | Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698