[cc/metrics] De-flake a test.
The test wants to send a begin-main-frame for every frame. However, posting a task on the main-thread to request 'begin main frame' can be too slow in some configs (e.g. in asan/tsan etc. builds). There is a more direct way of forcing a 'begin main frame' to be issued directly from the compositor thread through LayerTreeHostImpl. So use that to have a more deterministic behaviour. BUG=1115376 Change-Id: I9ba0304be6f271f9b8025bcd2d82ce1470e9fd38 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2383313 Auto-Submit: Sadrul Chowdhury <sadrul@chromium.org> Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#803191}
Showing
Please register or sign in to comment