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

Unified Diff: chrome/gpu/arc_gpu_video_decode_accelerator.cc

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
Index: chrome/gpu/arc_gpu_video_decode_accelerator.cc
diff --git a/chrome/gpu/arc_gpu_video_decode_accelerator.cc b/chrome/gpu/arc_gpu_video_decode_accelerator.cc
index 7b66321fd3a239e3ab835dc5d71dc2c349d43a02..d489cea1446553e70055799248ce3900d00f3a0d 100644
--- a/chrome/gpu/arc_gpu_video_decode_accelerator.cc
+++ b/chrome/gpu/arc_gpu_video_decode_accelerator.cc
@@ -186,7 +186,8 @@ void ArcGpuVideoDecodeAccelerator::BindSharedMemory(PortType port,
bool ArcGpuVideoDecodeAccelerator::VerifyDmabuf(
const base::ScopedFD& dmabuf_fd,
- const std::vector<DmabufPlane>& dmabuf_planes) const {
+ const std::vector<::arc::ArcVideoAcceleratorDmabufPlane>& dmabuf_planes)
+ const {
size_t num_planes = media::VideoFrame::NumPlanes(output_pixel_format_);
if (dmabuf_planes.size() != num_planes) {
DLOG(ERROR) << "Invalid number of dmabuf planes passed: "
@@ -226,7 +227,7 @@ void ArcGpuVideoDecodeAccelerator::BindDmabuf(
PortType port,
uint32_t index,
base::ScopedFD dmabuf_fd,
- const std::vector<DmabufPlane>& dmabuf_planes) {
+ const std::vector<::arc::ArcVideoAcceleratorDmabufPlane>& dmabuf_planes) {
DCHECK(thread_checker_.CalledOnValidThread());
if (!vda_) {

Powered by Google App Engine
This is Rietveld 408576698