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 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
15 class WaitableEvent; | 15 class WaitableEvent; |
16 } | 16 } |
17 | 17 |
18 namespace IPC { | 18 namespace IPC { |
19 struct ChannelHandle; | 19 struct ChannelHandle; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
| 23 namespace arc { |
23 | 24 |
24 // GpuArcVideoService manages life-cycle and IPC message translation for | 25 // GpuArcVideoService manages life-cycle and IPC message translation for |
25 // ArcVideoAccelerator. | 26 // ArcVideoAccelerator. |
26 // | 27 // |
27 // For each creation request from GpuChannelManager, GpuArcVideoService will | 28 // For each creation request from GpuChannelManager, GpuArcVideoService will |
28 // create a new IPC channel. | 29 // create a new IPC channel. |
29 class GpuArcVideoService { | 30 class GpuArcVideoService { |
30 public: | 31 public: |
31 class AcceleratorStub; | 32 class AcceleratorStub; |
32 using CreateChannelCallback = base::Callback<void(const IPC::ChannelHandle&)>; | 33 using CreateChannelCallback = base::Callback<void(const IPC::ChannelHandle&)>; |
(...skipping 23 matching lines...) Expand all Loading... |
56 | 57 |
57 // GPU io thread task runner. | 58 // GPU io thread task runner. |
58 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 59 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
59 | 60 |
60 // Bookkeeping all accelerator stubs. | 61 // Bookkeeping all accelerator stubs. |
61 std::map<AcceleratorStub*, scoped_ptr<AcceleratorStub>> accelerator_stubs_; | 62 std::map<AcceleratorStub*, scoped_ptr<AcceleratorStub>> accelerator_stubs_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); | 64 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); |
64 }; | 65 }; |
65 | 66 |
| 67 } // namespace arc |
66 } // namespace content | 68 } // namespace content |
67 | 69 |
68 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_ | 70 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_ |
OLD | NEW |