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

Issue 141163019: Re-land: cc: Remove WorkerPool class and instead use TaskGraphRunner directly. (Closed)

Created:
6 years, 11 months ago by reveman
Modified:
6 years, 11 months ago
Reviewers:
jamesr, alokp, sohanjg, vmpstr, piman
CC:
chromium-reviews, nkostylev+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, cc-bugs_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Re-land: cc: Remove WorkerPool class and instead use TaskGraphRunner directly. Removes the unnecessary WorkerPool layer. This makes the job of the TaskGraphRunner more clear and will allow us to remove some complexity and unnecessary heap allocations from the RasterWorkerPool code in follow up patches. Also moves the kNumRasterTasks switch to content/. Refactor only, no changes in behavior. BUG=331844 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246554

Patch Set 1 #

Patch Set 2 : include less in raster_worker_pool.h #

Patch Set 3 : build fix #

Total comments: 27

Patch Set 4 : removed some style changes #

Patch Set 5 : fix mode of task_graph_runner.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1003 lines, -1987 lines) Patch
M cc/base/switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/base/switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/cc.gyp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/cc_tests.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/image_raster_worker_pool.h View 1 4 chunks +5 lines, -5 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 1 5 chunks +6 lines, -4 lines 0 comments Download
M cc/resources/picture_pile.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 6 chunks +8 lines, -5 lines 0 comments Download
M cc/resources/raster_worker_pool.h View 1 12 chunks +62 lines, -38 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 16 chunks +114 lines, -43 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
A cc/resources/task_graph_runner.h View 1 2 3 4 1 chunk +235 lines, -0 lines 0 comments Download
A + cc/resources/task_graph_runner.cc View 12 chunks +93 lines, -297 lines 0 comments Download
A + cc/resources/task_graph_runner_perftest.cc View 6 chunks +92 lines, -110 lines 0 comments Download
A cc/resources/task_graph_runner_unittest.cc View 1 chunk +347 lines, -0 lines 0 comments Download
M cc/resources/tile_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/tile_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
D cc/resources/worker_pool.h View 1 chunk +0 lines, -146 lines 0 comments Download
D cc/resources/worker_pool.cc View 1 chunk +0 lines, -601 lines 0 comments Download
D cc/resources/worker_pool_perftest.cc View 1 chunk +0 lines, -239 lines 0 comments Download
D cc/resources/worker_pool_unittest.cc View 1 chunk +0 lines, -465 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 chunk +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
reveman
I'm planning to make RasterWorkerPoolTask an internal::Task as a follow up and in that way ...
6 years, 11 months ago (2014-01-18 15:18:32 UTC) #1
sohanjg
lgtm Looks good to remove unnecessary WorkerPool abstraction. https://codereview.chromium.org/141163019/diff/160001/cc/resources/pixel_buffer_raster_worker_pool.h File cc/resources/pixel_buffer_raster_worker_pool.h (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/pixel_buffer_raster_worker_pool.h#newcode12 cc/resources/pixel_buffer_raster_worker_pool.h:12: #include ...
6 years, 11 months ago (2014-01-21 09:41:08 UTC) #2
reveman
https://codereview.chromium.org/141163019/diff/160001/cc/resources/pixel_buffer_raster_worker_pool.h File cc/resources/pixel_buffer_raster_worker_pool.h (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/pixel_buffer_raster_worker_pool.h#newcode12 cc/resources/pixel_buffer_raster_worker_pool.h:12: #include "base/cancelable_callback.h" On 2014/01/21 09:41:08, sohanjg wrote: > nit: ...
6 years, 11 months ago (2014-01-21 15:37:46 UTC) #3
danakj
https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc#newcode94 cc/resources/raster_worker_pool.cc:94: reply_(reply) { On 2014/01/21 15:37:48, David Reveman wrote: > ...
6 years, 11 months ago (2014-01-21 15:47:04 UTC) #4
reveman
https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc#newcode94 cc/resources/raster_worker_pool.cc:94: reply_(reply) { On 2014/01/21 15:47:05, danakj wrote: > On ...
6 years, 11 months ago (2014-01-21 16:10:44 UTC) #5
vmpstr
https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.h File cc/resources/raster_worker_pool.h (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.h#newcode29 cc/resources/raster_worker_pool.h:29: class CC_EXPORT WorkerPoolTask : public Task { Do you ...
6 years, 11 months ago (2014-01-21 18:14:03 UTC) #6
alokp
lgtm. Minor comments. https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc#newcode431 cc/resources/raster_worker_pool.cc:431: int g_num_raster_threads = 0; make these ...
6 years, 11 months ago (2014-01-21 18:42:48 UTC) #7
reveman
https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.cc#newcode318 cc/resources/raster_worker_pool.cc:318: reply_(reply) { On 2014/01/21 09:41:08, sohanjg wrote: > nit: ...
6 years, 11 months ago (2014-01-21 19:51:32 UTC) #8
vmpstr
lgtm https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.h File cc/resources/raster_worker_pool.h (right): https://codereview.chromium.org/141163019/diff/160001/cc/resources/raster_worker_pool.h#newcode29 cc/resources/raster_worker_pool.h:29: class CC_EXPORT WorkerPoolTask : public Task { On ...
6 years, 11 months ago (2014-01-21 20:30:42 UTC) #9
reveman
+jamesr for content/renderer +piman for chrome/
6 years, 11 months ago (2014-01-21 22:47:47 UTC) #10
piman
lgtm
6 years, 11 months ago (2014-01-21 22:54:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/141163019/440001
6 years, 11 months ago (2014-01-21 22:56:12 UTC) #12
jamesr
lgtm2
6 years, 11 months ago (2014-01-21 22:58:21 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) ash_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=249346
6 years, 11 months ago (2014-01-22 01:08:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/141163019/440001
6 years, 11 months ago (2014-01-22 05:12:05 UTC) #15
commit-bot: I haz the power
Change committed as 246284
6 years, 11 months ago (2014-01-22 10:50:46 UTC) #16
Mattias Nissler (ping if slow)
A revert of this CL has been created in https://codereview.chromium.org/143003012/ by mnissler@chromium.org. The reason for ...
6 years, 11 months ago (2014-01-22 11:39:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/141163019/220002
6 years, 11 months ago (2014-01-22 14:43:53 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=217028
6 years, 11 months ago (2014-01-22 15:18:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/141163019/220002
6 years, 11 months ago (2014-01-22 15:19:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/141163019/220002
6 years, 11 months ago (2014-01-23 06:04:28 UTC) #22
commit-bot: I haz the power
6 years, 11 months ago (2014-01-23 09:46:52 UTC) #23
Message was sent while issue was closed.
Change committed as 246554

Powered by Google App Engine
This is Rietveld 408576698