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

Issue 17351017: Re-land: cc: Add raster finished signals to RasterWorkerPool. (Closed)

Created:
7 years, 6 months ago by reveman
Modified:
7 years, 5 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, boliu
Base URL:
http://git.chromium.org/chromium/src.git@new-graph-build
Visibility:
Public.

Description

Re-land: cc: Add raster finished signals to RasterWorkerPool. This adds to important signals to the RasterWorkerPoolClient interface. Each signal is generated as a result of calling ScheduleTasks() and the signals always reflect the state of the last call to ScheduleTasks(). BUG=253508, 254135, 252787 TEST=cc_unittests --gtest_filter=TileManagerTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209995

Patch Set 1 #

Patch Set 2 : add missing code #

Total comments: 21

Patch Set 3 : vmpstr's review and a number of other fixes #

Total comments: 16

Patch Set 4 : vmpstr's review #

Total comments: 3

Patch Set 5 : remove evil whitespace #

Patch Set 6 : Disable use of NotifyReadyToActivate() signal #

Patch Set 7 : Use "ready to activate" signal for activation in LTHI and fix task scheduling problems in pixel buf… #

Total comments: 6

Patch Set 8 : new approach #

Total comments: 19

Patch Set 9 : hybrid approach #

Total comments: 8

Patch Set 10 : vmpstr's review #

Patch Set 11 : add better tracing support #

Patch Set 12 : some more cleanup that allows use of StackVector #

Patch Set 13 : rebase #

Total comments: 1

Patch Set 14 : rebase #

Patch Set 15 : add back synchronous activation from CommitComplete #

Patch Set 16 : rebase #

Patch Set 17 : make sure raster finished ptrs are valid at compare time #

Patch Set 18 : limit oom_tiles_that_need_to_be_initialized_for_activation_ to total amount of gpu memory #

