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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 cursor_.get(), device_manager_.get(), | 123 cursor_.get(), device_manager_.get(), |
124 KeyboardLayoutEngineManager::GetKeyboardLayoutEngine())); | 124 KeyboardLayoutEngineManager::GetKeyboardLayoutEngine())); |
125 | 125 |
126 if (!gpu_helper_.Initialize(base::ThreadTaskRunnerHandle::Get(), | 126 if (!gpu_helper_.Initialize(base::ThreadTaskRunnerHandle::Get(), |
127 base::ThreadTaskRunnerHandle::Get())) | 127 base::ThreadTaskRunnerHandle::Get())) |
128 LOG(FATAL) << "Failed to initialize dummy channel."; | 128 LOG(FATAL) << "Failed to initialize dummy channel."; |
129 } | 129 } |
130 | 130 |
131 void InitializeGPU() override {} | 131 void InitializeGPU() override {} |
132 | 132 |
| 133 void InitializeGpuPostMainLoop() override {} |
| 134 |
133 private: | 135 private: |
134 // Objects in the "GPU" process. | 136 // Objects in the "GPU" process. |
135 scoped_ptr<GpuLock> gpu_lock_; | 137 scoped_ptr<GpuLock> gpu_lock_; |
136 scoped_refptr<DrmDevice> drm_; | 138 scoped_refptr<DrmDevice> drm_; |
137 scoped_ptr<DrmDeviceManager> drm_device_manager_; | 139 scoped_ptr<DrmDeviceManager> drm_device_manager_; |
138 scoped_ptr<DrmBufferGenerator> buffer_generator_; | 140 scoped_ptr<DrmBufferGenerator> buffer_generator_; |
139 scoped_ptr<ScreenManager> screen_manager_; | 141 scoped_ptr<ScreenManager> screen_manager_; |
140 scoped_ptr<DrmGpuPlatformSupport> gpu_platform_support_; | 142 scoped_ptr<DrmGpuPlatformSupport> gpu_platform_support_; |
141 | 143 |
142 // Objects in the "Browser" process. | 144 // Objects in the "Browser" process. |
(...skipping 21 matching lines...) Expand all Loading... |
164 | 166 |
165 OzonePlatform* CreateOzonePlatformDri() { | 167 OzonePlatform* CreateOzonePlatformDri() { |
166 return new OzonePlatformDrm; | 168 return new OzonePlatformDrm; |
167 } | 169 } |
168 | 170 |
169 OzonePlatform* CreateOzonePlatformDrm() { | 171 OzonePlatform* CreateOzonePlatformDrm() { |
170 return new OzonePlatformDrm; | 172 return new OzonePlatformDrm; |
171 } | 173 } |
172 | 174 |
173 } // namespace ui | 175 } // namespace ui |
OLD | NEW |