• Mason Freed's avatar
    Clip backdrop_filter input rect to the device viewport · 25d111bb
    Mason Freed authored
    Prior to this CL, the entire parent surface was read back to form the
    input for the backdrop-filter. In some cases (e.g. crbug.com/993971),
    that parent surface was very large, resulting in very large readbacks,
    and poor performance. With this CL, which is a perf optimization, the
    readback rect is intersected with the device viewport (expanded for
    pixel moving filters) prior to readback. Pixels outside of the
    viewport will not contribute to the visible filtered content.
    
    Bug: 993971, 974789
    Change-Id: I429c8dcb335b264873b3a3671225d19162ecfe27
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761346
    Auto-Submit: Mason Freed <masonfreed@chromium.org>
    Reviewed-by: default avatarenne <enne@chromium.org>
    Commit-Queue: enne <enne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#689536}
    25d111bb
gl_renderer.cc 157 KB