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

Unified Diff: content/renderer/pepper/pepper_media_stream_track_host_base.cc

Issue 414643003: Support configuring the audio buffer duration in the Pepper MediaStream API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests! Created 6 years, 5 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/pepper/pepper_media_stream_track_host_base.cc
diff --git a/content/renderer/pepper/pepper_media_stream_track_host_base.cc b/content/renderer/pepper/pepper_media_stream_track_host_base.cc
index 9ad40a9cf08f8de9ce4f9839ae8a934b1fbc09d2..fa400bf2e5a3ecfe6a049d82070d5be291ef7daa 100644
--- a/content/renderer/pepper/pepper_media_stream_track_host_base.cc
+++ b/content/renderer/pepper/pepper_media_stream_track_host_base.cc
@@ -38,6 +38,8 @@ bool PepperMediaStreamTrackHostBase::InitBuffers(int32_t number_of_buffers,
static_cast<int32_t>(sizeof(ppapi::MediaStreamBuffer::Header)));
// Make each buffer 4 byte aligned.
base::CheckedNumeric<int32_t> buffer_size_aligned = buffer_size;
+ // TODO(amistry): "buffer size" should not == "buffer stride", in the same way
+ // that width != stride in an image buffer.
dmichael (off chromium) 2014/07/23 20:08:42 "should not"... do you mean "might not"?
Anand Mistry (off Chromium) 2014/07/24 01:28:28 Yes. Well, and logically, the two should probably
buffer_size_aligned += (4 - buffer_size % 4);
// TODO(penghuang): |HostAllocateSharedMemoryBuffer| uses sync IPC. We should

Powered by Google App Engine
This is Rietveld 408576698