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

Issue 1890903002: cc: Simplify Task and its derived classes. (Closed)

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

Description

cc: Simplify Task and its derived classes. This patch merges ImageDecodeTask and RasterTask into TileTask, single class defining properties specific to tasks used for tiles. Now all the tile related tasks get derived directly from TileTask. RasterTaskImpl : TileTask ImageDecodeTaskImpl : TileTask ImageUploadTaskImpl : TileTask This patch also splits (Task + TaskGraph) from TaskGraphRunner and moves it to its own file which simplifies file include dependencies. BUG=599863 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/49b3e6465bc0781cffa00374219e97e0348b51bd Cr-Commit-Position: refs/heads/master@{#388152}

Patch Set 1 : wip #

Patch Set 2 : #

Patch Set 3 : nits #

Total comments: 10

Patch Set 4 : changed dependency of the patch feedback #

Patch Set 5 : nits #

Total comments: 4

Patch Set 6 : feedback #

Total comments: 6

Patch Set 7 : feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -403 lines) Patch
M cc/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A cc/raster/task.h View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A + cc/raster/task.cc View 1 2 3 4 1 chunk +3 lines, -8 lines 0 comments Download
M cc/raster/task_graph_runner.h View 1 2 3 2 chunks +1 line, -131 lines 0 comments Download
D cc/raster/task_graph_runner.cc View 1 2 3 1 chunk +0 lines, -54 lines 0 comments Download
M cc/raster/task_graph_work_queue.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M cc/raster/tile_task_runner.h View 1 2 3 4 5 6 3 chunks +15 lines, -38 lines 1 comment Download
M cc/raster/tile_task_runner.cc View 1 2 3 4 5 6 2 chunks +11 lines, -22 lines 0 comments Download
M cc/raster/tile_task_worker_pool.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 9 chunks +13 lines, -13 lines 0 comments Download
M cc/raster/tile_task_worker_pool_unittest.cc View 1 2 3 4 5 5 chunks +7 lines, -7 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M cc/tiles/gpu_image_decode_controller.h View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M cc/tiles/gpu_image_decode_controller.cc View 1 2 3 4 5 7 chunks +13 lines, -14 lines 0 comments Download
M cc/tiles/gpu_image_decode_controller_unittest.cc View 1 2 3 21 chunks +41 lines, -40 lines 0 comments Download
M cc/tiles/image_decode_controller.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M cc/tiles/software_image_decode_controller.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/tiles/software_image_decode_controller.cc View 1 2 3 4 5 5 chunks +8 lines, -7 lines 0 comments Download
M cc/tiles/software_image_decode_controller_unittest.cc View 1 2 3 29 chunks +29 lines, -29 lines 0 comments Download
M cc/tiles/tile.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 10 chunks +22 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 32 (12 generated)
prashant.n
WIP patch simplifying Task class.
4 years, 8 months ago (2016-04-14 16:53:56 UTC) #3
prashant.n
PTAL.
4 years, 8 months ago (2016-04-15 06:33:58 UTC) #7
prashant.n
ptal - patch #5.
4 years, 8 months ago (2016-04-15 07:06:23 UTC) #8
reveman
https://codereview.chromium.org/1890903002/diff/40001/cc/raster/task.h File cc/raster/task.h (right): https://codereview.chromium.org/1890903002/diff/40001/cc/raster/task.h#newcode25 cc/raster/task.h:25: TaskType GetTaskType(); can this be private to tilemanager's task ...
4 years, 8 months ago (2016-04-16 10:10:28 UTC) #9
prashant.n
https://codereview.chromium.org/1890903002/diff/40001/cc/raster/task.h File cc/raster/task.h (right): https://codereview.chromium.org/1890903002/diff/40001/cc/raster/task.h#newcode25 cc/raster/task.h:25: TaskType GetTaskType(); On 2016/04/16 10:10:28, reveman wrote: > can ...
4 years, 8 months ago (2016-04-17 17:37:48 UTC) #10
reveman
https://codereview.chromium.org/1890903002/diff/40001/cc/raster/task.h File cc/raster/task.h (right): https://codereview.chromium.org/1890903002/diff/40001/cc/raster/task.h#newcode33 cc/raster/task.h:33: const Task::Vector& dependencies() const { return dependencies_; } On ...
4 years, 8 months ago (2016-04-17 20:08:23 UTC) #11
prashant.n
PTAL.
4 years, 8 months ago (2016-04-18 13:19:01 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890903002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890903002/80001
4 years, 8 months ago (2016-04-18 13:23:06 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-18 14:24:37 UTC) #17
reveman
lg, just one minor thing https://codereview.chromium.org/1890903002/diff/80001/cc/raster/tile_task_runner.h File cc/raster/tile_task_runner.h (right): https://codereview.chromium.org/1890903002/diff/80001/cc/raster/tile_task_runner.h#newcode1 cc/raster/tile_task_runner.h:1: // Copyright 2014 The ...
4 years, 8 months ago (2016-04-19 00:05:30 UTC) #18
prashant.n
Would you pls. lgtm in advance, so that I'll finish this patch by doing needed ...
4 years, 8 months ago (2016-04-19 01:19:02 UTC) #19
prashant.n
> https://codereview.chromium.org/1890903002/diff/80001/cc/raster/tile_task_runner.h#newcode29 > cc/raster/tile_task_runner.h:29: virtual bool SupportsConcurrentExecution() > const; > On 2016/04/19 00:05:30, reveman wrote: ...
4 years, 8 months ago (2016-04-19 04:04:06 UTC) #20
prashant.n
https://codereview.chromium.org/1890903002/diff/100001/cc/raster/tile_task_runner.h File cc/raster/tile_task_runner.h (right): https://codereview.chromium.org/1890903002/diff/100001/cc/raster/tile_task_runner.h#newcode43 cc/raster/tile_task_runner.h:43: explicit TileTask(bool supports_concurrent_execution); Here we cannot prevent implicit cast ...
4 years, 8 months ago (2016-04-19 04:06:02 UTC) #21
prashant.n
https://codereview.chromium.org/1890903002/diff/100001/cc/raster/tile_task_runner.h File cc/raster/tile_task_runner.h (right): https://codereview.chromium.org/1890903002/diff/100001/cc/raster/tile_task_runner.h#newcode29 cc/raster/tile_task_runner.h:29: virtual bool SupportsConcurrentExecution() const; OR we can have pure ...
4 years, 8 months ago (2016-04-19 04:38:23 UTC) #22
reveman
lgtm after removing the virtual function https://codereview.chromium.org/1890903002/diff/100001/cc/raster/task.h File cc/raster/task.h (right): https://codereview.chromium.org/1890903002/diff/100001/cc/raster/task.h#newcode1 cc/raster/task.h:1: // Copyright 2016 ...
4 years, 8 months ago (2016-04-19 05:02:16 UTC) #23
prashant.n
https://codereview.chromium.org/1890903002/diff/100001/cc/raster/task.h File cc/raster/task.h (right): https://codereview.chromium.org/1890903002/diff/100001/cc/raster/task.h#newcode1 cc/raster/task.h:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 8 months ago (2016-04-19 05:28:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890903002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890903002/120001
4 years, 8 months ago (2016-04-19 05:48:27 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-19 07:04:58 UTC) #29
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/49b3e6465bc0781cffa00374219e97e0348b51bd Cr-Commit-Position: refs/heads/master@{#388152}
4 years, 8 months ago (2016-04-19 07:06:12 UTC) #31
reveman
4 years, 8 months ago (2016-04-19 07:08:17 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/1890903002/diff/120001/cc/raster/tile_task_ru...
File cc/raster/tile_task_runner.h (right):

https://codereview.chromium.org/1890903002/diff/120001/cc/raster/tile_task_ru...
cc/raster/tile_task_runner.h:29: bool SupportsConcurrentExecution() const {
This should not be CamelCase as a simple getter. See the style guide. It should
be "supports_concurrent_execution() const". Please fix asap.

Powered by Google App Engine
This is Rietveld 408576698