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

Issue 2456653002: Revert of Improve linearized pdf load/show time. (Closed)

Created:
4 years, 1 month ago by Lei Zhang
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Improve linearized pdf load/show time. (patchset #1 id:1 of https://codereview.chromium.org/2449973004/ ) Reason for revert: Still breaks the tree. The initial revert failed due to funny merging by the CQ in reaction to r427683. Original issue's description: > Reland of Improve linearized pdf load/show time. (patchset #1 id:1 of https://codereview.chromium.org/2458493002/ ) > > Reason for revert: > As suggested FindIt, this reverting CL is also causing the tree closure. > > Original issue's description: > > Revert of Improve linearized pdf load/show time. (patchset #18 id:340001 of https://codereview.chromium.org/2349753003/ ) > > > > Reason for revert: > > https://build.chromium.org/p/chromium/builders/Win%20x64/builds/5423/steps/compile/logs/stdio > > > > FAILED: obj/pdf/pdf_unittests/document_loader_unittest.obj > > pdf\document_loader_unittest.cc(631): error C2131: expression did not evaluate to a constant > > pdf\document_loader_unittest.cc(631): note: failure was caused by call of undefined function or one not declared 'constexpr' > > pdf\document_loader_unittest.cc(631): note: see usage of 'chrome_pdf::DocumentLoader::default_request_size' > > > > > > Original issue's description: > > > Improve linearized pdf load/show time. > > > Reduce Pdf Plugin's count of reconnects. > > > Add tests for PDFPlugin DocumentLoader. > > > > > > DocumentLoader was splitted into separate components, and missing tests was added for them. > > > > > > The main ideas in this CL are: > > > > > > 1) Do not reset browser initiated connection at start (includes case when we can use range requests), if we request data near current downloading position. > > > 2) Request as much data as we can on each request, and continue loading data using current range request. (like tape rewind) > > > 3) Isolate RangeRequest logic into DocumentLoader. Method OnPendingRequestComplete is called, when we receive requested data (main connection, or Range connection). (like tape playing without rewing). > > > 4) Fill this logic by tests. > > > > > > Example URL: > > > http://www.major-landrover.ru/upload/attachments/f/9/f96aab07dab04ae89c8a509ec1ef2b31.pdf > > > Comparison of changes: > > > https://drive.google.com/file/d/0BzWfMBOuik2QNGg0SG93Y3lpUlE/view?usp=sharing > > > > > > Committed: https://crrev.com/7fd7423cdee0dba84faf480d10dd66dcb57110d9 > > > Cr-Commit-Position: refs/heads/master@{#427752} > > > > TBR=jochen@chromium.org,raymes@chromium.org,spelchat@chromium.org,rsesek@chromium.org,art-snake@yandex-team.ru > > # Skipping CQ checks because original CL landed less than 1 days ago. > > NOPRESUBMIT=true > > NOTREECHECKS=true > > NOTRY=true > > TBR=jochen@chromium.org,raymes@chromium.org,spelchat@chromium.org,rsesek@chromium.org,art-snake@yandex-team.ru,thestig@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > > Committed: https://crrev.com/47b9a19cb7219538a26e0f1388fd01adac709b98 > Cr-Commit-Position: refs/heads/master@{#427782} TBR=jochen@chromium.org,raymes@chromium.org,spelchat@chromium.org,rsesek@chromium.org,art-snake@yandex-team.ru,hongchan@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Committed: https://crrev.com/ca52440d2d589e2ec18c590f8462bee38a11da09 Cr-Commit-Position: refs/heads/master@{#427784}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+796 lines, -3039 lines) Patch
M pdf/BUILD.gn View 4 chunks +1 line, -29 lines 0 comments Download
M pdf/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M pdf/chunk_stream.h View 1 chunk +24 lines, -81 lines 0 comments Download
A pdf/chunk_stream.cc View 1 chunk +175 lines, -0 lines 0 comments Download
D pdf/chunk_stream_unittest.cc View 1 chunk +0 lines, -99 lines 0 comments Download
M pdf/document_loader.h View 3 chunks +62 lines, -48 lines 0 comments Download
M pdf/document_loader.cc View 4 chunks +443 lines, -289 lines 0 comments Download
D pdf/document_loader_unittest.cc View 1 chunk +0 lines, -1184 lines 0 comments Download
M pdf/out_of_process_instance.h View 1 chunk +0 lines, -1 line 0 comments Download
M pdf/out_of_process_instance.cc View 2 chunks +9 lines, -6 lines 0 comments Download
M pdf/pdf_engine.h View 2 chunks +2 lines, -3 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 4 chunks +6 lines, -11 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 16 chunks +74 lines, -92 lines 0 comments Download
M pdf/preview_mode_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M pdf/preview_mode_client.cc View 1 chunk +0 lines, -2 lines 0 comments Download
D pdf/range_set.h View 1 chunk +0 lines, -77 lines 0 comments Download
D pdf/range_set.cc View 1 chunk +0 lines, -253 lines 0 comments Download
D pdf/range_set_unittest.cc View 1 chunk +0 lines, -303 lines 0 comments Download
D pdf/run_all_unittests.cc View 1 chunk +0 lines, -24 lines 0 comments Download
D pdf/timer.h View 1 chunk +0 lines, -35 lines 0 comments Download
D pdf/timer.cc View 1 chunk +0 lines, -31 lines 0 comments Download
D pdf/url_loader_wrapper.h View 1 chunk +0 lines, -62 lines 0 comments Download
D pdf/url_loader_wrapper_impl.h View 1 chunk +0 lines, -89 lines 0 comments Download
D pdf/url_loader_wrapper_impl.cc View 1 chunk +0 lines, -318 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Lei Zhang
Created Revert of Improve linearized pdf load/show time.
4 years, 1 month ago (2016-10-26 20:42:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456653002/1
4 years, 1 month ago (2016-10-26 20:43:42 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-26 20:45:10 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/ca52440d2d589e2ec18c590f8462bee38a11da09 Cr-Commit-Position: refs/heads/master@{#427784}
4 years, 1 month ago (2016-10-26 20:47:07 UTC) #6
findit-for-me
4 years, 1 month ago (2016-10-26 20:54:21 UTC) #7
Message was sent while issue was closed.
FYI: Findit identified this CL at revision 427784 as the culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698