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

Unified Diff: content/renderer/media/video_capture_message_filter.cc

Issue 312803002: Android media: VideoFrame should not store so many sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make VideoFrame keep only one sync point per client Created 6 years, 6 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: content/renderer/media/video_capture_message_filter.cc
diff --git a/content/renderer/media/video_capture_message_filter.cc b/content/renderer/media/video_capture_message_filter.cc
index f58347baf43dcf96d8c31c662d9f52a04e42902a..a5e1652c65cd8d1b4259695726818a7cb7d678bc 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -115,7 +115,7 @@ void VideoCaptureMessageFilter::OnBufferCreated(
// to be returned.
base::SharedMemory::CloseHandle(handle);
Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, std::vector<uint32>()));
+ device_id, buffer_id, std::map<uintptr_t, uint32>()));
return;
}
@@ -135,7 +135,7 @@ void VideoCaptureMessageFilter::OnBufferReceived(
// Send the buffer back to Host in case it's waiting for all buffers
// to be returned.
Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, std::vector<uint32>()));
+ device_id, buffer_id, std::map<uintptr_t, uint32>()));
return;
}
@@ -157,7 +157,7 @@ void VideoCaptureMessageFilter::OnMailboxBufferReceived(
// Send the buffer back to Host in case it's waiting for all buffers
// to be returned.
Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, std::vector<uint32>()));
+ device_id, buffer_id, std::map<uintptr_t, uint32>()));
return;
}

Powered by Google App Engine
This is Rietveld 408576698