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

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed)

Created:
4 years, 8 months ago by prashant.n
Modified:
4 years, 7 months ago
Reviewers:
reveman, vmpstr, ericrk
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@task_states
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Refactor TileTaskWorkerPool. This patch moves tile task management from all TileTaskWorkerPool classes to separate class making them thinner. New class TileTaskManager now handles running tasks using task graph runner set. This now puts the logic of raster buffer provider and running task in different classes. This patch also renames all TileTaskWorkerPools to RasterBufferProviders to depict what they really do. New test classes FakeRasterBufferProviderImpl, FakeTileTaskManagerImpl are added to cut the duplicated code. Fixed duplicate nodes getting added in task graph in raster buffer provider perftests. BUG=599863 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b4d4f49c2412fe8a6ddb14b925778726339fc758 Cr-Commit-Position: refs/heads/master@{#390632}

Patch Set 1 #

Patch Set 2 : fixed unit_tests #

Patch Set 3 : fixed perf_tests #

Patch Set 4 : nits #

Patch Set 5 : nits #

Total comments: 6

Patch Set 6 : merged two related patches #

Patch Set 7 : feedback #

Patch Set 8 : feedback #

Total comments: 1

Patch Set 9 : rebase #

Patch Set 10 : fixed build #

Patch Set 11 : fixed crashes #

Patch Set 12 : corrected rbp perftest #

Patch Set 13 : rebase #

Patch Set 14 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1004 lines, -3140 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +18 lines, -12 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -10 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -2 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A cc/raster/bitmap_raster_buffer_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +55 lines, -0 lines 0 comments Download
A + cc/raster/bitmap_raster_buffer_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +23 lines, -59 lines 0 comments Download
M cc/raster/bitmap_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +0 lines, -69 lines 0 comments Download
M cc/raster/bitmap_tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +0 lines, -148 lines 0 comments Download
A cc/raster/gpu_raster_buffer_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +52 lines, -0 lines 0 comments Download
A + cc/raster/gpu_raster_buffer_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +23 lines, -67 lines 0 comments Download
M cc/raster/gpu_rasterizer.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/raster/gpu_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +0 lines, -68 lines 0 comments Download
M cc/raster/gpu_tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +0 lines, -194 lines 0 comments Download
A + cc/raster/one_copy_raster_buffer_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +18 lines, -29 lines 0 comments Download
A + cc/raster/one_copy_raster_buffer_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +36 lines, -72 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +0 lines, -108 lines 0 comments Download
D cc/raster/one_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -384 lines 0 comments Download
M cc/raster/raster_buffer.h View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
A + cc/raster/raster_buffer_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +18 lines, -30 lines 0 comments Download
A + cc/raster/raster_buffer_provider.cc View 1 2 3 4 5 7 chunks +9 lines, -27 lines 0 comments Download
A + cc/raster/raster_buffer_provider_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 19 chunks +92 lines, -73 lines 0 comments Download
A + cc/raster/raster_buffer_provider_unittest.cc View 1 2 3 4 5 6 7 15 chunks +52 lines, -52 lines 0 comments Download
M cc/raster/tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +0 lines, -87 lines 0 comments Download
M cc/raster/tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +0 lines, -169 lines 0 comments Download
D cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -495 lines 0 comments Download
M cc/raster/tile_task_worker_pool_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -377 lines 0 comments Download
A cc/raster/zero_copy_raster_buffer_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +59 lines, -0 lines 0 comments Download
A + cc/raster/zero_copy_raster_buffer_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +25 lines, -62 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +0 lines, -74 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +0 lines, -157 lines 0 comments Download
A cc/test/fake_raster_buffer_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +32 lines, -0 lines 0 comments Download
A cc/test/fake_raster_buffer_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +38 lines, -0 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -54 lines 0 comments Download
A cc/test/fake_tile_task_manager.h View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
A cc/test/fake_tile_task_manager.cc View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.h View 1 2 3 4 5 2 chunks +9 lines, -9 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 1 2 3 4 5 5 chunks +33 lines, -36 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/test/test_hooks.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/test_hooks.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 4 5 6 7 6 chunks +7 lines, -6 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +27 lines, -25 lines 0 comments Download
M cc/tiles/tile_manager_perftest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -50 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +48 lines, -71 lines 0 comments Download
A cc/tiles/tile_task_manager.h View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A cc/tiles/tile_task_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +86 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +38 lines, -33 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 34 (16 generated)
prashant.n
Wip patch to separate tile task management from TTWP. Tests are yet to fixed. Do ...
4 years, 8 months ago (2016-04-22 14:54:40 UTC) #4
prashant.n
ptal.
4 years, 7 months ago (2016-04-25 03:34:12 UTC) #5
prashant.n
On 2016/04/25 03:34:12, prashant.n wrote: > ptal. Before raster buffer provider patch, this patch needs ...
4 years, 7 months ago (2016-04-25 18:34:13 UTC) #7
ericrk
Overall looks like this cuts out a nice amount of duplicate code! A few initial ...
4 years, 7 months ago (2016-04-25 20:56:08 UTC) #8
prashant.n
As modifying this patch will need rebase for my next patch. I'll merge those two ...
4 years, 7 months ago (2016-04-26 03:18:08 UTC) #9
prashant.n
ptal.
4 years, 7 months ago (2016-04-26 14:23:59 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910213005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910213005/140001
4 years, 7 months ago (2016-04-26 14:26:27 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/25080) ios_dbg_simulator_ninja on ...
4 years, 7 months ago (2016-04-26 14:28:47 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910213005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910213005/180001
4 years, 7 months ago (2016-04-27 05:30:33 UTC) #17
prashant.n
ptal.
4 years, 7 months ago (2016-04-27 05:30:40 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/219468)
4 years, 7 months ago (2016-04-27 06:06:48 UTC) #20
prashant.n
ptal.
4 years, 7 months ago (2016-04-29 06:53:56 UTC) #21
ericrk
Very nice change - any time we delete 3x more lines than we add, it's ...
4 years, 7 months ago (2016-04-29 07:24:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910213005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910213005/260001
4 years, 7 months ago (2016-04-29 10:06:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/154173)
4 years, 7 months ago (2016-04-29 11:26:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910213005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910213005/260001
4 years, 7 months ago (2016-04-29 12:46:23 UTC) #30
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 7 months ago (2016-04-29 12:51:38 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:25:24 UTC) #33
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b4d4f49c2412fe8a6ddb14b925778726339fc758
Cr-Commit-Position: refs/heads/master@{#390632}

Powered by Google App Engine
This is Rietveld 408576698