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

Side by Side Diff: services/ui/gpu/gpu_service_impl.h

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (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 unified diff | Download patch
« no previous file with comments | « services/tracing/tracing_app.cc ('k') | services/ui/gpu/gpu_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_IMPL_H_ 5 #ifndef SERVICES_UI_GPU_GPU_SERVICE_IMPL_H_
6 #define SERVICES_UI_GPU_GPU_SERVICE_IMPL_H_ 6 #define SERVICES_UI_GPU_GPU_SERVICE_IMPL_H_
7 7
8 #include "mojo/public/cpp/bindings/interface_request.h" 8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h" 10 #include "services/ui/public/interfaces/gpu_memory_buffer.mojom.h"
11 #include "services/ui/public/interfaces/gpu_service.mojom.h" 11 #include "services/ui/public/interfaces/gpu_service.mojom.h"
12 12
13 namespace shell {
14 class Connection;
15 }
16
17 namespace ui { 13 namespace ui {
18 14
19 class GpuServiceImpl : public mojom::GpuService { 15 class GpuServiceImpl : public mojom::GpuService {
20 public: 16 public:
21 GpuServiceImpl(mojo::InterfaceRequest<mojom::GpuService> request, 17 GpuServiceImpl(mojo::InterfaceRequest<mojom::GpuService> request);
22 shell::Connection* connection);
23 ~GpuServiceImpl() override; 18 ~GpuServiceImpl() override;
24 19
25 // mojom::GpuService overrides: 20 // mojom::GpuService overrides:
26 void EstablishGpuChannel( 21 void EstablishGpuChannel(
27 const mojom::GpuService::EstablishGpuChannelCallback& callback) override; 22 const mojom::GpuService::EstablishGpuChannelCallback& callback) override;
28 23
29 void CreateGpuMemoryBuffer( 24 void CreateGpuMemoryBuffer(
30 mojom::GpuMemoryBufferIdPtr id, 25 mojom::GpuMemoryBufferIdPtr id,
31 const gfx::Size& size, 26 const gfx::Size& size,
32 mojom::BufferFormat format, 27 mojom::BufferFormat format,
33 mojom::BufferUsage usage, 28 mojom::BufferUsage usage,
34 uint64_t surface_id, 29 uint64_t surface_id,
35 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback) 30 const mojom::GpuService::CreateGpuMemoryBufferCallback& callback)
36 override; 31 override;
37 32
38 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, 33 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id,
39 const gpu::SyncToken& sync_token) override; 34 const gpu::SyncToken& sync_token) override;
40 35
41 private: 36 private:
42 mojo::StrongBinding<GpuService> binding_; 37 mojo::StrongBinding<GpuService> binding_;
43 38
44 DISALLOW_COPY_AND_ASSIGN(GpuServiceImpl); 39 DISALLOW_COPY_AND_ASSIGN(GpuServiceImpl);
45 }; 40 };
46 41
47 } // namespace ui 42 } // namespace ui
48 43
49 #endif // SERVICES_UI_GPU_GPU_SERVICE_IMPL_H_ 44 #endif // SERVICES_UI_GPU_GPU_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « services/tracing/tracing_app.cc ('k') | services/ui/gpu/gpu_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698