• Eric Karl's avatar
    Process up to 10 draw ops for full-layer solid color analysis · 8efa3b7d
    Eric Karl authored
    Currently, we only process 1 draw op when checking if a layer is solid
    color, despite DisplayItemList::ShouldBeAnalyzedForSolidColor having
    a cutoff of 10.
    
    This change updates GetColorIfSolidInRect to take the number of ops to
    analyze, and causes RecordingSource::DetermineIfSolidColor to use a
    value of 10 for full-layer checks.
    
    R=vmpstr
    Bug:741219
    
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Id4b2a72994835d096ed0f4aad24deb663e90d459
    Reviewed-on: https://chromium-review.googlesource.com/567554
    Commit-Queue: Eric Karl <ericrk@chromium.org>
    Reviewed-by: default avatarVladimir Levin <vmpstr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#486567}
    8efa3b7d
display_item_list.h 6.5 KB