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

Unified Diff: content/renderer/mus/compositor_mus_connection.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 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: content/renderer/mus/compositor_mus_connection.cc
diff --git a/content/renderer/mus/compositor_mus_connection.cc b/content/renderer/mus/compositor_mus_connection.cc
index 65664838c9fdbbc533744dc45e710087a54822ed..e888e10fdaa26eb41e0de405ab492b00602167b2 100644
--- a/content/renderer/mus/compositor_mus_connection.cc
+++ b/content/renderer/mus/compositor_mus_connection.cc
@@ -46,13 +46,14 @@ CompositorMusConnection::CompositorMusConnection(
}
void CompositorMusConnection::AttachCompositorFrameSinkOnMainThread(
- std::unique_ptr<ui::WindowSurfaceBinding> surface_binding) {
+ std::unique_ptr<ui::WindowCompositorFrameSinkBinding>
+ compositor_frame_sink_binding) {
DCHECK(main_task_runner_->BelongsToCurrentThread());
compositor_task_runner_->PostTask(
FROM_HERE,
base::Bind(
&CompositorMusConnection::AttachCompositorFrameSinkOnCompositorThread,
- this, base::Passed(std::move(surface_binding))));
+ this, base::Passed(std::move(compositor_frame_sink_binding))));
}
CompositorMusConnection::~CompositorMusConnection() {
@@ -62,12 +63,15 @@ CompositorMusConnection::~CompositorMusConnection() {
}
void CompositorMusConnection::AttachCompositorFrameSinkOnCompositorThread(
- std::unique_ptr<ui::WindowSurfaceBinding> surface_binding) {
+ std::unique_ptr<ui::WindowCompositorFrameSinkBinding>
+ compositor_frame_sink_binding) {
DCHECK(compositor_task_runner_->BelongsToCurrentThread());
- window_surface_binding_ = std::move(surface_binding);
+ window_compositor_frame_sink_binding_ =
+ std::move(compositor_frame_sink_binding);
if (root_) {
- root_->AttachCompositorFrameSink(ui::mojom::SurfaceType::DEFAULT,
- std::move(window_surface_binding_));
+ root_->AttachCompositorFrameSink(
+ ui::mojom::CompositorFrameSinkType::DEFAULT,
+ std::move(window_compositor_frame_sink_binding_));
}
}
@@ -152,9 +156,10 @@ void CompositorMusConnection::OnEmbed(ui::Window* root) {
DCHECK(compositor_task_runner_->BelongsToCurrentThread());
root_ = root;
root_->set_input_event_handler(this);
- if (window_surface_binding_) {
- root->AttachCompositorFrameSink(ui::mojom::SurfaceType::DEFAULT,
- std::move(window_surface_binding_));
+ if (window_compositor_frame_sink_binding_) {
+ root->AttachCompositorFrameSink(
+ ui::mojom::CompositorFrameSinkType::DEFAULT,
+ std::move(window_compositor_frame_sink_binding_));
}
}
« no previous file with comments | « content/renderer/mus/compositor_mus_connection.h ('k') | content/renderer/mus/render_widget_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698