OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ui/ozone/platform/drm/ozone_platform_drm.h" | 5 #include "ui/ozone/platform/drm/ozone_platform_drm.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" | 9 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" |
10 #include "ui/events/ozone/device/device_manager.h" | 10 #include "ui/events/ozone/device/device_manager.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 cursor_.get(), device_manager_.get(), | 127 cursor_.get(), device_manager_.get(), |
128 KeyboardLayoutEngineManager::GetKeyboardLayoutEngine())); | 128 KeyboardLayoutEngineManager::GetKeyboardLayoutEngine())); |
129 | 129 |
130 if (!gpu_helper_.Initialize(base::ThreadTaskRunnerHandle::Get(), | 130 if (!gpu_helper_.Initialize(base::ThreadTaskRunnerHandle::Get(), |
131 base::ThreadTaskRunnerHandle::Get())) | 131 base::ThreadTaskRunnerHandle::Get())) |
132 LOG(FATAL) << "Failed to initialize dummy channel."; | 132 LOG(FATAL) << "Failed to initialize dummy channel."; |
133 } | 133 } |
134 | 134 |
135 void InitializeGPU() override {} | 135 void InitializeGPU() override {} |
136 | 136 |
| 137 void InitializeGPUPostMainLoop() override {} |
| 138 |
137 private: | 139 private: |
138 // Objects in the "GPU" process. | 140 // Objects in the "GPU" process. |
139 scoped_ptr<GpuLock> gpu_lock_; | 141 scoped_ptr<GpuLock> gpu_lock_; |
140 scoped_refptr<DrmDevice> drm_; | 142 scoped_refptr<DrmDevice> drm_; |
141 scoped_ptr<DrmDeviceManager> drm_device_manager_; | 143 scoped_ptr<DrmDeviceManager> drm_device_manager_; |
142 scoped_ptr<DrmBufferGenerator> buffer_generator_; | 144 scoped_ptr<DrmBufferGenerator> buffer_generator_; |
143 scoped_ptr<ScreenManager> screen_manager_; | 145 scoped_ptr<ScreenManager> screen_manager_; |
144 scoped_ptr<DrmGpuPlatformSupport> gpu_platform_support_; | 146 scoped_ptr<DrmGpuPlatformSupport> gpu_platform_support_; |
145 DrmWindowManager window_delegate_manager_; | 147 DrmWindowManager window_delegate_manager_; |
146 | 148 |
(...skipping 22 matching lines...) Expand all Loading... |
169 | 171 |
170 OzonePlatform* CreateOzonePlatformDri() { | 172 OzonePlatform* CreateOzonePlatformDri() { |
171 return new OzonePlatformDrm; | 173 return new OzonePlatformDrm; |
172 } | 174 } |
173 | 175 |
174 OzonePlatform* CreateOzonePlatformDrm() { | 176 OzonePlatform* CreateOzonePlatformDrm() { |
175 return new OzonePlatformDrm; | 177 return new OzonePlatformDrm; |
176 } | 178 } |
177 | 179 |
178 } // namespace ui | 180 } // namespace ui |
OLD | NEW |