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

Issue 523243002: cc: Generalize raster task notifications (Closed)

Created:
6 years, 3 months ago by ernstm
Modified:
6 years, 3 months ago
Reviewers:
reveman, Sami
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Generalize raster task notifications This patch generalizes the way we handle notifications for sets of raster tasks. Previously, this was special cases for tiles that are required for activation. The new implementation allows arbitrary sets of task and notificatios for them, and it makes the rasterizer and the worker pools agnostic of the semantics of those sets (only the TileManager knows about this). R=reveman@chromium.org BUG=388030 Committed: https://crrev.com/69fedbd409dbc8adb204513fe88e95c040375c55 Cr-Commit-Position: refs/heads/master@{#295392}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Clean-ups #

Patch Set 3 : Use generalized notifications for all tasks. #

Patch Set 4 : Fix cc_perftests and C++11 issue. Remove DidFinishRunningTasks. #

Patch Set 5 : Remove unused did_throttle_raster_tasks. #

Patch Set 6 : Remove obsolete HasPendingTasks #

Total comments: 24

Patch Set 7 : Renaming #

Total comments: 10

Patch Set 8 : Rebase #

Patch Set 9 : Removed unused ctor #

Total comments: 77

Patch Set 10 : clean-ups #

Total comments: 14

Patch Set 11 : rebase #

Total comments: 2

Patch Set 12 : more clean-ups #

Total comments: 2

Patch Set 13 : Remove support for tasks that are in no set. #

Total comments: 2

