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

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

Issue 2257693002: services/ui: Use a gpu::GpuChannelHost when creating ui::OutputSurface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_thread_impl.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 7392a898693a71b46993592c30f0e7c9319d3da1..944121ccbd3a0847b5a35eb7f08253b99e6cdeef 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -39,12 +39,14 @@ void RenderWidgetMusConnection::Bind(
}
std::unique_ptr<cc::OutputSurface>
-RenderWidgetMusConnection::CreateOutputSurface(ui::GpuService* gpu_service) {
+RenderWidgetMusConnection::CreateOutputSurface(
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!window_surface_binding_);
std::unique_ptr<cc::OutputSurface> surface(new ui::OutputSurface(
- gpu_service, ui::WindowSurface::Create(&window_surface_binding_)));
+ std::move(gpu_channel_host),
+ ui::WindowSurface::Create(&window_surface_binding_)));
if (compositor_mus_connection_) {
compositor_mus_connection_->AttachSurfaceOnMainThread(
std::move(window_surface_binding_));
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698