• kylechar's avatar
    Always update surface references. · 1be23e1d
    kylechar authored
    This CL ensures that if the set of referenced surfaces from the active
    tree changes then a new CompositorFrame will be submitted. Before this
    CL LayerTreeHostImpl didn't look at referenced surfaces in HasDamage()
    so if there is no other damage then it will skip submitting a
    CompositorFrame.
    
    For this to happen the SurfaceLayer can't be visible, as updating the
    fallback SurfaceId will otherwise contribute to the damage rect.
    
    Bug: 854798
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Id3f196bc151d6118e31c51f2bedc62fc773ee65f
    Reviewed-on: https://chromium-review.googlesource.com/1114066Reviewed-by: default avatarenne <enne@chromium.org>
    Commit-Queue: kylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#570177}
    1be23e1d
layer_tree_host_impl.cc 211 KB