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

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

Issue 2978873002: Singletons changes necessary to run the UI Service inside the browser's process. (Closed)
Patch Set: Removing unneeded dependency. Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | services/ui/gpu/gpu_main.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_MAIN_H_ 5 #ifndef SERVICES_UI_GPU_GPU_MAIN_H_
6 #define SERVICES_UI_GPU_GPU_MAIN_H_ 6 #define SERVICES_UI_GPU_GPU_MAIN_H_
7 7
8 #include "base/power_monitor/power_monitor.h" 8 #include "base/power_monitor/power_monitor.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "gpu/ipc/in_process_command_buffer.h" 10 #include "gpu/ipc/in_process_command_buffer.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // The main thread for Gpu. 90 // The main thread for Gpu.
91 base::Thread gpu_thread_; 91 base::Thread gpu_thread_;
92 scoped_refptr<base::SingleThreadTaskRunner> gpu_thread_task_runner_; 92 scoped_refptr<base::SingleThreadTaskRunner> gpu_thread_task_runner_;
93 93
94 // The thread that handles IO events for Gpu. 94 // The thread that handles IO events for Gpu.
95 base::Thread io_thread_; 95 base::Thread io_thread_;
96 96
97 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_; 97 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_;
98 98
99 base::PowerMonitor power_monitor_; 99 std::unique_ptr<base::PowerMonitor> power_monitor_;
100 mojo::Binding<mojom::GpuMain> binding_; 100 mojo::Binding<mojom::GpuMain> binding_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(GpuMain); 102 DISALLOW_COPY_AND_ASSIGN(GpuMain);
103 }; 103 };
104 104
105 } // namespace ui 105 } // namespace ui
106 106
107 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ 107 #endif // SERVICES_UI_GPU_GPU_MAIN_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698