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

Unified Diff: ui/compositor/compositor.cc

Issue 2684933003: Move frame_sink_id management to framesink_manager.cc/h from (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
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 318c73614f143d7f52ab480c8ac133b8d996e503..3ee6394e909738feee879e8b434246408c29edfc 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -28,6 +28,7 @@
#include "cc/output/context_provider.h"
#include "cc/output/latency_info_swap_promise.h"
#include "cc/scheduler/begin_frame_source.h"
+#include "cc/surfaces/framesink_manager.h"
#include "cc/surfaces/surface_id_allocator.h"
#include "cc/surfaces/surface_manager.h"
#include "cc/trees/layer_tree_host.h"
@@ -92,7 +93,7 @@ Compositor::Compositor(const cc::FrameSinkId& frame_sink_id,
layer_animator_collection_(this),
weak_ptr_factory_(this) {
if (context_factory_private) {
- context_factory_private->GetSurfaceManager()->RegisterFrameSinkId(
+ context_factory_private->GetFrameSinkManager()->RegisterFrameSinkId(
frame_sink_id_);
}
root_web_layer_ = cc::Layer::Create();
@@ -242,7 +243,7 @@ Compositor::~Compositor() {
context_factory_->RemoveCompositor(this);
if (context_factory_private_) {
- auto* manager = context_factory_private_->GetSurfaceManager();
+ auto* manager = context_factory_private_->GetFrameSinkManager();
for (auto& client : child_frame_sinks_) {
DCHECK(client.is_valid());
manager->UnregisterFrameSinkHierarchy(frame_sink_id_, client);
@@ -254,7 +255,7 @@ Compositor::~Compositor() {
void Compositor::AddFrameSink(const cc::FrameSinkId& frame_sink_id) {
if (!context_factory_private_)
return;
- context_factory_private_->GetSurfaceManager()->RegisterFrameSinkHierarchy(
+ context_factory_private_->GetFrameSinkManager()->RegisterFrameSinkHierarchy(
frame_sink_id_, frame_sink_id);
child_frame_sinks_.insert(frame_sink_id);
}
@@ -265,7 +266,7 @@ void Compositor::RemoveFrameSink(const cc::FrameSinkId& frame_sink_id) {
auto it = child_frame_sinks_.find(frame_sink_id);
DCHECK(it != child_frame_sinks_.end());
DCHECK(it->is_valid());
- context_factory_private_->GetSurfaceManager()->UnregisterFrameSinkHierarchy(
+ context_factory_private_->GetFrameSinkManager()->UnregisterFrameSinkHierarchy(
frame_sink_id_, *it);
child_frame_sinks_.erase(it);
}
« components/display_compositor/gpu_compositor_frame_sink.cc ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698