• Khushal's avatar
    cc: Decode discardable images in PaintRecord backed shaders. · 576bda00
    Khushal authored
    For PaintRecord backed shaders, the rasterization is done internally in
    skia, which means images present in these shaders are not pre-decoded
    by compositor's decode cache. This change ensures that we capture these
    images during discardable image analysis, and replace them with decoded
    images from the compositor's cache.
    
    Replacing of these images requires transforming the PaintRecords in
    these shaders to SkPictures with decoded images before executing the op
    with the shader.
    
    Bug: 735741, 728359
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
    Change-Id: Ie9314e566eaeb1a393c7490e6309d1315ec3733e
    Reviewed-on: https://chromium-review.googlesource.com/673826
    Commit-Queue: Khushal <khushalsagar@chromium.org>
    Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
    Reviewed-by: default avatarenne <enne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#504860}
    576bda00
paint_shader.h 5.89 KB