0
Files
src/tools
Benoît Lizé 294f5615cc [cc/tiles] Avoid thread hops when there is no raster required
During scrolling, it is very common to have a compositor frame that
needs no raster. This is the case for instance when the page is static,
and we do not need a new prepaint tile. In this case, we still add three
completion tasks to the task graph, and run them on the thread pool (on
a single thread, because they are NONCONCURRENT).

This CL runs the tasks directly if they are the only required
tasks. This saves quite a bit of overhead, and 2 thread hops (compositor
-> thread pool -> compositor) per frame. From local testing, this back
and forth often takes 800us-1ms even on a relatively simple page.

Change-Id: Ic889eddbc0d121770563fb6b0fa01f4194564972
Bug: 40419088
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6330735
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Reviewed-by: Victor Miura <vmiura@chromium.org>
Commit-Queue: Benoit Lize <lizeb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1431753}
2025-03-12 14:24:22 -07:00
..
2025-02-27 13:38:48 -08:00
2025-02-25 11:01:39 -08:00
2025-03-12 11:02:15 -07:00
2024-12-13 08:51:44 -08:00

Tools used during the build or running tests or sometimes just things that people have found useful while working on Chromium.