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

Side by Side Diff: chrome/gpu/arc_video_accelerator.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 | « no previous file | chrome/gpu/gpu_arc_video_service.h » ('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_ARC_VIDEO_ACCELERATOR_H_ 5 #ifndef CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 6 #define CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 }; 71 };
72 72
73 DeviceType device_type = DEVICE_DECODER; 73 DeviceType device_type = DEVICE_DECODER;
74 size_t num_input_buffers = 0; 74 size_t num_input_buffers = 0;
75 uint32_t input_pixel_format = 0; 75 uint32_t input_pixel_format = 0;
76 // TODO(owenlin): Add output_pixel_format. For now only the native pixel 76 // TODO(owenlin): Add output_pixel_format. For now only the native pixel
77 // format of each VDA on Chromium is supported. 77 // format of each VDA on Chromium is supported.
78 }; 78 };
79 79
80 struct DmabufPlane { 80 struct DmabufPlane {
81 DmabufPlane(int32_t offset, int32_t stride)
82 : offset(offset), stride(stride) {}
81 int32_t offset; // in bytes 83 int32_t offset; // in bytes
82 int32_t stride; // in bytes 84 int32_t stride; // in bytes
83 }; 85 };
84 86
85 // The callbacks of the ArcVideoAccelerator. The user of this class should 87 // The callbacks of the ArcVideoAccelerator. The user of this class should
86 // implement this interface. 88 // implement this interface.
87 class Client { 89 class Client {
88 public: 90 public:
89 virtual ~Client() {} 91 virtual ~Client() {}
90 92
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // called. 159 // called.
158 virtual void Flush() = 0; 160 virtual void Flush() = 0;
159 161
160 virtual ~ArcVideoAccelerator() {} 162 virtual ~ArcVideoAccelerator() {}
161 }; 163 };
162 164
163 } // namespace arc 165 } // namespace arc
164 } // namespace chromeos 166 } // namespace chromeos
165 167
166 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_ 168 #endif // CHROME_GPU_ARC_VIDEO_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/gpu/gpu_arc_video_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698