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

Issue 43753002: cc: Keep track of busy resources in ResourcePool (Closed)

Created:
7 years, 1 month ago by jadahl
Modified:
7 years, 1 month ago
Reviewers:
danakj, reveman, piman
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, piman, vmpstr, ccameron
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Keep track of busy resources in ResourcePool Instead of assuming every released resource could be potentially reusable, manage a list of busy resources and a list of immediately reusable resources. A busy resource is one which can not be locked for write. Recheck busy resources before the tile manager is to schedule new tasks, in AssignGpuMemoryToTiles(). If this operation becomes too expensive, the CheckBusyResources() function should only be called if some resource(s) are returned from the parent compositor or when ResourcePool releases some resource. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233374

Patch Set 1 #

Total comments: 7

Patch Set 2 : cc: Keep track of resources used by consumers in ResourcePool #

Patch Set 3 : cc: Keep track of resources used by consumers in ResourcePool #

Total comments: 19

Patch Set 4 : cc: Keep track of busy resources in ResourcePool #

Total comments: 1

Patch Set 5 : cc: Keep track of busy resources in ResourcePool #

Total comments: 1

Patch Set 6 : cc: Keep track of exported resources in ResourcePool #

Total comments: 1

Patch Set 7 : cc: Keep track of busy resources in ResourcePool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -10 lines) Patch
M cc/resources/resource_pool.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 4 5 6 3 chunks +18 lines, -10 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
jadahl
Hi, This is an optimization that makes TileManager::ManageTiles take less time when using the delegating ...
7 years, 1 month ago (2013-10-25 10:04:45 UTC) #1
reveman
On 2013/10/25 10:04:45, jadahl wrote: > Hi, > > This is an optimization that makes ...
7 years, 1 month ago (2013-10-25 14:16:59 UTC) #2
jadahl
On 2013/10/25 14:16:59, David Reveman wrote: > On 2013/10/25 10:04:45, jadahl wrote: > > Hi, ...
7 years, 1 month ago (2013-10-25 14:52:10 UTC) #3
piman
https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc#newcode43 cc/resources/resource_pool.cc:43: if (resource_provider_.get()) Can this be NULL? Below we SetResourceUsageLimits ...
7 years, 1 month ago (2013-10-25 21:51:10 UTC) #4
jadahl
https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc#newcode43 cc/resources/resource_pool.cc:43: if (resource_provider_.get()) On 2013/10/25 21:51:11, piman wrote: > Can ...
7 years, 1 month ago (2013-10-28 09:59:29 UTC) #5
jadahl
On 2013/10/28 09:59:29, jadahl wrote: > https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc > File cc/resources/resource_pool.cc (right): > > https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc#newcode43 > ...
7 years, 1 month ago (2013-10-28 14:33:48 UTC) #6
reveman
On 2013/10/28 14:33:48, jadahl wrote: > On 2013/10/28 09:59:29, jadahl wrote: > > https://codereview.chromium.org/43753002/diff/1/cc/resources/resource_pool.cc > ...
7 years, 1 month ago (2013-10-28 16:18:08 UTC) #7
jadahl
On 2013/10/28 16:18:08, David Reveman wrote: > On 2013/10/28 14:33:48, jadahl wrote: > > On ...
7 years, 1 month ago (2013-10-28 16:50:00 UTC) #8
reveman
On 2013/10/28 16:50:00, jadahl wrote: > On 2013/10/28 16:18:08, David Reveman wrote: > > On ...
7 years, 1 month ago (2013-10-28 16:59:17 UTC) #9
jadahl
On 2013/10/28 16:59:17, David Reveman wrote: > On 2013/10/28 16:50:00, jadahl wrote: > > On ...
7 years, 1 month ago (2013-10-28 18:30:49 UTC) #10
reveman
On 2013/10/28 18:30:49, jadahl wrote: > On 2013/10/28 16:59:17, David Reveman wrote: > > On ...
7 years, 1 month ago (2013-10-28 18:49:57 UTC) #11
jadahl
On 2013/10/28 18:49:57, David Reveman wrote: > On 2013/10/28 18:30:49, jadahl wrote: > > On ...
7 years, 1 month ago (2013-10-29 10:56:07 UTC) #12
reveman
On 2013/10/29 10:56:07, jadahl wrote: > On 2013/10/28 18:49:57, David Reveman wrote: > > On ...
7 years, 1 month ago (2013-10-29 13:22:43 UTC) #13
jadahl
Uploaded a new version.
7 years, 1 month ago (2013-10-30 13:54:12 UTC) #14
reveman
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode51 cc/resources/resource_pool.cc:51: if (!resource_provider_->CanLockForWrite(resource->id())) Do we still need this? What's the ...
7 years, 1 month ago (2013-10-30 14:56:01 UTC) #15
danakj
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode86 cc/resources/resource_pool.cc:86: if (resource_provider_->InUseByConsumer(resource->id())) On 2013/10/30 14:56:02, David Reveman wrote: > ...
7 years, 1 month ago (2013-10-30 15:12:40 UTC) #16
reveman
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode86 cc/resources/resource_pool.cc:86: if (resource_provider_->InUseByConsumer(resource->id())) On 2013/10/30 15:12:40, danakj wrote: > On ...
7 years, 1 month ago (2013-10-30 18:50:46 UTC) #17
danakj
On Wed, Oct 30, 2013 at 2:50 PM, <reveman@chromium.org> wrote: > > https://codereview.chromium.**org/43753002/diff/230001/cc/** > resources/resource_pool.cc<https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc> ...
7 years, 1 month ago (2013-10-30 18:52:55 UTC) #18
piman
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode51 cc/resources/resource_pool.cc:51: if (!resource_provider_->CanLockForWrite(resource->id())) On 2013/10/30 14:56:02, David Reveman wrote: > ...
7 years, 1 month ago (2013-10-30 19:35:30 UTC) #19
reveman
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode51 cc/resources/resource_pool.cc:51: if (!resource_provider_->CanLockForWrite(resource->id())) On 2013/10/30 19:35:30, piman wrote: > On ...
7 years, 1 month ago (2013-10-30 21:10:28 UTC) #20
piman
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode51 cc/resources/resource_pool.cc:51: if (!resource_provider_->CanLockForWrite(resource->id())) On 2013/10/30 21:10:28, David Reveman wrote: > ...
7 years, 1 month ago (2013-10-30 21:41:11 UTC) #21
reveman
On 2013/10/30 21:41:11, piman wrote: > https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc > File cc/resources/resource_pool.cc (right): > > https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode51 > ...
7 years, 1 month ago (2013-10-30 21:48:20 UTC) #22
jadahl
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode81 cc/resources/resource_pool.cc:81: return; On 2013/10/30 19:35:30, piman wrote: > On 2013/10/30 ...
7 years, 1 month ago (2013-10-31 08:38:41 UTC) #23
danakj
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode81 cc/resources/resource_pool.cc:81: return; On 2013/10/31 08:38:42, jadahl wrote: > On 2013/10/30 ...
7 years, 1 month ago (2013-10-31 17:27:51 UTC) #24
reveman
https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/230001/cc/resources/resource_pool.cc#newcode81 cc/resources/resource_pool.cc:81: return; On 2013/10/31 17:27:52, danakj wrote: > On 2013/10/31 ...
7 years, 1 month ago (2013-10-31 19:41:48 UTC) #25
jadahl
New version uploaded.
7 years, 1 month ago (2013-11-01 10:02:49 UTC) #26
reveman
lgtm with nit https://codereview.chromium.org/43753002/diff/370001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/43753002/diff/370001/cc/resources/resource_pool.cc#newcode136 cc/resources/resource_pool.cc:136: ReduceResourceUsage(); nit: I don't think we ...
7 years, 1 month ago (2013-11-01 15:59:39 UTC) #27
jadahl
New version with nitpick addressed. Related practical questions: to change the final commit message, do ...
7 years, 1 month ago (2013-11-02 11:25:54 UTC) #28
reveman
another nit. just change the description to have the commit message change. please add a ...
7 years, 1 month ago (2013-11-02 13:31:13 UTC) #29
jadahl
Uploaded new, with added DCHECK.
7 years, 1 month ago (2013-11-02 15:02:30 UTC) #30
reveman
lgtm
7 years, 1 month ago (2013-11-03 14:09:12 UTC) #31
jadahl
On 2013/11/03 14:09:12, David Reveman wrote: > lgtm Should I wait for lgtm from other ...
7 years, 1 month ago (2013-11-05 10:34:34 UTC) #32
reveman
You can go ahead and land this after moving "unused_memory_usage_bytes_ +=" to CheckBusyResources(). https://codereview.chromium.org/43753002/diff/460001/cc/resources/resource_pool.cc File ...
7 years, 1 month ago (2013-11-05 15:38:26 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jadahl@opera.com/43753002/530001
7 years, 1 month ago (2013-11-05 16:15:53 UTC) #34
jadahl
On 2013/11/05 15:38:26, David Reveman wrote: > You can go ahead and land this after ...
7 years, 1 month ago (2013-11-05 16:16:13 UTC) #35
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-05 16:34:56 UTC) #36
jadahl
On 2013/11/05 16:34:56, I haz the power (commit-bot) wrote: > Step "update" is always a ...
7 years, 1 month ago (2013-11-06 09:37:22 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jadahl@opera.com/43753002/530001
7 years, 1 month ago (2013-11-06 13:31:08 UTC) #38
reveman
On 2013/11/06 09:37:22, jadahl wrote: > On 2013/11/05 16:34:56, I haz the power (commit-bot) wrote: ...
7 years, 1 month ago (2013-11-06 13:31:18 UTC) #39
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94917
7 years, 1 month ago (2013-11-06 17:06:53 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jadahl@opera.com/43753002/530001
7 years, 1 month ago (2013-11-06 17:11:40 UTC) #41
commit-bot: I haz the power
7 years, 1 month ago (2013-11-06 21:30:20 UTC) #42
Message was sent while issue was closed.
Change committed as 233374

Powered by Google App Engine
This is Rietveld 408576698