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

Unified Diff: media/mojo/common/mojo_decoder_buffer_converter.cc

Issue 2371763003: Increase Mojo video buffer capacity to 3MB (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/mojo_decoder_buffer_converter.cc
diff --git a/media/mojo/common/mojo_decoder_buffer_converter.cc b/media/mojo/common/mojo_decoder_buffer_converter.cc
index 77cf82958442f2da14b1b933d88b2a929615c23c..d84ee810354a88cce0bca418ce4b815d37f7775b 100644
--- a/media/mojo/common/mojo_decoder_buffer_converter.cc
+++ b/media/mojo/common/mojo_decoder_buffer_converter.cc
@@ -29,10 +29,10 @@ std::unique_ptr<mojo::DataPipe> CreateDataPipe(DemuxerStream::Type type) {
// TODO(timav): Consider capacity calculation based on AudioDecoderConfig.
options.capacity_num_bytes = 512 * 1024;
} else if (type == DemuxerStream::VIDEO) {
- // Video can get quite large; at 4K, VP9 delivers packets which are ~1MB in
- // size; so allow for some head room.
+ // Video can get quite large; at 4K, VP9 delivers packets which are larger
xhwang 2016/09/27 16:38:12 nit: "which are larger than 2MB" sounds like all p
servolk 2016/09/27 17:05:18 Done.
+ // than 2MB in size; so allow for some head room.
// TODO(xhwang, sandersd): Provide a better way to customize this value.
- options.capacity_num_bytes = 2 * (1024 * 1024);
+ options.capacity_num_bytes = 3 * (1024 * 1024);
xhwang 2016/09/27 16:38:12 When it's 2MB, I wonder whether we will have perfo
servolk 2016/09/27 17:05:18 AFAIR IPC performance has never been a performance
} else {
NOTREACHED() << "Unsupported type: " << type;
// Choose an arbitrary size.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698