[scheduler] Fix DCHECK failing due to QueueType::kWebScheduling not included as per-frame.
QueueType::kWebScheduling was recently added for the scheduling API and these task queues are per-frame. These task queues aren't used outside of unit tests yet, so this DCHECK won't affect chrome builds, but it is failing locally causing flakiness in scheduling API wpt tests. This CL adds a separate IsPerFrameTaskQueue() method with a switch so adding future QueueTypes cause a compile error if the test isn't updated. Bug: 984057 Change-Id: If2ac727f63d26ae3998e8dddccbf39c9b680151e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724896Reviewed-by:Alexander Timin <altimin@chromium.org> Commit-Queue: Scott Haseley <shaseley@chromium.org> Cr-Commit-Position: refs/heads/master@{#682302}
Showing
Please register or sign in to comment