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

Issue 1470113002: Move TaskGraph creation to TileManager (Closed)

Created:
5 years, 1 month ago by ericrk
Modified:
5 years ago
Reviewers:
reveman
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dtrainor+watch-blimp_chromium.org, jam, jbauman+watch_chromium.org, kalyank, kmarshall+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org, sriramsr+watch-blimp_chromium.org, vmpstr
Base URL:
https://chromium.googlesource.com/chromium/src.git@pinchfix
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This change moves TaskGraph creation and management of task set finished callbacks to TileManager. This logic was nearly identical in all TileTaskRunners at this point. We do lose a bit of tracing data from OneCopyTileTaskWorkerPool, we can re-create this data by adding a new method to TaskGraphRunner, but it seemed redundant with the memory infra tracing data, so it seemed OK to drop. BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/95ca56bc5de767ce231a8fe3b7fe2644942a94a4 Cr-Commit-Position: refs/heads/master@{#362874}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : rebase #

Patch Set 10 : #

Total comments: 9

Patch Set 11 : feedback #

Patch Set 12 : #

Total comments: 17

Patch Set 13 : build fixes #

Patch Set 14 : feedback #

Patch Set 15 : remove unnecessary include #

Total comments: 18

Patch Set 16 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -838 lines) Patch
M cc/raster/bitmap_tile_task_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +1 line, -15 lines 0 comments Download
M cc/raster/bitmap_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +4 lines, -93 lines 0 comments Download
M cc/raster/gpu_tile_task_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +1 line, -17 lines 0 comments Download
M cc/raster/gpu_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +4 lines, -70 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +1 line, -13 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +4 lines, -108 lines 0 comments Download
M cc/raster/tile_task_runner.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -57 lines 0 comments Download
M cc/raster/tile_task_runner.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -24 lines 0 comments Download
M cc/raster/tile_task_worker_pool.h View 1 chunk +0 lines, -26 lines 0 comments Download
M cc/raster/tile_task_worker_pool.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -102 lines 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +47 lines, -47 lines 0 comments Download
M cc/raster/tile_task_worker_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +12 lines, -52 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -14 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +4 lines, -92 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -5 lines 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +19 lines, -23 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +213 lines, -66 lines 0 comments Download
M cc/tiles/tile_manager_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -5 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +9 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (6 generated)
ericrk
https://codereview.chromium.org/1470113002/diff/180001/cc/raster/tile_task_worker_pool_unittest.cc File cc/raster/tile_task_worker_pool_unittest.cc (left): https://codereview.chromium.org/1470113002/diff/180001/cc/raster/tile_task_worker_pool_unittest.cc#oldcode395 cc/raster/tile_task_worker_pool_unittest.cc:395: // Don't append any tasks, just call ScheduleTasks. This ...
5 years ago (2015-11-25 19:49:39 UTC) #3
reveman
Some comments related to additional cleanup which would be fine to do as a follow ...
5 years ago (2015-11-26 00:18:30 UTC) #4
ericrk
Thanks for the feedback - have a few questions. https://codereview.chromium.org/1470113002/diff/180001/cc/raster/tile_task_runner.h File cc/raster/tile_task_runner.h (right): https://codereview.chromium.org/1470113002/diff/180001/cc/raster/tile_task_runner.h#newcode32 cc/raster/tile_task_runner.h:32: ...
5 years ago (2015-11-30 23:52:16 UTC) #5
ericrk
I think I understand most of what you're suggesting here - I'm going to push ...
5 years ago (2015-12-02 02:28:29 UTC) #6
reveman
I would prefer to see the TaskSet code removed as I think it makes for ...
5 years ago (2015-12-02 05:22:55 UTC) #7
ericrk
Thanks for the feedback! https://codereview.chromium.org/1470113002/diff/220001/cc/tiles/tile_manager.cc File cc/tiles/tile_manager.cc (right): https://codereview.chromium.org/1470113002/diff/220001/cc/tiles/tile_manager.cc#newcode256 cc/tiles/tile_manager.cc:256: scoped_refptr<TileTask> CreateTaskSetFinishedTask( On 2015/12/02 05:22:55, ...
5 years ago (2015-12-02 21:28:09 UTC) #8
reveman
lgtm with some nits and optional suggestions https://codereview.chromium.org/1470113002/diff/280001/cc/raster/bitmap_tile_task_worker_pool.h File cc/raster/bitmap_tile_task_worker_pool.h (right): https://codereview.chromium.org/1470113002/diff/280001/cc/raster/bitmap_tile_task_worker_pool.h#newcode65 cc/raster/bitmap_tile_task_worker_pool.h:65: TaskGraph* graph_; ...
5 years ago (2015-12-02 22:26:05 UTC) #9
ericrk
Thanks again - lots of stuff to clean up here :D https://codereview.chromium.org/1470113002/diff/280001/cc/raster/bitmap_tile_task_worker_pool.h File cc/raster/bitmap_tile_task_worker_pool.h (right): ...
5 years ago (2015-12-03 00:43:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1470113002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1470113002/300001
5 years ago (2015-12-03 00:45:11 UTC) #13
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years ago (2015-12-03 02:54:26 UTC) #15
commit-bot: I haz the power
5 years ago (2015-12-03 02:55:23 UTC) #17
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/95ca56bc5de767ce231a8fe3b7fe2644942a94a4
Cr-Commit-Position: refs/heads/master@{#362874}

Powered by Google App Engine
This is Rietveld 408576698