Surface synchronization: Fix deadline setting
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:Saman Sami <samans@chromium.org> Commit-Queue: Fady Samuel <fsamuel@chromium.org> Cr-Commit-Position: refs/heads/master@{#537784}
Showing
Please register or sign in to comment