Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1006)

Side by Side Diff: ui/ozone/platform/drm/ozone_platform_drm.cc

Issue 1043233003: ozone: Add post message loop initialization hook (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698