Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Issue 1449133002: TaskGraphRunner refactor (Closed)

Created:
5 years, 1 month ago by ericrk
Modified:
5 years ago
CC:
blink-worker-reviews_chromium.org, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, kinuko+watch, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Interface-izes TaskGraphRunner and moves implementation helpers to TaskGraphWorkQueue. There are two new classes: SynchronousTaskGraphRunner - used in some tests and by LayerTreeHostImpl SingleThreadTaskGraphRunner - used in a number of tests (wrapped by TestTaskGraphRunner) and by GpuProcessTransportFactory and CompositorImplAndroid. Additionally RasterWorkerPool has been re-worked to use the new helper. BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4e3aa5a539e3774b51b998dc60eac42a97c2cfb8 Cr-Commit-Position: refs/heads/master@{#362338}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : version with helper class #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : fixes and feedback #

Patch Set 7 : rebase #

Patch Set 8 : fixes for linux/android #

Total comments: 2

Patch Set 9 : fix for mus #

Total comments: 12

Patch Set 10 : feedback #

Patch Set 11 : revert of feedback fixes - will move to new CL #

Patch Set 12 : rebase #

Patch Set 13 : rebase #

Total comments: 2

Patch Set 14 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1583 lines, -1038 lines) Patch
M base/threading/thread_restrictions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -2 lines 0 comments Download
M blimp/common/compositor/blimp_task_graph_runner.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -10 lines 0 comments Download
M blimp/common/compositor/blimp_task_graph_runner.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -11 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
A cc/raster/single_thread_task_graph_runner.h View 1 2 3 4 5 6 7 1 chunk +68 lines, -0 lines 0 comments Download
A cc/raster/single_thread_task_graph_runner.cc View 1 2 3 4 5 6 7 1 chunk +157 lines, -0 lines 0 comments Download
A cc/raster/single_thread_task_graph_runner_unittest.cc View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A cc/raster/synchronous_task_graph_runner.h View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A cc/raster/synchronous_task_graph_runner.cc View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
A cc/raster/synchronous_task_graph_runner_unittest.cc View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
M cc/raster/task_graph_runner.h View 1 2 3 4 5 6 7 4 chunks +100 lines, -123 lines 0 comments Download
M cc/raster/task_graph_runner.cc View 1 2 3 4 5 3 chunks +6 lines, -429 lines 0 comments Download
M cc/raster/task_graph_runner_perftest.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
D cc/raster/task_graph_runner_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -332 lines 0 comments Download
A cc/raster/task_graph_work_queue.h View 1 2 3 4 5 1 chunk +149 lines, -0 lines 0 comments Download
A cc/raster/task_graph_work_queue.cc View 1 2 3 4 5 1 chunk +231 lines, -0 lines 0 comments Download
M cc/raster/tile_task_worker_pool.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 3 chunks +3 lines, -5 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A cc/test/task_graph_runner_test_template.h View 1 2 3 4 5 1 chunk +244 lines, -0 lines 0 comments Download
A cc/test/task_graph_runner_test_template.cc View 1 2 3 4 1 chunk +99 lines, -0 lines 0 comments Download
M cc/test/test_task_graph_runner.h View 1 chunk +2 lines, -8 lines 0 comments Download
M cc/test/test_task_graph_runner.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M components/mus/gles2/raster_thread_helper.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -5 lines 0 comments Download
M components/mus/gles2/raster_thread_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -20 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +4 lines, -23 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -19 lines 0 comments Download
M content/renderer/raster_worker_pool.h View 1 2 3 4 5 7 chunks +33 lines, -5 lines 0 comments Download
M content/renderer/raster_worker_pool.cc View 1 2 3 4 5 10 9 chunks +156 lines, -12 lines 0 comments Download
M content/renderer/raster_worker_pool_unittest.cc View 1 2 3 4 4 chunks +55 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
ericrk
Here's a version of TaskGraphRunner which is interface-ized and has implementation helpers moved to TaskGraphWorkQueue. ...
5 years, 1 month ago (2015-11-18 19:18:16 UTC) #2
reveman
nice refactor! just some nits and comments below https://codereview.chromium.org/1449133002/diff/80001/cc/raster/single_thread_task_graph_runner.cc File cc/raster/single_thread_task_graph_runner.cc (right): https://codereview.chromium.org/1449133002/diff/80001/cc/raster/single_thread_task_graph_runner.cc#newcode29 cc/raster/single_thread_task_graph_runner.cc:29: // ...
5 years, 1 month ago (2015-11-19 16:05:46 UTC) #4
ericrk
Addressed the comments - needed to do a rebase afterwards, so might be easiest to ...
5 years ago (2015-11-23 18:43:37 UTC) #6
reveman
lgtm https://codereview.chromium.org/1449133002/diff/160001/cc/test/test_task_graph_runner.cc File cc/test/test_task_graph_runner.cc (right): https://codereview.chromium.org/1449133002/diff/160001/cc/test/test_task_graph_runner.cc#newcode10 cc/test/test_task_graph_runner.cc:10: Start("TestTaskGraphRunner1", base::SimpleThread::Options()); nit: TestTaskGraphRunner, no need for the ...
5 years ago (2015-11-23 19:47:06 UTC) #7
ericrk
The remaining code should be fairly straightforward - Adding more reviewers for owners: sievers for ...
5 years ago (2015-11-23 21:49:50 UTC) #12
David Trainor- moved to gerrit
blimp/ lgtm
5 years ago (2015-11-23 21:51:56 UTC) #13
Fady Samuel
mus lgtm
5 years ago (2015-11-23 21:53:50 UTC) #14
no sievers
lgtm https://codereview.chromium.org/1449133002/diff/180001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1449133002/diff/180001/content/browser/compositor/gpu_process_transport_factory.cc#newcode100 content/browser/compositor/gpu_process_transport_factory.cc:100: task_graph_runner_->Start("CompositorTileWorker1", nit: how about 'BrowserCompositorTileWorker'? https://codereview.chromium.org/1449133002/diff/180001/content/renderer/raster_worker_pool.cc File content/renderer/raster_worker_pool.cc ...
5 years ago (2015-11-25 00:03:34 UTC) #17
ericrk
+danakj for base owners https://codereview.chromium.org/1449133002/diff/180001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1449133002/diff/180001/content/browser/compositor/gpu_process_transport_factory.cc#newcode100 content/browser/compositor/gpu_process_transport_factory.cc:100: task_graph_runner_->Start("CompositorTileWorker1", On 2015/11/25 00:03:34, sievers ...
5 years ago (2015-11-25 02:09:52 UTC) #19
reveman
https://codereview.chromium.org/1449133002/diff/180001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1449133002/diff/180001/content/browser/compositor/gpu_process_transport_factory.cc#newcode100 content/browser/compositor/gpu_process_transport_factory.cc:100: task_graph_runner_->Start("CompositorTileWorker1", On 2015/11/25 at 02:09:52, ericrk wrote: > On ...
5 years ago (2015-11-25 02:30:07 UTC) #20
ericrk
Rolling back the changes based on siever's feedback - moving these to a new CL ...
5 years ago (2015-11-25 19:17:52 UTC) #21
danakj
Just moving the use of ScopedAllowWait, LGTM https://codereview.chromium.org/1449133002/diff/260001/base/threading/thread_restrictions.h File base/threading/thread_restrictions.h (right): https://codereview.chromium.org/1449133002/diff/260001/base/threading/thread_restrictions.h#newcode26 base/threading/thread_restrictions.h:26: class TaskGraphRunner; ...
5 years ago (2015-11-30 23:54:27 UTC) #22
ericrk
https://codereview.chromium.org/1449133002/diff/260001/base/threading/thread_restrictions.h File base/threading/thread_restrictions.h (right): https://codereview.chromium.org/1449133002/diff/260001/base/threading/thread_restrictions.h#newcode26 base/threading/thread_restrictions.h:26: class TaskGraphRunner; On 2015/11/30 23:54:27, danakj (behind on reviews) ...
5 years ago (2015-11-30 23:58:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1449133002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1449133002/280001
5 years ago (2015-12-01 00:05:50 UTC) #26
commit-bot: I haz the power
Committed patchset #14 (id:280001)
5 years ago (2015-12-01 03:54:04 UTC) #28
commit-bot: I haz the power
5 years ago (2015-12-01 03:55:04 UTC) #30
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/4e3aa5a539e3774b51b998dc60eac42a97c2cfb8
Cr-Commit-Position: refs/heads/master@{#362338}

Powered by Google App Engine
This is Rietveld 408576698