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

Unified Diff: Source/core/layout/compositing/GraphicsLayerTreeBuilder.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/compositing/GraphicsLayerTreeBuilder.cpp
diff --git a/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp b/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp
index 45a29ccf295a9dda207e2324c775feaa4b32510a..eecd098bffe93013b45c2a68cd0ec26ecfc354bf 100644
--- a/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp
+++ b/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp
@@ -47,14 +47,10 @@ GraphicsLayerTreeBuilder::~GraphicsLayerTreeBuilder()
static bool shouldAppendLayer(const DeprecatedPaintLayer& layer)
{
- if (!RuntimeEnabledFeatures::overlayFullscreenVideoEnabled())
- return true;
Node* node = layer.layoutObject()->node();
if (node && isHTMLVideoElement(*node)) {
HTMLVideoElement* element = toHTMLVideoElement(node);
- // For WebRTC, video frame contains all the data and no hardware surface is used.
- // We should always append the layer in this case.
- if (element->isFullscreen() && !HTMLMediaElement::isMediaStreamURL(element->sourceURL().string()))
+ if (element->isFullscreen() && element->supportsOverlayFullscreenVideo())
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698