|
Use multiple PrepareTiles approaches
PRIORITIZE_LATENCY:
What we have before the patch.
This approach calls PrepareTiles after every commit and after draws if
there wasn't a commit for that frame. With this approach, we cannot trust
NotifyReadyToActivate and NotifyReadyToDraw and they should only be used
as hints. All other approaches have trustworthy NotifyReadyToActivate's
and NotifyReadyToDraw's.
Goes to ACTIVE_WORK on first checkerboard detection.
ACCURATE_ACTIVE_WORK:
This approach only calls PrepareTiles at the start of a frame so new
active tree work starts ASAP, but the pending tree work doesn't.
Goes back to PRIORITIZE_LATENCY on idle.
The following major changes were needed to support this:
* PrepareTiles only initiated by the scheduler now.
* New DrawResult for when raster source for visible tile is missing.
* DrawAndSwapForced return value was ignored.
* DrawAndSwapIfPossible always fails on checkerboard now.
* Scheduler uses DrawAndSwapForced if it really wants to checkerboard.
* Scheduler decides how to handle high res required to draw.
* Update action after actually running it for DrawResult.
* Forced redraw logic removed.
* Deadline repost on aborted draw due to checkerboards.
BUG= 486072, 475639
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Total comments: 4
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+503 lines, -294 lines) |
Patch |
|
M |
cc/layers/append_quads_data.h
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
cc/layers/picture_layer_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+15 lines, -8 lines |
0 comments
|
Download
|
|
M |
cc/layers/picture_layer_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/draw_result.h
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/scheduler.h
|
View
|
1
2
3
4
|
5 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/scheduler.cc
|
View
|
1
2
3
4
5
6
|
11 chunks |
+58 lines, -12 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/scheduler_settings.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/scheduler_settings.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/scheduler_state_machine.h
|
View
|
1
2
3
4
5
|
9 chunks |
+73 lines, -24 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/scheduler_state_machine.cc
|
View
|
1
2
3
4
5
6
|
31 chunks |
+262 lines, -156 lines |
0 comments
|
Download
|
|
M |
cc/test/fake_layer_tree_host_impl_client.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
cc/tiles/picture_layer_tiling.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/tiles/picture_layer_tiling.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/tiles/tile_manager_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl.h
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
2
3
4
5
6
|
11 chunks |
+42 lines, -30 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_unittest_animation.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_settings.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_settings.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
cc/trees/single_thread_proxy.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/trees/single_thread_proxy.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
|
M |
cc/trees/thread_proxy.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/trees/thread_proxy.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+7 lines, -14 lines |
0 comments
|
Download
|
Total messages: 9 (1 generated)
|