| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 event_factory_ozone_->input_controller())); | 119 event_factory_ozone_->input_controller())); |
| 120 cursor_factory_ozone_.reset(new BitmapCursorFactoryOzone); | 120 cursor_factory_ozone_.reset(new BitmapCursorFactoryOzone); |
| 121 | 121 |
| 122 if (!gpu_helper_.Initialize(base::ThreadTaskRunnerHandle::Get(), | 122 if (!gpu_helper_.Initialize(base::ThreadTaskRunnerHandle::Get(), |
| 123 base::ThreadTaskRunnerHandle::Get())) | 123 base::ThreadTaskRunnerHandle::Get())) |
| 124 LOG(FATAL) << "Failed to initialize dummy channel."; | 124 LOG(FATAL) << "Failed to initialize dummy channel."; |
| 125 } | 125 } |
| 126 | 126 |
| 127 void InitializeGPU() override {} | 127 void InitializeGPU() override {} |
| 128 | 128 |
| 129 void InitializeTest() override { |
| 130 InitializeUI(); |
| 131 InitializeGPU(); |
| 132 } |
| 133 |
| 129 private: | 134 private: |
| 130 // Objects in the "GPU" process. | 135 // Objects in the "GPU" process. |
| 131 scoped_ptr<DrmDeviceManager> drm_device_manager_; | 136 scoped_ptr<DrmDeviceManager> drm_device_manager_; |
| 132 scoped_ptr<DrmBufferGenerator> buffer_generator_; | 137 scoped_ptr<DrmBufferGenerator> buffer_generator_; |
| 133 scoped_ptr<ScreenManager> screen_manager_; | 138 scoped_ptr<ScreenManager> screen_manager_; |
| 134 scoped_ptr<DrmGpuPlatformSupport> gpu_platform_support_; | 139 scoped_ptr<DrmGpuPlatformSupport> gpu_platform_support_; |
| 135 | 140 |
| 136 // Objects in the "Browser" process. | 141 // Objects in the "Browser" process. |
| 137 scoped_ptr<OverlayManagerOzone> overlay_manager_; | 142 scoped_ptr<OverlayManagerOzone> overlay_manager_; |
| 138 scoped_ptr<DeviceManager> device_manager_; | 143 scoped_ptr<DeviceManager> device_manager_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 159 | 164 |
| 160 OzonePlatform* CreateOzonePlatformDri() { | 165 OzonePlatform* CreateOzonePlatformDri() { |
| 161 return new OzonePlatformDrm; | 166 return new OzonePlatformDrm; |
| 162 } | 167 } |
| 163 | 168 |
| 164 OzonePlatform* CreateOzonePlatformDrm() { | 169 OzonePlatform* CreateOzonePlatformDrm() { |
| 165 return new OzonePlatformDrm; | 170 return new OzonePlatformDrm; |
| 166 } | 171 } |
| 167 | 172 |
| 168 } // namespace ui | 173 } // namespace ui |
| OLD | NEW |