• Fady Samuel's avatar
    Surface synchronization: Fix deadline setting · 31113ef2
    Fady Samuel authored
    Prior to this patch, if BeginFrameSource::AddObserver is slow, it's
    possible for SurfaceDependencyDeadline::Set to return true (there is a
    deadline) whereas SurfaceDependencyDeadline::has_deadline would return
    false because the deadline passed before Set returned. This CL changes
    the return value of Set to be has_deadline(). If a deadline hits before
    Set returns then Set will now return false.
    
    Bug: 813030, 672962
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: I43ca97c57d8da4c915c54a8e97bb2ff5bc07bd87
    Reviewed-on: https://chromium-review.googlesource.com/925447Reviewed-by: default avatarSaman Sami <samans@chromium.org>
    Commit-Queue: Fady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#537784}
    31113ef2
BUILD.gn 12.1 KB