gpu: Allow waiting on sync tokens without sync token client.
This CL adds SyncPointManager::Wait which takes a sync token and an
order number. This enables the upcoming gpu scheduler to wait on sync
tokens that a flush depends on without executing the flush. Such waits
are safe from deadlock if the order number of the message is used.
Misc cleanup in this CL:
1. Hide SyncPointClientState and instead use sync tokens for waiting.
2. The wait methods do not run the callback if the wait is invalid.
3. The cmd decoder wait sync token callback returns true on valid waits.
4. Added few more cmd buffer message types that don't need MakeCurrent.
5. Changed the sync point tests to use sync tokens everywhere.
[email protected]
BUG=514813
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2722883002
Cr-Commit-Position: refs/heads/master@{#454361}
22 files changed