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

Side by Side Diff: services/ui/public/cpp/gpu/gpu_service.cc

Issue 2516843002: mus-gpu: Remove some unnecessary headers. (Closed)
Patch Set: Created 4 years, 1 month 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 | « services/ui/public/cpp/gpu/gpu_service.h ('k') | no next file » | 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/public/cpp/gpu/gpu_service.h" 5 #include "services/ui/public/cpp/gpu/gpu_service.h"
6 6
7 #include "base/command_line.h"
8 #include "base/memory/singleton.h"
9 #include "base/threading/thread_task_runner_handle.h" 7 #include "base/threading/thread_task_runner_handle.h"
10 #include "build/build_config.h" 8 #include "build/build_config.h"
11 #include "mojo/public/cpp/bindings/sync_call_restrictions.h" 9 #include "mojo/public/cpp/bindings/sync_call_restrictions.h"
12 #include "mojo/public/cpp/system/platform_handle.h" 10 #include "mojo/public/cpp/system/platform_handle.h"
13 #include "services/service_manager/public/cpp/connector.h" 11 #include "services/service_manager/public/cpp/connector.h"
14 #include "services/ui/common/switches.h"
15 #include "services/ui/public/cpp/gpu/mojo_gpu_memory_buffer_manager.h" 12 #include "services/ui/public/cpp/gpu/mojo_gpu_memory_buffer_manager.h"
16 #include "services/ui/public/interfaces/constants.mojom.h" 13 #include "services/ui/public/interfaces/constants.mojom.h"
17 #include "services/ui/public/interfaces/gpu_service.mojom.h" 14 #include "services/ui/public/interfaces/gpu_service.mojom.h"
18 15
19 namespace ui { 16 namespace ui {
20 17
21 GpuService::GpuService(service_manager::Connector* connector, 18 GpuService::GpuService(service_manager::Connector* connector,
22 scoped_refptr<base::SingleThreadTaskRunner> task_runner) 19 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
23 : main_task_runner_(base::ThreadTaskRunnerHandle::Get()), 20 : main_task_runner_(base::ThreadTaskRunnerHandle::Get()),
24 io_task_runner_(std::move(task_runner)), 21 io_task_runner_(std::move(task_runner)),
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 MojoResult result = mojo::UnwrapSharedMemoryHandle( 144 MojoResult result = mojo::UnwrapSharedMemoryHandle(
148 std::move(handle), &platform_handle, &shared_memory_size, &readonly); 145 std::move(handle), &platform_handle, &shared_memory_size, &readonly);
149 if (result != MOJO_RESULT_OK) 146 if (result != MOJO_RESULT_OK)
150 return nullptr; 147 return nullptr;
151 DCHECK_EQ(shared_memory_size, size); 148 DCHECK_EQ(shared_memory_size, size);
152 149
153 return base::MakeUnique<base::SharedMemory>(platform_handle, readonly); 150 return base::MakeUnique<base::SharedMemory>(platform_handle, readonly);
154 } 151 }
155 152
156 } // namespace ui 153 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/gpu/gpu_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698