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

Unified Diff: mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.cc

Issue 1823833003: Take advantage of MojoGetBufferInformation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase and fix a type mismatch which the android build caught Created 4 years, 9 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: mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.cc
diff --git a/mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.cc b/mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.cc
index 180577c12682ea878d43a69ee8c74de40cb0ec55..abf23f45d233306b01d51e23008941eab62d6575 100644
--- a/mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.cc
+++ b/mojo/services/media/common/cpp/circular_buffer_media_pipe_adapter.cc
@@ -115,9 +115,7 @@ void CircularBufferMediaPipeAdapter::Init(uint64_t size) {
return;
}
- // TODO(johngro) : We should not have to send the buffer size, it should be an
- // intrinsic property of the buffer itself and be query-able via the handle.
- pipe_->SetBuffer(duplicated_handle.Pass(), buffer_size_, []() {});
+ pipe_->SetBuffer(duplicated_handle.Pass(), []() {});
}
void CircularBufferMediaPipeAdapter::SetSignalCallback(SignalCbk cbk) {

Powered by Google App Engine
This is Rietveld 408576698