Chromium Code Reviews

Unified Diff: media/base/video_frame.cc

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 500842c51b77b8b1ef9f30c63cbac8a9a2ce0194..7ac322a0f8499c841152ec42514ebdf0886801c1 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -231,7 +231,7 @@ scoped_refptr<VideoFrame> VideoFrame::WrapExternalData(
base::TimeDelta timestamp) {
return WrapExternalStorage(format, STORAGE_UNOWNED_MEMORY, coded_size,
visible_rect, natural_size, data, data_size,
- timestamp, base::SharedMemory::NULLHandle(), 0);
+ timestamp, base::SharedMemoryHandle(), 0);
}
// static
@@ -925,7 +925,6 @@ VideoFrame::VideoFrame(VideoPixelFormat format,
coded_size_(coded_size),
visible_rect_(visible_rect),
natural_size_(natural_size),
- shared_memory_handle_(base::SharedMemory::NULLHandle()),
shared_memory_offset_(0),
timestamp_(timestamp),
unique_id_(g_unique_id_generator.GetNext()) {

Powered by Google App Engine