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

Unified Diff: services/ui/public/cpp/lib/gles2_context.cc

Issue 2187103002: services/ui: Remove unused connector argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 5 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/lib/context_provider.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/lib/gles2_context.cc
diff --git a/services/ui/public/cpp/lib/gles2_context.cc b/services/ui/public/cpp/lib/gles2_context.cc
index 296732c9a367ce27ad4df51757c66208a5cc68b2..9338a54658405296ab5795205700b18983e665be 100644
--- a/services/ui/public/cpp/lib/gles2_context.cc
+++ b/services/ui/public/cpp/lib/gles2_context.cc
@@ -14,7 +14,6 @@
#include "gpu/command_buffer/client/transfer_buffer.h"
#include "gpu/ipc/client/command_buffer_proxy_impl.h"
#include "mojo/public/cpp/system/core.h"
-#include "services/shell/public/cpp/connector.h"
#include "services/ui/common/gpu_service.h"
#include "services/ui/public/cpp/lib/command_buffer_client_impl.h"
#include "services/ui/public/interfaces/command_buffer.mojom.h"
@@ -27,8 +26,7 @@ GLES2Context::GLES2Context() {}
GLES2Context::~GLES2Context() {}
-bool GLES2Context::Initialize(const std::vector<int32_t>& attribs,
- shell::Connector* connector) {
+bool GLES2Context::Initialize(const std::vector<int32_t>& attribs) {
scoped_refptr<gpu::GpuChannelHost> gpu_channel_host =
GpuService::GetInstance()->EstablishGpuChannelSync();
if (!gpu_channel_host)
@@ -81,10 +79,9 @@ bool GLES2Context::Initialize(const std::vector<int32_t>& attribs,
// static
std::unique_ptr<GLES2Context> GLES2Context::CreateOffscreenContext(
- const std::vector<int32_t>& attribs,
- shell::Connector* connector) {
+ const std::vector<int32_t>& attribs) {
std::unique_ptr<GLES2Context> gles2_context(new GLES2Context);
- if (!gles2_context->Initialize(attribs, connector))
+ if (!gles2_context->Initialize(attribs))
gles2_context.reset();
return gles2_context;
}
« no previous file with comments | « services/ui/public/cpp/lib/context_provider.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698