• kylechar's avatar
    Fix cc_unittests with surface sync enabled. · c93bd3f6
    kylechar authored
    By default LayerTreeSettings::enable_surface_synchronization was false.
    Most cc_unittests were running with the default. This CL switches the
    default to true and fixes most tests.
    
    The primary change for tests is with regards to LocalSurfaceId
    allocation. With surface sync off LocalSurfaceIds would be allocated
    automatically. With surface sync on the test has to ensure new
    LocalSurfaceIds are allocated at the correct time.
    
    Bug: 985009
    Change-Id: I9bd62da2b96f9eddb4ea85656c61364c0ee5ada8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1774309
    Commit-Queue: kylechar <kylechar@chromium.org>
    Reviewed-by: default avatarSaman Sami <samans@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#692220}
    c93bd3f6
layer_tree_host_unittest_picture.cc 23.6 KB