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