OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |