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

Unified Diff: content/common/media/video_capture_messages.h

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/common/media/video_capture_messages.h
diff --git a/content/common/media/video_capture_messages.h b/content/common/media/video_capture_messages.h
index c3970df76f80592a0f389077d5db1c43d53ec9db..8778eb8360d0f58a78551f0d5045e56654d8ee14 100644
--- a/content/common/media/video_capture_messages.h
+++ b/content/common/media/video_capture_messages.h
@@ -89,10 +89,13 @@ IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop,
// Tell the browser process that the renderer has finished reading from
// a buffer previously delivered by VideoCaptureMsg_BufferReady.
+// Define SyncPoints so that macro compiler considers std::map as one argument.
+// See http://www.boost.org/doc/libs/1_48_0/doc/html/foreach/pitfalls.html
+typedef std::map<uintptr_t, uint32> SyncPoints;
IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady,
int /* device_id */,
int /* buffer_id */,
- std::vector<uint32> /* syncpoints */)
+ SyncPoints)
// Get the formats supported by a device referenced by |capture_session_id|.
IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats,

Powered by Google App Engine
This is Rietveld 408576698