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

Unified Diff: chrome/gpu/arc_gpu_video_decode_accelerator.h

Issue 2513973002: Use mojo typemap to simplify the code using DmabufPlane (Closed)
Patch Set: Addressed comments Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/gpu/DEPS ('k') | chrome/gpu/arc_gpu_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/arc_gpu_video_decode_accelerator.h
diff --git a/chrome/gpu/arc_gpu_video_decode_accelerator.h b/chrome/gpu/arc_gpu_video_decode_accelerator.h
index c1706af94e884b6eee158f2187e45c577744252e..917be53847734bed561f64ed9d01ff3a661d850d 100644
--- a/chrome/gpu/arc_gpu_video_decode_accelerator.h
+++ b/chrome/gpu/arc_gpu_video_decode_accelerator.h
@@ -45,7 +45,8 @@ class ArcGpuVideoDecodeAccelerator
void BindDmabuf(PortType port,
uint32_t index,
base::ScopedFD dmabuf_fd,
- const std::vector<DmabufPlane>& dmabuf_planes) override;
+ const std::vector<::arc::ArcVideoAcceleratorDmabufPlane>&
+ dmabuf_planes) override;
void UseBuffer(PortType port,
uint32_t index,
const BufferMetadata& metadata) override;
@@ -98,7 +99,7 @@ class ArcGpuVideoDecodeAccelerator
// The information about the dmabuf used as an output buffer.
struct OutputBufferInfo {
base::ScopedFD handle;
- std::vector<DmabufPlane> planes;
+ std::vector<::arc::ArcVideoAcceleratorDmabufPlane> planes;
OutputBufferInfo();
OutputBufferInfo(OutputBufferInfo&& other);
@@ -115,7 +116,8 @@ class ArcGpuVideoDecodeAccelerator
// Return true if |dmabuf_planes| is valid for a dmabuf |fd|.
bool VerifyDmabuf(const base::ScopedFD& fd,
- const std::vector<DmabufPlane>& dmabuf_planes) const;
+ const std::vector<::arc::ArcVideoAcceleratorDmabufPlane>&
+ dmabuf_planes) const;
// Creates an InputRecord for the given |bitstream_buffer_id|. The
// |buffer_index| is the index of the associated input buffer. The |timestamp|
« no previous file with comments | « chrome/gpu/DEPS ('k') | chrome/gpu/arc_gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698