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

Unified Diff: chrome/gpu/arc_gpu_video_decode_accelerator.cc

Issue 2843113002: make base::SharedMemoryHandle a class on POSIX. (Closed)
Patch Set: Fix test error. Created 3 years, 8 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 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 32e7ad7f38be370e4145078460769e8ee1449f6f..d0212aef014d6768ec1769fef8950d00650ab180 100644
--- a/chrome/gpu/arc_gpu_video_decode_accelerator.cc
+++ b/chrome/gpu/arc_gpu_video_decode_accelerator.cc
@@ -296,7 +296,8 @@ void ArcGpuVideoDecodeAccelerator::UseBuffer(PortType port,
}
CreateInputRecord(bitstream_buffer_id, index, metadata.timestamp);
vda_->Decode(media::BitstreamBuffer(
- bitstream_buffer_id, base::SharedMemoryHandle(dup_fd, true),
+ bitstream_buffer_id,
+ base::SharedMemoryHandle(base::FileDescriptor(dup_fd, true)),
metadata.bytes_used, input_info->offset));
break;
}

Powered by Google App Engine
This is Rietveld 408576698