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

Unified Diff: services/ui/public/cpp/output_surface.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.h ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/output_surface.cc
diff --git a/services/ui/public/cpp/output_surface.cc b/services/ui/public/cpp/output_surface.cc
index ed236960c10d6f4935320075bfb974501dc2f208..ddaaaa4c70b7f7be87b2f92da7b099d110ad3266 100644
--- a/services/ui/public/cpp/output_surface.cc
+++ b/services/ui/public/cpp/output_surface.cc
@@ -7,16 +7,19 @@
#include "base/bind.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/output_surface_client.h"
+#include "gpu/ipc/client/gpu_channel_host.h"
#include "services/ui/public/cpp/context_provider.h"
#include "services/ui/public/cpp/window_surface.h"
namespace ui {
-OutputSurface::OutputSurface(GpuService* gpu_service,
- std::unique_ptr<ui::WindowSurface> surface)
- : cc::OutputSurface(make_scoped_refptr(new ContextProvider(gpu_service)),
- nullptr,
- nullptr),
+OutputSurface::OutputSurface(
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
+ std::unique_ptr<ui::WindowSurface> surface)
+ : cc::OutputSurface(
+ make_scoped_refptr(new ContextProvider(std::move(gpu_channel_host))),
+ nullptr,
+ nullptr),
surface_(std::move(surface)) {
capabilities_.delegated_rendering = true;
}
« no previous file with comments | « services/ui/public/cpp/output_surface.h ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698