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

Unified Diff: media/base/video_frame.cc

Issue 2849633002: Get rid of base::SharedMemory::NULLHandle(); (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | media/capture/content/thread_safe_capture_oracle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | media/capture/content/thread_safe_capture_oracle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698