|
cc: Use correct message loop proxy in BlockingTaskRunner
The compositor makes it possible to customize the message loop proxy
both on the main and impl threads. However BlockingTaskRunner just uses
base::MessageLoopProxy::current() directly and thus overrides this
choice. Using the correct message loop proxy is important because
clients of BlockingTaskRunner have an implicit dependency on the
ordering of tasks posted to BlockingTaskRunner vs. all other tasks
posted to the task runner for that same thread.
This patch fixes the problem by removing the thread-local
BlockingTaskRunner::current() instance in favor of an explicitly
constructed instance which is given a specific SingleThreadTaskRunner
to use. The resource provider is changed to pass a Proxy-owned
blocking task runner to the clients which need one.
BUG= 391005
TEST=1. Apply https://codereview.chromium.org/363383002
2. out/Debug/chrome --disable-impl-side-painting --ignore-gpu-blacklist tools/perf/page_sets/tough_scheduling_cases/raf_canvas.html
Committed: https://crrev.com/3976a3f8509145051ff2865ccba0fffe79fe32e6
Cr-Commit-Position: refs/heads/master@{#293353}
Total comments: 2
Total comments: 23
Total comments: 15
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+972 lines, -402 lines) |
Patch |
 |
M |
cc/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/cc.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/cc_tests.gyp
|
View
|
1
2
3
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_frame_resource_collection.h
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_frame_resource_collection.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_frame_resource_collection_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_renderer_layer.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/delegated_renderer_layer.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.h
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_impl.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/texture_layer_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
33 chunks |
+85 lines, -59 lines |
0 comments
|
Download
|
 |
M |
cc/layers/tiled_layer_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/layers/video_layer_impl.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/layers/video_layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer_unittest.cc
|
View
|
1
2
3
4
5
6
|
14 chunks |
+109 lines, -34 lines |
0 comments
|
Download
|
 |
M |
cc/output/overlay_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+16 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/output/renderer_pixeltest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/output/renderer_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/output/software_renderer_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/resources/picture_layer_tiling_perftest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/resources/picture_layer_tiling_set_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/resources/picture_layer_tiling_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/prioritized_resource_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/resources/prioritized_tile_set_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/resources/raster_worker_pool_perftest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/resources/raster_worker_pool_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
A |
cc/resources/release_callback_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
7 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+21 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_provider_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
49 chunks |
+286 lines, -99 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_update_controller_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/resources/return_callback.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/scoped_resource_unittest.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+32 lines, -8 lines |
0 comments
|
Download
|
 |
A |
cc/resources/single_release_callback_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/resources/single_release_callback_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/resources/tile_manager_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/resources/video_resource_updater_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_delegated_renderer_layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+19 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/test/render_pass_test_common.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/blocking_task_runner.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
4 chunks |
+22 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cc/trees/blocking_task_runner.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+7 lines, -39 lines |
0 comments
|
Download
|
 |
A |
cc/trees/blocking_task_runner_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_perftest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_unittest_context.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/trees/proxy.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/proxy.cc
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/trees/single_thread_proxy.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/trees/thread_proxy.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 34 (7 generated)
|