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

Side by Side Diff: components/arc/video_accelerator/video_accelerator_struct_traits.h

Issue 2919193002: ArcBridge: Rename VideoAcceleratorService to VideoDecodeAccelerator. (Closed)
Patch Set: Address review comments Created 3 years, 6 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 | « components/arc/common/video_decode_accelerator.mojom ('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 #ifndef COMPONENTS_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_STRUCT_TRAITS_H_ 5 #ifndef COMPONENTS_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_STRUCT_TRAITS_H_
6 #define COMPONENTS_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_STRUCT_TRAITS_H_ 6 #define COMPONENTS_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_STRUCT_TRAITS_H_
7 7
8 #include "components/arc/common/video_accelerator.mojom.h" 8 #include "components/arc/common/video_decode_accelerator.mojom.h"
9 #include "components/arc/video_accelerator/video_accelerator.h" 9 #include "components/arc/video_accelerator/video_accelerator.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 template <> 13 template <>
14 struct StructTraits<arc::mojom::ArcVideoAcceleratorDmabufPlaneDataView, 14 struct StructTraits<arc::mojom::ArcVideoAcceleratorDmabufPlaneDataView,
15 arc::ArcVideoAcceleratorDmabufPlane> { 15 arc::ArcVideoAcceleratorDmabufPlane> {
16 static uint32_t offset(const arc::ArcVideoAcceleratorDmabufPlane& r) { 16 static uint32_t offset(const arc::ArcVideoAcceleratorDmabufPlane& r) {
17 DCHECK_GE(r.offset, 0); 17 DCHECK_GE(r.offset, 0);
18 return r.offset; 18 return r.offset;
19 } 19 }
20 20
21 static uint32_t stride(const arc::ArcVideoAcceleratorDmabufPlane& r) { 21 static uint32_t stride(const arc::ArcVideoAcceleratorDmabufPlane& r) {
22 DCHECK_GE(r.stride, 0); 22 DCHECK_GE(r.stride, 0);
23 return r.stride; 23 return r.stride;
24 } 24 }
25 25
26 static bool Read(arc::mojom::ArcVideoAcceleratorDmabufPlaneDataView data, 26 static bool Read(arc::mojom::ArcVideoAcceleratorDmabufPlaneDataView data,
27 arc::ArcVideoAcceleratorDmabufPlane* out); 27 arc::ArcVideoAcceleratorDmabufPlane* out);
28 }; 28 };
29 29
30 } // namespace mojo 30 } // namespace mojo
31 31
32 #endif // COMPONENTS_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_STRUCT_TRAITS_H_ 32 #endif // COMPONENTS_ARC_VIDEO_ACCELERATOR_VIDEO_ACCELERATOR_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « components/arc/common/video_decode_accelerator.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698