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

Side by Side Diff: content/common/gpu/media/gpu_arc_video_service.h

Issue 1567623006: Implement GpuArcVideoService::AcceleratorStub using mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@arc-1-video-service
Patch Set: rebase, update interface Created 4 years, 11 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
« no previous file with comments | « content/common/gpu/media/DEPS ('k') | content/common/gpu/media/gpu_arc_video_service.cc » ('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 #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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/media/DEPS ('k') | content/common/gpu/media/gpu_arc_video_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698