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

Side by Side Diff: services/ui/public/cpp/gpu/mojo_gpu_memory_buffer_manager.h

Issue 2537343006: services: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of master #2 Created 4 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_CPP_GPU_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_GPU_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define SERVICES_UI_PUBLIC_CPP_GPU_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define SERVICES_UI_PUBLIC_CPP_GPU_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 15 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
16 #include "services/ui/public/interfaces/gpu_service.mojom.h" 16 #include "services/ui/public/interfaces/gpu_service.mojom.h"
17 17
18 namespace base { 18 namespace base {
19 class WaitableEvent; 19 class WaitableEvent;
20 } 20 }
21 21
22 namespace service_manager {
23 class Connector;
24 }
25
26 namespace ui { 22 namespace ui {
27 23
28 namespace mojom { 24 namespace mojom {
29 class GpuService; 25 class GpuService;
30 } 26 }
31 27
32 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { 28 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
33 public: 29 public:
34 explicit MojoGpuMemoryBufferManager(mojom::GpuServicePtr gpu_service); 30 explicit MojoGpuMemoryBufferManager(mojom::GpuServicePtr gpu_service);
35 ~MojoGpuMemoryBufferManager() override; 31 ~MojoGpuMemoryBufferManager() override;
(...skipping 27 matching lines...) Expand all
63 mojom::GpuServicePtr gpu_service_; 59 mojom::GpuServicePtr gpu_service_;
64 base::WeakPtr<MojoGpuMemoryBufferManager> weak_ptr_; 60 base::WeakPtr<MojoGpuMemoryBufferManager> weak_ptr_;
65 base::WeakPtrFactory<MojoGpuMemoryBufferManager> weak_ptr_factory_; 61 base::WeakPtrFactory<MojoGpuMemoryBufferManager> weak_ptr_factory_;
66 62
67 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); 63 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
68 }; 64 };
69 65
70 } // namespace ui 66 } // namespace ui
71 67
72 #endif // SERVICES_UI_PUBLIC_CPP_GPU_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 68 #endif // SERVICES_UI_PUBLIC_CPP_GPU_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/context_provider.h ('k') | services/ui/public/cpp/tests/test_window_tree_client_setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698