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

Issue 807273005: cc: Prevent recursion in *TileTaskWorkerPool methods. (Closed)

Created:
6 years ago by vmiura
Modified:
6 years ago
Reviewers:
reveman, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, ernstm, boliu, reveman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Prevent recursion in *TileTaskWorkerPool methods. PixelBufferTileTaskWorkerPool::CheckForCompletedRasterTasks() has a DCHECK that triggers due to TileManager::DidFinishRunningTileTasks recursing back into PixelBufferTileTaskWorkerPool. This patch removes the recursion. BUG=442598 Committed: https://crrev.com/49dc26e98442218f986ec0804e9637f8cde91366 Cr-Commit-Position: refs/heads/master@{#309603}

Patch Set 1 : #

Patch Set 2 : Update tests to also not call TTW recursively. #

Patch Set 3 : Use DCHECK instead of CHECK. #

Total comments: 3

Patch Set 4 : Removed reentrance checks. Will make that a separate CL. #

Total comments: 4

Patch Set 5 : Fixed suggestions. #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase more. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -65 lines) Patch
M cc/resources/tile_manager.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 3 chunks +67 lines, -61 lines 0 comments Download
M cc/resources/tile_task_worker_pool_unittest.cc View 1 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
vmiura
PTAL. If this make sense, I would add the single_entry checks to all TTWs.
6 years ago (2014-12-18 00:25:47 UTC) #3
vmpstr
I'm not sure about the single entry checks. You could argue that being single-entry-only is ...
6 years ago (2014-12-18 00:49:35 UTC) #4
vmpstr
On 2014/12/18 00:49:35, vmpstr wrote: > I'm not sure about the single entry checks. You ...
6 years ago (2014-12-18 00:51:19 UTC) #5
vmiura
On 2014/12/18 00:49:35, vmpstr wrote: > I'm not sure about the single entry checks. You ...
6 years ago (2014-12-18 01:10:55 UTC) #6
vmpstr
On 2014/12/18 01:10:55, vmiura wrote: > On 2014/12/18 00:49:35, vmpstr wrote: > > I'm not ...
6 years ago (2014-12-18 01:15:39 UTC) #7
vmiura
On 2014/12/18 01:15:39, vmpstr wrote: > On 2014/12/18 01:10:55, vmiura wrote: > > On 2014/12/18 ...
6 years ago (2014-12-18 01:24:57 UTC) #8
vmpstr
> Oh sure. We have three tests that fail the sanity check without the TileManager ...
6 years ago (2014-12-18 03:36:10 UTC) #9
vmiura
On 2014/12/18 03:36:10, vmpstr wrote: > > Oh sure. We have three tests that fail ...
6 years ago (2014-12-18 16:55:54 UTC) #10
reveman
https://codereview.chromium.org/807273005/diff/60001/cc/base/util.h File cc/base/util.h (right): https://codereview.chromium.org/807273005/diff/60001/cc/base/util.h#newcode28 cc/base/util.h:28: class ScopedSingleEntry { This seems very similar to base::ThreadCollisionWarner. ...
6 years ago (2014-12-18 19:24:08 UTC) #12
vmpstr
> > I ran smoothness & frame times but it's hard to see a difference ...
6 years ago (2014-12-18 20:09:39 UTC) #13
vmiura
https://codereview.chromium.org/807273005/diff/60001/cc/base/util.h File cc/base/util.h (right): https://codereview.chromium.org/807273005/diff/60001/cc/base/util.h#newcode28 cc/base/util.h:28: class ScopedSingleEntry { On 2014/12/18 19:24:07, reveman wrote: > ...
6 years ago (2014-12-18 21:16:48 UTC) #14
reveman
https://codereview.chromium.org/807273005/diff/60001/cc/base/util.h File cc/base/util.h (right): https://codereview.chromium.org/807273005/diff/60001/cc/base/util.h#newcode28 cc/base/util.h:28: class ScopedSingleEntry { On 2014/12/18 21:16:48, vmiura wrote: > ...
6 years ago (2014-12-19 00:03:18 UTC) #15
vmiura
PTAL. Will add the reentrance checks as a separate CL.
6 years ago (2014-12-19 00:19:07 UTC) #16
reveman
lgtm with nit https://codereview.chromium.org/807273005/diff/80001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/807273005/diff/80001/cc/resources/tile_manager.cc#newcode879 cc/resources/tile_manager.cc:879: // would otherwise not be picked ...
6 years ago (2014-12-19 01:07:45 UTC) #17
vmiura
https://codereview.chromium.org/807273005/diff/80001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/807273005/diff/80001/cc/resources/tile_manager.cc#newcode879 cc/resources/tile_manager.cc:879: // would otherwise not be picked up by the ...
6 years ago (2014-12-23 22:28:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807273005/140001
6 years ago (2014-12-24 01:18:15 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:140001)
6 years ago (2014-12-24 02:04:52 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-24 02:05:36 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/49dc26e98442218f986ec0804e9637f8cde91366
Cr-Commit-Position: refs/heads/master@{#309603}

Powered by Google App Engine
This is Rietveld 408576698