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

Unified Diff: ui/views/mus/surface_context_factory.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 | « services/ui/public/cpp/output_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/surface_context_factory.cc
diff --git a/ui/views/mus/surface_context_factory.cc b/ui/views/mus/surface_context_factory.cc
index 6d22e456e37121cf76a27e3a47d8819687643266..36aef012734e28da2243d549ffd9f397cf51d8b9 100644
--- a/ui/views/mus/surface_context_factory.cc
+++ b/ui/views/mus/surface_context_factory.cc
@@ -39,8 +39,9 @@ void SurfaceContextFactory::CreateOutputSurface(
ui::Window* window = compositor->window();
NativeWidgetMus* native_widget = NativeWidgetMus::GetForWindow(window);
ui::mojom::SurfaceType surface_type = native_widget->surface_type();
- std::unique_ptr<cc::OutputSurface> surface(new ui::OutputSurface(
- gpu_service_, window->RequestSurface(surface_type)));
+ std::unique_ptr<cc::OutputSurface> surface(
+ new ui::OutputSurface(gpu_service_->EstablishGpuChannelSync(),
+ window->RequestSurface(surface_type)));
compositor->SetOutputSurface(std::move(surface));
}
« no previous file with comments | « services/ui/public/cpp/output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698