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

Side by Side Diff: chrome/gpu/gpu_arc_video_service.h

Issue 2505733003: arc: enable use_new_wrapper_types for video_accelerator.mojom (Closed)
Patch Set: final rebase 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 | « chrome/gpu/arc_video_accelerator.h ('k') | chrome/gpu/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 CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ 5 #ifndef CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_
6 #define CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ 6 #define CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector>
9 10
10 #include "base/files/scoped_file.h" 11 #include "base/files/scoped_file.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "chrome/gpu/arc_video_accelerator.h" 13 #include "chrome/gpu/arc_video_accelerator.h"
13 #include "components/arc/common/video_accelerator.mojom.h" 14 #include "components/arc/common/video_accelerator.mojom.h"
14 #include "gpu/command_buffer/service/gpu_preferences.h" 15 #include "gpu/command_buffer/service/gpu_preferences.h"
15 16
16 namespace chromeos { 17 namespace chromeos {
17 namespace arc { 18 namespace arc {
18 19
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 mojo::ScopedHandle ashmem_handle, 56 mojo::ScopedHandle ashmem_handle,
56 uint32_t offset, 57 uint32_t offset,
57 uint32_t length) override; 58 uint32_t length) override;
58 void DeprecatedBindDmabuf(::arc::mojom::PortType port, 59 void DeprecatedBindDmabuf(::arc::mojom::PortType port,
59 uint32_t index, 60 uint32_t index,
60 mojo::ScopedHandle dmabuf_handle, 61 mojo::ScopedHandle dmabuf_handle,
61 int32_t stride) override; 62 int32_t stride) override;
62 void BindDmabuf(::arc::mojom::PortType port, 63 void BindDmabuf(::arc::mojom::PortType port,
63 uint32_t index, 64 uint32_t index,
64 mojo::ScopedHandle dmabuf_handle, 65 mojo::ScopedHandle dmabuf_handle,
65 mojo::Array<::arc::mojom::ArcVideoAcceleratorDmabufPlanePtr> 66 std::vector<::arc::mojom::ArcVideoAcceleratorDmabufPlanePtr>
66 dmabuf_planes) override; 67 dmabuf_planes) override;
67 void UseBuffer(::arc::mojom::PortType port, 68 void UseBuffer(::arc::mojom::PortType port,
68 uint32_t index, 69 uint32_t index,
69 ::arc::mojom::BufferMetadataPtr metadata) override; 70 ::arc::mojom::BufferMetadataPtr metadata) override;
70 void SetNumberOfOutputBuffers(uint32_t number) override; 71 void SetNumberOfOutputBuffers(uint32_t number) override;
71 void Flush() override; 72 void Flush() override;
72 void Reset() override; 73 void Reset() override;
73 74
74 base::ScopedFD UnwrapFdFromMojoHandle(mojo::ScopedHandle handle); 75 base::ScopedFD UnwrapFdFromMojoHandle(mojo::ScopedHandle handle);
75 76
76 base::ThreadChecker thread_checker_; 77 base::ThreadChecker thread_checker_;
77 78
78 gpu::GpuPreferences gpu_preferences_; 79 gpu::GpuPreferences gpu_preferences_;
79 std::unique_ptr<ArcVideoAccelerator> accelerator_; 80 std::unique_ptr<ArcVideoAccelerator> accelerator_;
80 ::arc::mojom::VideoAcceleratorServiceClientPtr client_; 81 ::arc::mojom::VideoAcceleratorServiceClientPtr client_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); 83 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService);
83 }; 84 };
84 85
85 } // namespace arc 86 } // namespace arc
86 } // namespace chromeos 87 } // namespace chromeos
87 88
88 #endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ 89 #endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/gpu/arc_video_accelerator.h ('k') | chrome/gpu/gpu_arc_video_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698