OLD | NEW |
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 "chrome/gpu/gpu_arc_video_service.h" | 5 #include "chrome/gpu/gpu_arc_video_service.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "chrome/gpu/arc_gpu_video_decode_accelerator.h" | 14 #include "chrome/gpu/arc_gpu_video_decode_accelerator.h" |
15 #include "chrome/gpu/arc_video_accelerator.h" | 15 #include "chrome/gpu/arc_video_accelerator.h" |
16 #include "components/arc/common/video_accelerator.mojom.h" | 16 #include "components/arc/common/video_accelerator.mojom.h" |
17 #include "mojo/edk/embedder/embedder.h" | 17 #include "mojo/edk/embedder/embedder.h" |
18 #include "mojo/public/cpp/bindings/binding.h" | 18 #include "mojo/public/cpp/bindings/binding.h" |
19 #include "mojo/public/cpp/bindings/type_converter.h" | 19 #include "mojo/public/cpp/bindings/type_converter.h" |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 | 22 |
23 template <> | 23 template <> |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 callback.Run(mojo::ScopedHandle(mojo::Handle(wrapped_handle)), token); | 257 callback.Run(mojo::ScopedHandle(mojo::Handle(wrapped_handle)), token); |
258 } | 258 } |
259 | 259 |
260 void GpuArcVideoService::RemoveClient(AcceleratorStub* stub) { | 260 void GpuArcVideoService::RemoveClient(AcceleratorStub* stub) { |
261 accelerator_stubs_.erase(stub); | 261 accelerator_stubs_.erase(stub); |
262 } | 262 } |
263 | 263 |
264 } // namespace arc | 264 } // namespace arc |
265 } // namespace chromeos | 265 } // namespace chromeos |
OLD | NEW |