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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 base::Thread io_thread_; | 95 base::Thread io_thread_; |
96 | 96 |
97 // The frame sink manager gets its own thread in mus-gpu. The gpu service, | 97 // The frame sink manager gets its own thread in mus-gpu. The gpu service, |
98 // where GL commands are processed resides on its own thread. Various | 98 // where GL commands are processed resides on its own thread. Various |
99 // components of the frame sink manager such as Display, ResourceProvider, | 99 // components of the frame sink manager such as Display, ResourceProvider, |
100 // and GLRenderer block on sync tokens from other command buffers. Thus, | 100 // and GLRenderer block on sync tokens from other command buffers. Thus, |
101 // the gpu service must live on a separate thread. | 101 // the gpu service must live on a separate thread. |
102 base::Thread compositor_thread_; | 102 base::Thread compositor_thread_; |
103 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_; | 103 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner_; |
104 | 104 |
105 base::PowerMonitor power_monitor_; | 105 std::unique_ptr<base::PowerMonitor> power_monitor_; |
106 mojo::Binding<mojom::GpuMain> binding_; | 106 mojo::Binding<mojom::GpuMain> binding_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(GpuMain); | 108 DISALLOW_COPY_AND_ASSIGN(GpuMain); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace ui | 111 } // namespace ui |
112 | 112 |
113 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ | 113 #endif // SERVICES_UI_GPU_GPU_MAIN_H_ |
OLD | NEW |