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

Issue 1412673006: Transform ImagePreReader into PreReadFile. (Closed)

Created:
5 years, 1 month ago by fdoray
Modified:
5 years, 1 month ago
CC:
chromium-reviews, Roger McFarlane (Chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@a_get_module_path
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transform ImagePreReader into PreReadFile. We can reduce startup time by pre-reading different non-PE files (e.g. ChromeDWriteFontCache, GPU cache, resources). This CL transforms ImagePreReader into PreReadFile, which can pre-read any file type on Vista+. On XP, PreReadFile can only pre-read PE files. BUG=547794

Patch Set 1 #

Patch Set 2 : git cl format #

Total comments: 16

Patch Set 3 : rebase #

Patch Set 4 : grt comments #3 #

Patch Set 5 : fix style #

Total comments: 24

Patch Set 6 : grt comments #9 (style) #

Patch Set 7 : fix compile error. #

Total comments: 4

Patch Set 8 : grt comments #12 (nits) #

Patch Set 9 : Use LoadLibraryEx on XP. #

Patch Set 10 : Fix comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -504 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
A chrome/app/file_pre_reader_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/app/file_pre_reader_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +104 lines, -0 lines 3 comments Download
D chrome/app/image_pre_reader_win.h View 1 chunk +0 lines, -73 lines 0 comments Download
D chrome/app/image_pre_reader_win.cc View 1 chunk +0 lines, -419 lines 0 comments Download
M chrome/app/main_dll_loader_win.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
fdoray
grt@: Could you review this CL? CC: rogerm@, with who I discussed this change offline.
5 years, 1 month ago (2015-10-28 16:59:14 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/1412673006/diff/20001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1412673006/diff/20001/chrome/app/file_pre_reader_win.cc#newcode35 chrome/app/file_pre_reader_win.cc:35: volatile uint8 const* touch_ptr = reinterpret_cast<uint8 const*>(base_addr); uint8_t here ...
5 years, 1 month ago (2015-10-29 19:15:07 UTC) #3
fdoray
grt@: All done. Could you take another look? +jochen@: Could you review chrome/BUILD.gn? Thanks. https://codereview.chromium.org/1412673006/diff/20001/chrome/app/file_pre_reader_win.cc ...
5 years, 1 month ago (2015-10-30 21:08:54 UTC) #5
grt (UTC plus 2)
looks great. down to nits. https://codereview.chromium.org/1412673006/diff/80001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1412673006/diff/80001/chrome/app/file_pre_reader_win.cc#newcode20 chrome/app/file_pre_reader_win.cc:20: DCHECK(base_addr != NULL); DCHECK(base_addr); ...
5 years, 1 month ago (2015-11-03 04:02:15 UTC) #9
jochen (gone - plz use gerrit)
BUILD.gn lgtm
5 years, 1 month ago (2015-11-03 07:23:26 UTC) #10
fdoray
grt@: Done. Could you take another look? Thanks. https://codereview.chromium.org/1412673006/diff/80001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1412673006/diff/80001/chrome/app/file_pre_reader_win.cc#newcode20 chrome/app/file_pre_reader_win.cc:20: DCHECK(base_addr ...
5 years, 1 month ago (2015-11-03 21:23:39 UTC) #11
grt (UTC plus 2)
lgtm w/ a nit and a question https://codereview.chromium.org/1412673006/diff/80001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1412673006/diff/80001/chrome/app/file_pre_reader_win.cc#newcode67 chrome/app/file_pre_reader_win.cc:67: while (file.ReadAtCurrentPos(buffer, ...
5 years, 1 month ago (2015-11-03 21:32:51 UTC) #12
fdoray
grt@: Done. Thanks for the review. Committing... https://codereview.chromium.org/1412673006/diff/120001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1412673006/diff/120001/chrome/app/file_pre_reader_win.cc#newcode65 chrome/app/file_pre_reader_win.cc:65: while (file.ReadAtCurrentPos(reinterpret_cast<char*>(buffer), ...
5 years, 1 month ago (2015-11-03 22:09:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412673006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412673006/140001
5 years, 1 month ago (2015-11-03 22:10:59 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 1 month ago (2015-11-04 00:51:51 UTC) #17
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/031ed3ba5d22e04d7f8ad3641aed82bc9c17f8ae Cr-Commit-Position: refs/heads/master@{#357689}
5 years, 1 month ago (2015-11-04 00:52:38 UTC) #18
fdoray
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1411683010/ by fdoray@chromium.org. ...
5 years, 1 month ago (2015-11-05 04:38:48 UTC) #19
fdoray
grt@: Could you review my changes to this CL? Thanks. The first version caused a ...
5 years, 1 month ago (2015-11-10 19:00:07 UTC) #22
grt (UTC plus 2)
looks good. one question and a pair of suggestions. https://codereview.chromium.org/1412673006/diff/180001/chrome/app/file_pre_reader_win.cc File chrome/app/file_pre_reader_win.cc (right): https://codereview.chromium.org/1412673006/diff/180001/chrome/app/file_pre_reader_win.cc#newcode75 chrome/app/file_pre_reader_win.cc:75: ...
5 years, 1 month ago (2015-11-10 19:29:10 UTC) #23
jochen (gone - plz use gerrit)
could you please use a new CL for the reland? That way, the tool can ...
5 years, 1 month ago (2015-11-10 19:51:28 UTC) #24
fdoray
5 years, 1 month ago (2015-11-10 20:25:10 UTC) #26
Message was sent while issue was closed.
Closing the CL. Continuing the review on a new CL, as requested by jochen@:
https://codereview.chromium.org/1432973004/

Powered by Google App Engine
This is Rietveld 408576698