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

Side by Side Diff: services/ui/gpu/gpu_main.cc

Issue 2545923003: services/ui/surfaces should not depend on other parts of Mus (Closed)
Patch Set: Cleanup Created 4 years 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
« no previous file with comments | « no previous file | services/ui/surfaces/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "services/ui/gpu/gpu_main.h" 5 #include "services/ui/gpu/gpu_main.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "gpu/ipc/common/gpu_memory_buffer_support.h" 9 #include "gpu/ipc/common/gpu_memory_buffer_support.h"
10 #include "gpu/ipc/gpu_in_process_thread_service.h" 10 #include "gpu/ipc/gpu_in_process_thread_service.h"
11 #include "gpu/ipc/service/gpu_memory_buffer_factory.h" 11 #include "gpu/ipc/service/gpu_memory_buffer_factory.h"
12 #include "gpu/ipc/service/gpu_watchdog_thread.h" 12 #include "gpu/ipc/service/gpu_watchdog_thread.h"
13 #include "services/ui/common/mus_gpu_memory_buffer_manager.h"
13 #include "services/ui/gpu/gpu_service_internal.h" 14 #include "services/ui/gpu/gpu_service_internal.h"
14 15
15 namespace { 16 namespace {
16 17
17 #if defined(OS_WIN) 18 #if defined(OS_WIN)
18 std::unique_ptr<base::MessagePump> CreateMessagePumpWin() { 19 std::unique_ptr<base::MessagePump> CreateMessagePumpWin() {
19 base::MessagePumpForGpu::InitFactory(); 20 base::MessagePumpForGpu::InitFactory();
20 return base::MessageLoop::CreateMessagePumpForType( 21 return base::MessageLoop::CreateMessagePumpForType(
21 base::MessageLoop::TYPE_UI); 22 base::MessageLoop::TYPE_UI);
22 } 23 }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // TODO(sad): https://crbug.com/645602 231 // TODO(sad): https://crbug.com/645602
231 } 232 }
232 233
233 bool GpuMain::EnsureSandboxInitialized( 234 bool GpuMain::EnsureSandboxInitialized(
234 gpu::GpuWatchdogThread* watchdog_thread) { 235 gpu::GpuWatchdogThread* watchdog_thread) {
235 // TODO(sad): https://crbug.com/645602 236 // TODO(sad): https://crbug.com/645602
236 return true; 237 return true;
237 } 238 }
238 239
239 } // namespace ui 240 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | services/ui/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698