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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 2683663002: Add AddChildFrameSink() and RemoveChildFrameSink() To WindowAndroidCompositor (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index 83ff58498eb4a533956229d7dbb147834e06006d..6d49a396a9d8be47d62bc53da8db711ab1200ab8 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -103,6 +103,8 @@ class CONTENT_EXPORT CompositorImpl
std::unique_ptr<cc::CopyOutputRequest> request) override;
void SetNeedsAnimate() override;
cc::FrameSinkId GetFrameSinkId() override;
+ void AddChildFrameSink(const cc::FrameSinkId& frame_sink_id) override;
+ void RemoveChildFrameSink(const cc::FrameSinkId& frame_sink_id) override;
void SetVisible(bool visible);
void CreateLayerTreeHost();
@@ -165,6 +167,9 @@ class CONTENT_EXPORT CompositorImpl
bool compositor_frame_sink_request_pending_;
gpu::Capabilities gpu_capabilities_;
+ bool has_compositor_frame_sink_ = false;
+ std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash>
+ pending_child_frame_sink_ids_;
base::WeakPtrFactory<CompositorImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698