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

Unified Diff: services/ui/public/cpp/context_provider.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/context_provider.h ('k') | services/ui/public/cpp/gles2_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/context_provider.cc
diff --git a/services/ui/public/cpp/context_provider.cc b/services/ui/public/cpp/context_provider.cc
index ec1991c3a4030e3cece7b22e0a2d5f1aafdbfc13..93610423f9cd0f5d08b293197276dec8a8ee8d14 100644
--- a/services/ui/public/cpp/context_provider.cc
+++ b/services/ui/public/cpp/context_provider.cc
@@ -7,15 +7,17 @@
#include <stdint.h>
#include "base/logging.h"
+#include "gpu/ipc/client/gpu_channel_host.h"
#include "services/ui/public/cpp/gles2_context.h"
namespace ui {
-ContextProvider::ContextProvider(GpuService* gpu_service)
- : gpu_service_(gpu_service) {}
+ContextProvider::ContextProvider(
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_host)
+ : gpu_channel_host_(std::move(gpu_channel_host)) {}
bool ContextProvider::BindToCurrentThread() {
- context_ = GLES2Context::CreateOffscreenContext(gpu_service_);
+ context_ = GLES2Context::CreateOffscreenContext(gpu_channel_host_);
return !!context_;
}
« no previous file with comments | « services/ui/public/cpp/context_provider.h ('k') | services/ui/public/cpp/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698