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

Unified Diff: content/renderer/mus/render_widget_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
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | mash/login/login.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mus/render_widget_mus_connection.cc
diff --git a/content/renderer/mus/render_widget_mus_connection.cc b/content/renderer/mus/render_widget_mus_connection.cc
index 73ecabc76082d8c571f82002241a30cb77398042..c5633ad3b8ed38035d0150399c4b7b6fa6e88bc6 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -11,8 +11,8 @@
#include "content/renderer/mus/compositor_mus_connection.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
-#include "services/ui/public/cpp/compositor_frame_sink.h"
#include "services/ui/public/cpp/context_provider.h"
+#include "services/ui/public/cpp/window_compositor_frame_sink.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
namespace content {
@@ -32,9 +32,9 @@ void RenderWidgetMusConnection::Bind(
routing_id_, render_thread->GetCompositorMainThreadTaskRunner(),
render_thread->compositor_task_runner(), std::move(request),
render_thread->input_handler_manager());
- if (window_surface_binding_) {
+ if (window_compositor_frame_sink_binding_) {
compositor_mus_connection_->AttachCompositorFrameSinkOnMainThread(
- std::move(window_surface_binding_));
+ std::move(window_compositor_frame_sink_binding_));
}
}
@@ -42,16 +42,18 @@ std::unique_ptr<cc::CompositorFrameSink>
RenderWidgetMusConnection::CreateCompositorFrameSink(
scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) {
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(!window_surface_binding_);
+ DCHECK(!window_compositor_frame_sink_binding_);
- std::unique_ptr<cc::CompositorFrameSink> surface(new ui::CompositorFrameSink(
- make_scoped_refptr(new ui::ContextProvider(std::move(gpu_channel_host))),
- ui::WindowSurface::Create(&window_surface_binding_)));
+ std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink(
+ ui::WindowCompositorFrameSink::Create(
+ make_scoped_refptr(
+ new ui::ContextProvider(std::move(gpu_channel_host))),
+ &window_compositor_frame_sink_binding_));
if (compositor_mus_connection_) {
compositor_mus_connection_->AttachCompositorFrameSinkOnMainThread(
- std::move(window_surface_binding_));
+ std::move(window_compositor_frame_sink_binding_));
}
- return surface;
+ return compositor_frame_sink;
}
// static
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | mash/login/login.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698