• K. Moon's avatar
    Control PDF incremental loading with a feature · d8480c91
    K. Moon authored
    Adds a "PdfIncrementalLoading" feature to control whether or not the PDF
    viewer tries to use incremental loading. The default state is enabled,
    as this feature has shipped already, but we would like to experiment
    with disabling it to address certain problems related to incremental
    loading.
    
    crrev.com/c/2349429 added a similar control for "partial" loading. The
    two features are orthogonal: Incremental loading tries to load a PDF
    before all the bytes have arrived, while partial loading tries to fetch
    the bytes out of order. (Partial loading currently is not useful without
    incremental loading, however.)
    
    The linearized.pdf file was derived from the equivalent file in
    third_party/pdfium/testing/resources. For the purposes of this test, the
    file has been relinearized and decompressed using qpdf.
    
    Bug: 1115149
    Change-Id: Ib9f9d3d66b9c5d051528a6d49b4662b70d236649
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352217
    Commit-Queue: K. Moon <kmoon@chromium.org>
    Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
    Reviewed-by: default avatarDaniel Hosseinian <dhoss@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#798225}
    d8480c91
pdf_features.h 817 Bytes