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

Issue 2286583002: Make cc::SoftwareImageDecodeController, cc::ResourcePool, and cc::StagingBufferPoo… (Closed)

Created:
4 years, 3 months ago by tasak
Modified:
4 years, 3 months ago
Reviewers:
haraken, ericrk, vmpstr, bashi
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make cc::SoftwareImageDecodeController, cc::GpuImageDecodeController, cc::ResourcePool, and cc::StagingBufferPool MemoryCoordinatorClient. - implement OnMemoryStateChange for background renderer's purge + suspend. So the method reduces memory only when state == SUSPENDED. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing BUG=635419 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/e7ac1bbe93e087b173d503ca13b1e3b6f703b785 Cr-Commit-Position: refs/heads/master@{#418834}

Patch Set 1 #

Patch Set 2 : Fixed DEPS. #

Total comments: 12

Patch Set 3 : WIP #

Total comments: 2

Patch Set 4 : Fixed BUILD.gn's DEPS #

Total comments: 3

Patch Set 5 : Fixed windows build failure #

Total comments: 2

Patch Set 6 : Updated (r418766) #

Total comments: 3

Patch Set 7 : Updated (r418783) #

Total comments: 1

Patch Set 8 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -4 lines) Patch
M cc/raster/staging_buffer_pool.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M cc/raster/staging_buffer_pool.cc View 1 2 3 4 5 3 chunks +25 lines, -0 lines 0 comments Download
M cc/resources/resource_pool.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M cc/resources/resource_pool.cc View 1 2 3 4 5 3 chunks +25 lines, -0 lines 0 comments Download
M cc/tiles/gpu_image_decode_controller.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M cc/tiles/gpu_image_decode_controller.cc View 1 2 3 4 5 4 chunks +24 lines, -0 lines 0 comments Download
M cc/tiles/software_image_decode_controller.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M cc/tiles/software_image_decode_controller.cc View 1 2 3 4 5 4 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (38 generated)
tasak
Would you take a look at this patch? I would like to add OnMemoryStateChange to ...
4 years, 3 months ago (2016-08-26 08:57:27 UTC) #12
tasak
I have to add "registerClient" and "unregisterClient" to register/unregister these classes with MemoryCoordinator. https://codereview.chromium.org/2286583002/diff/20001/cc/raster/staging_buffer_pool.cc File ...
4 years, 3 months ago (2016-08-26 10:08:05 UTC) #15
bashi
On 2016/08/26 10:08:05, tasak wrote: > I have to add "registerClient" and "unregisterClient" to register/unregister ...
4 years, 3 months ago (2016-08-28 23:13:38 UTC) #16
haraken
Ericrk: Do you have any thoughts on this CL?
4 years, 3 months ago (2016-08-31 17:29:48 UTC) #17
vmpstr
Thanks for doing this! I only took a look at the software image decode controller. ...
4 years, 3 months ago (2016-08-31 17:45:51 UTC) #19
ericrk
https://codereview.chromium.org/2286583002/diff/20001/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/2286583002/diff/20001/cc/resources/resource_pool.cc#newcode460 cc/resources/resource_pool.cc:460: DeleteResource(PopBack(&unused_resources_)); This doesn't free "busy" resources, which can safely ...
4 years, 3 months ago (2016-08-31 17:50:32 UTC) #20
ericrk
Also, it's great to get this basic support in! Should these functions be expanded in ...
4 years, 3 months ago (2016-08-31 17:53:00 UTC) #21
haraken
On 2016/08/31 17:53:00, ericrk wrote: > Also, it's great to get this basic support in! ...
4 years, 3 months ago (2016-08-31 17:59:34 UTC) #22
vmpstr
On 2016/08/31 17:59:34, haraken wrote: > On 2016/08/31 17:53:00, ericrk wrote: > > Also, it's ...
4 years, 3 months ago (2016-08-31 18:08:03 UTC) #23
haraken
On 2016/08/31 18:08:03, vmpstr wrote: > On 2016/08/31 17:59:34, haraken wrote: > > On 2016/08/31 ...
4 years, 3 months ago (2016-08-31 18:15:11 UTC) #24
tasak
https://codereview.chromium.org/2286583002/diff/40001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/2286583002/diff/40001/cc/BUILD.gn#newcode570 cc/BUILD.gn:570: "//components/memory_coordinator/child", I made a mistake. We don't need this. ...
4 years, 3 months ago (2016-09-01 09:39:32 UTC) #25
tasak
On 2016/08/31 18:15:11, haraken wrote: > On 2016/08/31 18:08:03, vmpstr wrote: > > On 2016/08/31 ...
4 years, 3 months ago (2016-09-01 09:41:42 UTC) #28
ericrk
lgtm - thanks for taking care of this! Looked at where ChildMemoryCoordinatorImpl is created (in ...
4 years, 3 months ago (2016-09-01 16:42:23 UTC) #31
haraken
https://codereview.chromium.org/2286583002/diff/60001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2286583002/diff/60001/cc/raster/staging_buffer_pool.cc#newcode425 cc/raster/staging_buffer_pool.cc:425: memory_coordinator::mojom::MemoryState state) { On 2016/09/01 16:42:23, ericrk wrote: > ...
4 years, 3 months ago (2016-09-01 17:42:05 UTC) #32
ericrk
On 2016/09/01 17:42:05, haraken wrote: > https://codereview.chromium.org/2286583002/diff/60001/cc/raster/staging_buffer_pool.cc > File cc/raster/staging_buffer_pool.cc (right): > > https://codereview.chromium.org/2286583002/diff/60001/cc/raster/staging_buffer_pool.cc#newcode425 > ...
4 years, 3 months ago (2016-09-01 18:39:53 UTC) #33
haraken
On 2016/09/01 18:39:53, ericrk wrote: > On 2016/09/01 17:42:05, haraken wrote: > > > https://codereview.chromium.org/2286583002/diff/60001/cc/raster/staging_buffer_pool.cc ...
4 years, 3 months ago (2016-09-01 18:43:41 UTC) #34
bashi
On 2016/09/01 18:39:53, ericrk wrote: > On 2016/09/01 17:42:05, haraken wrote: > > > https://codereview.chromium.org/2286583002/diff/60001/cc/raster/staging_buffer_pool.cc ...
4 years, 3 months ago (2016-09-01 22:58:22 UTC) #35
haraken
On 2016/09/01 22:58:22, bashi1 wrote: > On 2016/09/01 18:39:53, ericrk wrote: > > On 2016/09/01 ...
4 years, 3 months ago (2016-09-01 23:17:14 UTC) #36
tasak
I'm now waiting until https://codereview.chromium.org/2311723002/ is landed.
4 years, 3 months ago (2016-09-06 07:09:32 UTC) #41
ericrk
On 2016/09/01 23:17:14, haraken wrote: > On 2016/09/01 22:58:22, bashi1 wrote: > > On 2016/09/01 ...
4 years, 3 months ago (2016-09-06 16:10:23 UTC) #42
vmpstr
lgtm as well https://codereview.chromium.org/2286583002/diff/80001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2286583002/diff/80001/cc/raster/staging_buffer_pool.cc#newcode438 cc/raster/staging_buffer_pool.cc:438: default: nit: typically, if we handle ...
4 years, 3 months ago (2016-09-06 18:14:48 UTC) #43
tasak
ericrk, vmpstr, thank you for review. bashi-san, would you check if this CL correctly uses ...
4 years, 3 months ago (2016-09-15 07:08:44 UTC) #48
bashi
https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc#newcode147 cc/raster/staging_buffer_pool.cc:147: base::MemoryCoordinatorClientRegistry::GetInstance()->Register(this); Could you check base::FeatureList::IsEnabled(features::kMemoryCoordinator) ?
4 years, 3 months ago (2016-09-15 07:41:01 UTC) #51
tasak
Thank you for review, bashi-san. https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc#newcode147 cc/raster/staging_buffer_pool.cc:147: base::MemoryCoordinatorClientRegistry::GetInstance()->Register(this); On 2016/09/15 07:41:01, ...
4 years, 3 months ago (2016-09-15 09:06:06 UTC) #54
bashi
https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc File cc/raster/staging_buffer_pool.cc (right): https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc#newcode147 cc/raster/staging_buffer_pool.cc:147: base::MemoryCoordinatorClientRegistry::GetInstance()->Register(this); On 2016/09/15 09:06:06, tasak wrote: > On 2016/09/15 ...
4 years, 3 months ago (2016-09-15 10:00:34 UTC) #55
tasak
On 2016/09/15 10:00:34, bashi1 wrote: > https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc > File cc/raster/staging_buffer_pool.cc (right): > > https://codereview.chromium.org/2286583002/diff/100001/cc/raster/staging_buffer_pool.cc#newcode147 > ...
4 years, 3 months ago (2016-09-15 10:03:28 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2286583002/120001
4 years, 3 months ago (2016-09-15 10:04:28 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/260080)
4 years, 3 months ago (2016-09-15 10:11:59 UTC) #62
tasak
https://codereview.chromium.org/2286583002/diff/120001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2286583002/diff/120001/content/renderer/render_thread_impl.cc#newcode1703 content/renderer/render_thread_impl.cc:1703: memory_coordinator_->PrepareToSuspend(); The code is just for explaining how to ...
4 years, 3 months ago (2016-09-15 10:28:01 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2286583002/140001
4 years, 3 months ago (2016-09-15 10:28:30 UTC) #66
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-15 11:13:15 UTC) #68
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e7ac1bbe93e087b173d503ca13b1e3b6f703b785 Cr-Commit-Position: refs/heads/master@{#418834}
4 years, 3 months ago (2016-09-15 11:14:55 UTC) #70
haraken
4 years, 3 months ago (2016-09-15 12:01:48 UTC) #71
Message was sent while issue was closed.
Ericrk: Now that this CL has been landed, would you implement the contents of
the OnMemoryStateChange method? Once it's done, we'll remeasure the memory
impact of purge+suspend and move things forward to start a Finch experiment.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698