Patch Set 19 : fix flaky unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+931 lines, -402 lines) Patch
M cc/resources/image_raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +104 lines, -5 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 4 chunks +17 lines, -3 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 15 chunks +266 lines, -42 lines 0 comments Download
M cc/resources/raster_worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +36 lines, -23 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +110 lines, -95 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +39 lines, -2 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/tile.h View 1 2 3 4 5 6 7 2 chunks +1 line, -12 lines 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -1 line 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +148 lines, -86 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 6 7 5 chunks +41 lines, -15 lines 0 comments Download
M cc/resources/worker_pool.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +35 lines, -39 lines 0 comments Download
M cc/resources/worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +24 lines, -20 lines 0 comments Download
M cc/resources/worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +31 lines, -46 lines 0 comments Download
M cc/resources/worker_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -8 lines 0 comments Download
M cc/test/fake_tile_manager.h View 1 2 1 chunk +5 lines, -0 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 2 chunks +13 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 8 17 18 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 8 17 18 2 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +15 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
reveman
WIP but early feedback is still welcome.
7 years, 6 months ago (2013-06-21 01:58:34 UTC) #1
vmpstr
https://codereview.chromium.org/17351017/diff/3001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/17351017/diff/3001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode174 cc/resources/pixel_buffer_raster_worker_pool.cc:174: DCHECK(std::find(tasks_required_for_activation_.begin(), I don't think we need this dcheck. We ...
7 years, 6 months ago (2013-06-21 18:38:33 UTC) #2
reveman
Latest patch seem to be working OK. I've done some testing on my N10 and ...
7 years, 6 months ago (2013-06-24 16:04:03 UTC) #3
vmpstr
https://codereview.chromium.org/17351017/diff/3001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/17351017/diff/3001/cc/resources/tile_manager.cc#newcode561 cc/resources/tile_manager.cc:561: for (TileVector::iterator it = tiles_.begin(); it != tiles_.end(); ++it) ...
7 years, 6 months ago (2013-06-24 16:34:02 UTC) #4
reveman
https://codereview.chromium.org/17351017/diff/10001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/17351017/diff/10001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode231 cc/resources/pixel_buffer_raster_worker_pool.cc:231: OnRasterTasksRequiredForActivationFinished() { On 2013/06/24 16:34:03, vmpstr wrote: > nit: ...
7 years, 6 months ago (2013-06-24 19:05:17 UTC) #5
vmpstr
lgtm with a nit. https://codereview.chromium.org/17351017/diff/10001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (left): https://codereview.chromium.org/17351017/diff/10001/cc/resources/tile_manager.cc#oldcode672 cc/resources/tile_manager.cc:672: TRACE_EVENT0("cc", "TileManager::CreateImageDecodeTask"); On 2013/06/24 19:05:17, ...
7 years, 6 months ago (2013-06-24 19:16:46 UTC) #6
reveman
https://codereview.chromium.org/17351017/diff/17001/cc/resources/raster_worker_pool_unittest.cc File cc/resources/raster_worker_pool_unittest.cc (right): https://codereview.chromium.org/17351017/diff/17001/cc/resources/raster_worker_pool_unittest.cc#newcode81 cc/resources/raster_worker_pool_unittest.cc:81: virtual void DidFinishedRunningTasks() OVERRIDE { } On 2013/06/24 19:16:46, ...
7 years, 6 months ago (2013-06-24 21:08:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/17351017/22001
7 years, 6 months ago (2013-06-24 21:09:21 UTC) #8
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-25 11:07:44 UTC) #9
reveman
Latest patch fixes some task scheduling issues in PixeBufferRWP that could cause it to busy ...
7 years, 6 months ago (2013-06-26 13:45:07 UTC) #10
vmpstr
I suspect that I'm missing something... See comments: https://codereview.chromium.org/17351017/diff/57001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/17351017/diff/57001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode233 cc/resources/pixel_buffer_raster_worker_pool.cc:233: if ...
7 years, 6 months ago (2013-06-26 18:05:07 UTC) #11
reveman
I think the mistake we're doing is trying too hard to reuse code between ImageRasterWorkerPool ...
7 years, 6 months ago (2013-06-27 09:06:57 UTC) #12
vmpstr
I agree with your comment on trying to share too much. Conceptually, it's a nice ...
7 years, 5 months ago (2013-06-27 16:32:12 UTC) #13
reveman
Latest patch takes a new approach. Let me know what you think and maybe we ...
7 years, 5 months ago (2013-06-27 22:33:18 UTC) #14
vmpstr
I'm not sure that I like this approach over the previous one (I find it ...
7 years, 5 months ago (2013-06-27 23:31:20 UTC) #15
reveman
Please take a look at the latest patch. It's hybrid of the approach taken in ...
7 years, 5 months ago (2013-06-28 17:26:07 UTC) #16
vmpstr
lgtm with some nits. Can you file a bug for a follow-up to clean this ...
7 years, 5 months ago (2013-06-28 18:12:34 UTC) #17
reveman
https://codereview.chromium.org/17351017/diff/81001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/17351017/diff/81001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode347 cc/resources/pixel_buffer_raster_worker_pool.cc:347: NotifyClientThatFinishedRunningTasksRequiredForActivation(); On 2013/06/28 18:12:35, vmpstr wrote: > Maybe something ...
7 years, 5 months ago (2013-06-28 20:18:41 UTC) #18
vmpstr
On 2013/06/28 20:18:41, David Reveman wrote: > https://codereview.chromium.org/17351017/diff/81001/cc/resources/pixel_buffer_raster_worker_pool.cc > File cc/resources/pixel_buffer_raster_worker_pool.cc (right): > > https://codereview.chromium.org/17351017/diff/81001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode347 ...
7 years, 5 months ago (2013-06-28 20:21:46 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/17351017/84001
7 years, 5 months ago (2013-06-28 20:26:08 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/17351017/104001
7 years, 5 months ago (2013-06-29 17:23:30 UTC) #21
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 5 months ago (2013-06-30 02:56:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/17351017/104001
7 years, 5 months ago (2013-06-30 04:23:11 UTC) #23
boliu
https://codereview.chromium.org/17351017/diff/144001/cc/resources/tile_manager.h File cc/resources/tile_manager.h (right): https://codereview.chromium.org/17351017/diff/144001/cc/resources/tile_manager.h#newcode92 cc/resources/tile_manager.h:92: oom_tiles_that_need_to_be_initialized_for_activation_.empty(); The android_webivew tests run in software mode with ...
7 years, 5 months ago (2013-07-01 20:40:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/17351017/163001
7 years, 5 months ago (2013-07-03 04:03:21 UTC) #26
commit-bot: I haz the power
Change committed as 209912
7 years, 5 months ago (2013-07-03 08:16:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/17351017/176001
7 years, 5 months ago (2013-07-03 14:45:31 UTC) #28
commit-bot: I haz the power
7 years, 5 months ago (2013-07-03 17:09:56 UTC) #29
Message was sent while issue was closed.
Change committed as 209995

Powered by Google App Engine
This is Rietveld 408576698