Patch Set 14 : tasks_in_set -> tasks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -466 lines) Patch
M cc/resources/gpu_raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -6 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 6 chunks +37 lines, -48 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.h View 1 2 3 4 5 6 2 chunks +3 lines, -6 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 7 chunks +51 lines, -57 lines 0 comments Download
M cc/resources/image_raster_worker_pool.h View 1 2 3 4 5 6 2 chunks +3 lines, -6 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 7 chunks +50 lines, -55 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -16 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 21 chunks +134 lines, -160 lines 0 comments Download
M cc/resources/raster_worker_pool.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -9 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -8 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -9 lines 0 comments Download
M cc/resources/rasterizer.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -9 lines 0 comments Download
M cc/resources/rasterizer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -2 lines 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -3 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +74 lines, -62 lines 0 comments Download
M cc/test/fake_tile_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (2 generated)
ernstm
PTAL Comments still need to be updated / added. The notifications for "all tasks" could ...
6 years, 3 months ago (2014-08-29 23:32:11 UTC) #1
ernstm
On 2014/08/29 23:32:11, ernstm wrote: > PTAL > > Comments still need to be updated ...
6 years, 3 months ago (2014-09-04 22:38:17 UTC) #2
reveman
Sorry for the delay. I suspect this could be made cleaner by including "all tasks" ...
6 years, 3 months ago (2014-09-05 08:39:00 UTC) #3
ernstm
I'll do the "all tasks notification" in a separate patch set (but same patch). https://codereview.chromium.org/523243002/diff/1/cc/resources/gpu_raster_worker_pool.cc ...
6 years, 3 months ago (2014-09-05 21:36:11 UTC) #4
ernstm
The latest version uses the generalized notifications for the all-tasks-finished case as well. Please take ...
6 years, 3 months ago (2014-09-09 22:26:23 UTC) #5
reveman
I've only had time to review GpuRasterWorkerPool so far but I assume that my comments ...
6 years, 3 months ago (2014-09-10 16:41:50 UTC) #6
ernstm
https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode63 cc/resources/gpu_raster_worker_pool.cc:63: raster_task_sets_pending_.set(); On 2014/09/10 16:41:49, reveman wrote: > is it ...
6 years, 3 months ago (2014-09-10 18:26:19 UTC) #7
reveman
https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode74 cc/resources/gpu_raster_worker_pool.cc:74: TaskSetSizes task_set_sizes(queue); On 2014/09/10 18:26:18, ernstm wrote: > On ...
6 years, 3 months ago (2014-09-10 19:41:28 UTC) #8
ernstm
https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode74 cc/resources/gpu_raster_worker_pool.cc:74: TaskSetSizes task_set_sizes(queue); On 2014/09/10 19:41:27, reveman wrote: > On ...
6 years, 3 months ago (2014-09-10 20:48:07 UTC) #9
reveman
https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode74 cc/resources/gpu_raster_worker_pool.cc:74: TaskSetSizes task_set_sizes(queue); On 2014/09/10 20:48:06, ernstm wrote: > On ...
6 years, 3 months ago (2014-09-10 21:00:52 UTC) #10
ernstm
On 2014/09/10 21:00:52, reveman wrote: > https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc > File cc/resources/gpu_raster_worker_pool.cc (right): > > https://codereview.chromium.org/523243002/diff/100001/cc/resources/gpu_raster_worker_pool.cc#newcode74 > ...
6 years, 3 months ago (2014-09-10 23:25:11 UTC) #12
Sami
On 2014/09/10 23:25:11, ernstm wrote: > I don't think so. That will cause us to ...
6 years, 3 months ago (2014-09-11 12:18:00 UTC) #13
reveman
On 2014/09/11 12:18:00, Sami wrote: > On 2014/09/10 23:25:11, ernstm wrote: > > I don't ...
6 years, 3 months ago (2014-09-11 16:18:38 UTC) #14
ernstm
https://codereview.chromium.org/523243002/diff/120001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/120001/cc/resources/gpu_raster_worker_pool.cc#newcode99 cc/resources/gpu_raster_worker_pool.cc:99: for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; task_set++) ...
6 years, 3 months ago (2014-09-11 21:15:53 UTC) #15
ernstm
On 2014/09/11 16:18:38, reveman wrote: > On 2014/09/11 12:18:00, Sami wrote: > > On 2014/09/10 ...
6 years, 3 months ago (2014-09-11 22:35:02 UTC) #16
reveman
On 2014/09/11 22:35:02, ernstm wrote: > On 2014/09/11 16:18:38, reveman wrote: > > On 2014/09/11 ...
6 years, 3 months ago (2014-09-12 00:52:15 UTC) #17
ernstm
> FYI, I haven't looked at the TaskSetSizes class in detail yet as I was ...
6 years, 3 months ago (2014-09-12 01:06:11 UTC) #18
reveman
https://codereview.chromium.org/523243002/diff/120001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/120001/cc/resources/gpu_raster_worker_pool.cc#newcode99 cc/resources/gpu_raster_worker_pool.cc:99: for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; task_set++) ...
6 years, 3 months ago (2014-09-12 16:33:51 UTC) #19
ernstm
https://codereview.chromium.org/523243002/diff/120001/cc/resources/raster_worker_pool.h File cc/resources/raster_worker_pool.h (right): https://codereview.chromium.org/523243002/diff/120001/cc/resources/raster_worker_pool.h#newcode23 cc/resources/raster_worker_pool.h:23: class TaskSetSizes { On 2014/09/12 16:33:51, reveman wrote: > ...
6 years, 3 months ago (2014-09-13 01:26:51 UTC) #20
ernstm
On 2014/09/13 01:26:51, ernstm wrote: > https://codereview.chromium.org/523243002/diff/120001/cc/resources/raster_worker_pool.h > File cc/resources/raster_worker_pool.h (right): > > https://codereview.chromium.org/523243002/diff/120001/cc/resources/raster_worker_pool.h#newcode23 > ...
6 years, 3 months ago (2014-09-16 20:26:10 UTC) #21
reveman
https://codereview.chromium.org/523243002/diff/160001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/160001/cc/resources/gpu_raster_worker_pool.cc#newcode80 cc/resources/gpu_raster_worker_pool.cc:80: task_count[task_set] = 0; How about "size_t task_count[kNumberOfTaskSets] = {0};" ...
6 years, 3 months ago (2014-09-16 22:49:06 UTC) #22
ernstm
https://codereview.chromium.org/523243002/diff/160001/cc/resources/gpu_raster_worker_pool.cc File cc/resources/gpu_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/160001/cc/resources/gpu_raster_worker_pool.cc#newcode80 cc/resources/gpu_raster_worker_pool.cc:80: task_count[task_set] = 0; On 2014/09/16 22:49:03, reveman wrote: > ...
6 years, 3 months ago (2014-09-17 19:57:16 UTC) #23
reveman
A few minor adjustments and this is ready to land. https://codereview.chromium.org/523243002/diff/180001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/180001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode29 ...
6 years, 3 months ago (2014-09-17 20:46:29 UTC) #24
ernstm
https://codereview.chromium.org/523243002/diff/180001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/180001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode29 cc/resources/pixel_buffer_raster_worker_pool.cc:29: void SetTaskCountsToZero(size_t* task_counts) { On 2014/09/17 20:46:28, reveman wrote: ...
6 years, 3 months ago (2014-09-17 21:44:25 UTC) #25
reveman
LGTM after addressing these last two comments. This is a nice cleanup, Thanks! https://codereview.chromium.org/523243002/diff/160001/cc/resources/pixel_buffer_raster_worker_pool.cc File ...
6 years, 3 months ago (2014-09-17 22:08:23 UTC) #26
ernstm
You might want to take another quick look at PBRWP before I hit commit. https://codereview.chromium.org/523243002/diff/160001/cc/resources/pixel_buffer_raster_worker_pool.cc ...
6 years, 3 months ago (2014-09-17 22:42:05 UTC) #27
reveman
lgtm with nit https://codereview.chromium.org/523243002/diff/240001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/240001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode479 cc/resources/pixel_buffer_raster_worker_pool.cc:479: RasterTaskVector tasks_in_set[kNumberOfTaskSets]; nit: s/tasks_in_set/tasks/
6 years, 3 months ago (2014-09-18 00:13:05 UTC) #28
ernstm
https://codereview.chromium.org/523243002/diff/240001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/523243002/diff/240001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode479 cc/resources/pixel_buffer_raster_worker_pool.cc:479: RasterTaskVector tasks_in_set[kNumberOfTaskSets]; On 2014/09/18 00:13:05, reveman wrote: > nit: ...
6 years, 3 months ago (2014-09-18 00:25:43 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/523243002/260001
6 years, 3 months ago (2014-09-18 00:38:10 UTC) #31
commit-bot: I haz the power
Committed patchset #14 (id:260001) as 6f1939e93d475bd1058331701ae28e283e89c065
6 years, 3 months ago (2014-09-18 01:23:50 UTC) #32
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 01:24:25 UTC) #33
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/69fedbd409dbc8adb204513fe88e95c040375c55
Cr-Commit-Position: refs/heads/master@{#295392}

Powered by Google App Engine
This is Rietveld 408576698