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

Unified Diff: Source/core/rendering/RenderLayerCompositor.h

Issue 22454003: Support subtitles for native fullscreen video (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/rendering/RenderLayerCompositor.h
diff --git a/Source/core/rendering/RenderLayerCompositor.h b/Source/core/rendering/RenderLayerCompositor.h
index ac4edaee3a3e758ee01301bffec76567d96a5f79..ed6e8c18af96ab57f3bc5a66ac6f4c0cfc1766b2 100644
--- a/Source/core/rendering/RenderLayerCompositor.h
+++ b/Source/core/rendering/RenderLayerCompositor.h
@@ -205,6 +205,9 @@ public:
// Returns all reasons (direct, indirectly due to subtree, and indirectly due to overlap) that a layer should be composited.
CompositingReasons reasonsForCompositing(const RenderLayer*) const;
+ // Only called for main frame. Input object can be cross frame.
+ void setCurrentFullscreenRenderer(RenderObject*);
+
private:
class OverlapMap;
@@ -350,6 +353,8 @@ private:
OwnPtr<GraphicsLayer> m_layerForOverhangAreas;
#endif
+ RenderObject* m_currentFullscreenRenderer;
+
#if !LOG_DISABLED
int m_rootLayerUpdateCount;
int m_obligateCompositedLayerCount; // count of layer that have to be composited.

Powered by Google App Engine
This is Rietveld 408576698