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

Issue 178473022: MTP Streaming: Readahead Buffer (Closed)

Created:
6 years, 9 months ago by tommycli
Modified:
6 years, 9 months ago
CC:
chromium-reviews, tzik, Lei Zhang, nhiroki, tommycli, Greg Billock, kinuko+watch
Visibility:
Public.

Description

MTP Streaming: Readahead Buffer BUG=110119 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255210

Patch Set 1 : #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 20

Patch Set 4 : address vandebo comments (except reusable bufs) #

Patch Set 5 : #

Patch Set 6 : this patchset allows memory reuse #

Total comments: 10

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : change kDesiredNumberOfBuffers to unsigned #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -2 lines) Patch
M chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc View 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +146 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
tommycli
vandebo: I've tested this and it works, but the code feels kind of janky. Improvement ...
6 years, 9 months ago (2014-03-03 21:06:45 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode52 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:52: // We are waiting for an underlying read to ...
6 years, 9 months ago (2014-03-03 22:24:53 UTC) #2
tommycli
underlying->source made interpatch diff looks horrific, sry https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode52 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:52: // We ...
6 years, 9 months ago (2014-03-04 00:39:40 UTC) #3
vandebo (ex-Chrome)
Take or leave my comments, not sure all of them apply together. https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc ...
6 years, 9 months ago (2014-03-04 18:51:31 UTC) #4
tommycli
https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/50001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode96 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:96: scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kBufferSize)); On 2014/03/04 18:51:32, vandebo wrote: > ...
6 years, 9 months ago (2014-03-04 21:14:58 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/178473022/diff/110001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/110001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode150 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:150: DCHECK_NE(net::ERR_IO_PENDING, result); What happens if you exhaust the current ...
6 years, 9 months ago (2014-03-04 21:55:12 UTC) #6
tommycli
https://codereview.chromium.org/178473022/diff/110001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/110001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode150 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:150: DCHECK_NE(net::ERR_IO_PENDING, result); On 2014/03/04 21:55:12, vandebo wrote: > What ...
6 years, 9 months ago (2014-03-04 23:03:43 UTC) #7
vandebo (ex-Chrome)
https://codereview.chromium.org/178473022/diff/130001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/130001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode18 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:18: const int kDesiredNumberOfBuffers = 2; // So we are ...
6 years, 9 months ago (2014-03-05 17:31:30 UTC) #8
tommycli
https://codereview.chromium.org/178473022/diff/130001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc File chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc (right): https://codereview.chromium.org/178473022/diff/130001/chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc#newcode18 chrome/browser/media_galleries/fileapi/readahead_file_stream_reader.cc:18: const int kDesiredNumberOfBuffers = 2; // So we are ...
6 years, 9 months ago (2014-03-05 18:07:28 UTC) #9
tommycli
fixed up drainable io buffer usage
6 years, 9 months ago (2014-03-05 18:34:00 UTC) #10
vandebo (ex-Chrome)
LGTM
6 years, 9 months ago (2014-03-05 18:35:13 UTC) #11
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 9 months ago (2014-03-05 18:35:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/178473022/240001
6 years, 9 months ago (2014-03-05 18:36:43 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 18:42:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-05 18:42:17 UTC) #15
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 9 months ago (2014-03-05 18:47:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/178473022/240001
6 years, 9 months ago (2014-03-05 18:52:35 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 19:46:16 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel Retried try job too often on linux_rel for ...
6 years, 9 months ago (2014-03-05 19:46:17 UTC) #19
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 9 months ago (2014-03-05 19:58:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/178473022/260001
6 years, 9 months ago (2014-03-05 19:58:08 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 22:03:42 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=275634
6 years, 9 months ago (2014-03-05 22:03:43 UTC) #23
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 9 months ago (2014-03-05 22:25:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/178473022/260001
6 years, 9 months ago (2014-03-05 22:26:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/178473022/260001
6 years, 9 months ago (2014-03-06 00:06:30 UTC) #26
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 01:50:35 UTC) #27
Message was sent while issue was closed.
Change committed as 255210

Powered by Google App Engine
This is Rietveld 408576698