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

Issue 1016733002: cc: Free gpu resources when we are invisible or TM is oom. (Closed)

Created:
5 years, 9 months ago by sohanjg
Modified:
5 years, 2 months ago
CC:
bsalomon_chromium, cc-bugs_chromium.org, chromium-reviews, Jvsquare, joshua.litt
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Free Gpu resources when we are invisible or TileManager is OOM. This patch free's the gpu resources held up by GrContext, when LTHI becomes invisible or our hard memory limit has reduced to 0 (OOM). BUG=367196

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments addressed. #

Total comments: 8

Patch Set 3 : restore gr cache limit #

Total comments: 1

Patch Set 4 : review comments addressed. #

Total comments: 10

Patch Set 5 : review comments addressed. #

Total comments: 4

Patch Set 6 : use freegpuresource instead of cache limit maintenance. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M cc/resources/resource_provider.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (5 generated)
sohanjg
Please take a look, thanks. TileManager doesnt seem to handle any OOM tests explicitly now, ...
5 years, 9 months ago (2015-03-17 11:20:18 UTC) #2
sohanjg
On 2015/03/17 11:20:18, sohanjg wrote: > Please take a look, thanks. > > TileManager doesnt ...
5 years, 9 months ago (2015-03-17 12:51:31 UTC) #3
vmiura
vmpstr@, danakj@ could you provide some guidance on where to handle a memory policy change? ...
5 years, 9 months ago (2015-03-19 21:20:35 UTC) #4
danakj
5 years, 9 months ago (2015-03-19 22:04:35 UTC) #6
enne (OOO)
Yeah, LayerTreeHostImpl::UpdateTileManagerMemoryPolicy/EnforceMamangedMemoryPolicy seems like a better spot for this sort of thing. Maybe we also ...
5 years, 9 months ago (2015-03-19 22:56:35 UTC) #7
sohanjg
Thanks for the review, please take a look. https://codereview.chromium.org/1016733002/diff/1/cc/resources/gpu_rasterizer.cc File cc/resources/gpu_rasterizer.cc (right): https://codereview.chromium.org/1016733002/diff/1/cc/resources/gpu_rasterizer.cc#newcode195 cc/resources/gpu_rasterizer.cc:195: GrContext* ...
5 years, 9 months ago (2015-03-23 10:34:38 UTC) #8
vmiura
https://codereview.chromium.org/1016733002/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/1016733002/diff/1/cc/resources/tile_manager.cc#newcode643 cc/resources/tile_manager.cc:643: rasterizer_->ClearCache(); On 2015/03/17 11:20:18, sohanjg wrote: > Will this ...
5 years, 9 months ago (2015-03-23 20:34:40 UTC) #9
vmiura
On 2015/03/23 20:34:40, vmiura wrote: > https://codereview.chromium.org/1016733002/diff/1/cc/resources/tile_manager.cc > File cc/resources/tile_manager.cc (right): > > https://codereview.chromium.org/1016733002/diff/1/cc/resources/tile_manager.cc#newcode643 > ...
5 years, 9 months ago (2015-03-23 20:35:30 UTC) #10
sohanjg
https://codereview.chromium.org/1016733002/diff/20001/cc/resources/gpu_rasterizer.cc File cc/resources/gpu_rasterizer.cc (right): https://codereview.chromium.org/1016733002/diff/20001/cc/resources/gpu_rasterizer.cc#newcode208 cc/resources/gpu_rasterizer.cc:208: gr_context->setResourceCacheLimits(0, 0); On 2015/03/23 20:34:40, vmiura wrote: > We'll ...
5 years, 9 months ago (2015-03-24 05:42:09 UTC) #11
vmiura
https://codereview.chromium.org/1016733002/diff/20001/cc/resources/gpu_rasterizer.cc File cc/resources/gpu_rasterizer.cc (right): https://codereview.chromium.org/1016733002/diff/20001/cc/resources/gpu_rasterizer.cc#newcode208 cc/resources/gpu_rasterizer.cc:208: gr_context->setResourceCacheLimits(0, 0); On 2015/03/24 05:42:09, sohanjg wrote: > On ...
5 years, 9 months ago (2015-03-24 06:32:52 UTC) #12
sohanjg
Can you please take a look. thanks. https://codereview.chromium.org/1016733002/diff/20001/cc/resources/gpu_rasterizer.cc File cc/resources/gpu_rasterizer.cc (right): https://codereview.chromium.org/1016733002/diff/20001/cc/resources/gpu_rasterizer.cc#newcode208 cc/resources/gpu_rasterizer.cc:208: gr_context->setResourceCacheLimits(0, 0); ...
5 years, 9 months ago (2015-03-24 13:03:36 UTC) #13
sohanjg
On 2015/03/24 13:03:36, sohanjg wrote: > Can you please take a look. thanks. > > ...
5 years, 8 months ago (2015-03-31 12:17:58 UTC) #14
enne (OOO)
https://codereview.chromium.org/1016733002/diff/40001/cc/resources/gpu_rasterizer.cc File cc/resources/gpu_rasterizer.cc (right): https://codereview.chromium.org/1016733002/diff/40001/cc/resources/gpu_rasterizer.cc#newcode211 cc/resources/gpu_rasterizer.cc:211: gr_context->getResourceCacheLimits(&maxTextures_, &maxTextureBytes_); Who sets these limits in the first ...
5 years, 8 months ago (2015-03-31 18:43:06 UTC) #15
sohanjg
On 2015/03/31 18:43:06, enne wrote: > https://codereview.chromium.org/1016733002/diff/40001/cc/resources/gpu_rasterizer.cc > File cc/resources/gpu_rasterizer.cc (right): > > https://codereview.chromium.org/1016733002/diff/40001/cc/resources/gpu_rasterizer.cc#newcode211 > ...
5 years, 8 months ago (2015-04-01 11:42:38 UTC) #16
vmiura
+ bsalomon@ Brian, should we default these values in CC instead of using GrContext defaults? ...
5 years, 8 months ago (2015-04-01 18:27:47 UTC) #18
bsalomon
On 2015/04/01 18:27:47, vmiura wrote: > + bsalomon@ > > Brian, should we default these ...
5 years, 8 months ago (2015-04-01 21:08:29 UTC) #19
vmiura
On 2015/04/01 21:08:29, bsalomon wrote: > On 2015/04/01 18:27:47, vmiura wrote: > > + bsalomon@ ...
5 years, 8 months ago (2015-04-02 00:15:09 UTC) #20
sohanjg
thanks for the review, can you please take a look.
5 years, 8 months ago (2015-04-02 12:48:21 UTC) #21
vmiura
Thanks for the update. A few comments. Enne/Dana, what do you think we should be ...
5 years, 8 months ago (2015-04-02 19:12:34 UTC) #22
vmiura
piman@ mentioned we may want to call GLES2Implementation::SetSurfaceVisible(false/true) as well, to free transfer buffers used ...
5 years, 8 months ago (2015-04-02 19:19:54 UTC) #23
enne (OOO)
On 2015/04/02 at 19:12:34, vmiura wrote: > Enne/Dana, what do you think we should be ...
5 years, 8 months ago (2015-04-02 19:59:49 UTC) #24
sohanjg
Sorry for being late on this, was OOO. Please take a look, thanks. https://codereview.chromium.org/1016733002/diff/60001/cc/resources/gpu_rasterizer.cc File ...
5 years, 8 months ago (2015-04-08 09:00:31 UTC) #25
sohanjg
Sorry for being late on this, was OOO. Please take a look, thanks.
5 years, 8 months ago (2015-04-08 09:00:32 UTC) #26
enne (OOO)
https://codereview.chromium.org/1016733002/diff/80001/cc/resources/gpu_rasterizer.cc File cc/resources/gpu_rasterizer.cc (right): https://codereview.chromium.org/1016733002/diff/80001/cc/resources/gpu_rasterizer.cc#newcode30 cc/resources/gpu_rasterizer.cc:30: const int kMaxGaneshResourceCacheCount = 2048; Maybe you could make ...
5 years, 8 months ago (2015-04-08 17:19:34 UTC) #27
vmiura
+hendrikw@ Heads up that crrev.com/1063493002 moved the Renderer instance from LTHI to under GpuTileTaskWorkerPool.
5 years, 8 months ago (2015-04-08 19:16:20 UTC) #28
sohanjg
Ahh! this makes things interesting :) what should be the plan, have TileTaskWorkerPool expose a ...
5 years, 8 months ago (2015-04-09 09:20:45 UTC) #29
hendrikw
One last thing. I guess this is being done to save memory on mobile. Would ...
5 years, 8 months ago (2015-04-09 15:43:45 UTC) #31
vmiura
> Ahh! this makes things interesting :) > > what should be the plan, have ...
5 years, 8 months ago (2015-04-09 23:10:42 UTC) #32
sohanjg
On 2015/04/09 23:10:42, vmiura wrote: > > Ahh! this makes things interesting :) > > ...
5 years, 8 months ago (2015-04-13 17:01:08 UTC) #33
hendrikw
On 2015/04/13 17:01:08, sohanjg wrote: > On 2015/04/09 23:10:42, vmiura wrote: > > > Ahh! ...
5 years, 8 months ago (2015-04-13 17:19:42 UTC) #34
sohanjg
On 2015/04/13 17:19:42, hendrikw wrote: > On 2015/04/13 17:01:08, sohanjg wrote: > > On 2015/04/09 ...
5 years, 8 months ago (2015-04-14 04:49:45 UTC) #35
bsalomon
On 2015/04/14 04:49:45, sohanjg wrote: > On 2015/04/13 17:19:42, hendrikw wrote: > > On 2015/04/13 ...
5 years, 8 months ago (2015-04-14 17:33:57 UTC) #36
sohanjg
On 2015/04/14 17:33:57, bsalomon wrote: > On 2015/04/14 04:49:45, sohanjg wrote: > > On 2015/04/13 ...
5 years, 8 months ago (2015-04-15 11:04:23 UTC) #37
sohanjg
On 2015/04/15 11:04:23, sohanjg wrote: > On 2015/04/14 17:33:57, bsalomon wrote: > > On 2015/04/14 ...
5 years, 8 months ago (2015-04-20 16:38:14 UTC) #39
hendrikw
On 2015/04/20 16:38:14, sohanjg wrote: > On 2015/04/15 11:04:23, sohanjg wrote: > > On 2015/04/14 ...
5 years, 8 months ago (2015-04-20 17:58:19 UTC) #40
sohanjg
On 2015/04/20 17:58:19, hendrikw wrote: > On 2015/04/20 16:38:14, sohanjg wrote: > > On 2015/04/15 ...
5 years, 8 months ago (2015-04-23 15:05:23 UTC) #41
hendrikw
On 2015/04/23 15:05:23, sohanjg wrote: > On 2015/04/20 17:58:19, hendrikw wrote: > > On 2015/04/20 ...
5 years, 8 months ago (2015-04-23 15:43:59 UTC) #42
vmiura
On 2015/04/23 15:43:59, hendrikw wrote: > On 2015/04/23 15:05:23, sohanjg wrote: > > On 2015/04/20 ...
5 years, 8 months ago (2015-04-23 17:01:37 UTC) #43
sohanjg
On 2015/04/23 17:01:37, vmiura wrote: > On 2015/04/23 15:43:59, hendrikw wrote: > > On 2015/04/23 ...
5 years, 8 months ago (2015-04-24 10:19:20 UTC) #44
hendrikw
On 2015/04/24 10:19:20, sohanjg wrote: > On 2015/04/23 17:01:37, vmiura wrote: > > On 2015/04/23 ...
5 years, 8 months ago (2015-04-24 16:22:21 UTC) #45
sohanjg
On 2015/04/24 16:22:21, hendrikw wrote: > On 2015/04/24 10:19:20, sohanjg wrote: > > On 2015/04/23 ...
5 years, 7 months ago (2015-04-27 09:07:37 UTC) #46
sohanjg
On 2015/04/27 09:07:37, sohanjg wrote: > On 2015/04/24 16:22:21, hendrikw wrote: > > On 2015/04/24 ...
5 years, 7 months ago (2015-04-28 05:17:10 UTC) #47
sohanjg
On 2015/04/28 05:17:10, sohanjg wrote: > On 2015/04/27 09:07:37, sohanjg wrote: > > On 2015/04/24 ...
5 years, 7 months ago (2015-04-28 06:39:43 UTC) #48
hendrikw
On 2015/04/28 06:39:43, sohanjg wrote: > Wouldnt this code take care of clearing cache when ...
5 years, 7 months ago (2015-04-30 16:15:30 UTC) #49
sohanjg
On 2015/04/30 16:15:30, hendrikw wrote: > On 2015/04/28 06:39:43, sohanjg wrote: > > Wouldnt this ...
5 years, 7 months ago (2015-04-30 17:02:34 UTC) #50
sohanjg
On 2015/04/30 17:02:34, sohanjg wrote: > On 2015/04/30 16:15:30, hendrikw wrote: > > On 2015/04/28 ...
5 years, 7 months ago (2015-04-30 17:19:14 UTC) #51
vmiura
> > > vmiura@, I re-read the bug that's attached to this cl, I think ...
5 years, 7 months ago (2015-05-06 21:38:55 UTC) #52
sohanjg
On 2015/05/06 21:38:55, vmiura wrote: > > > > vmiura@, I re-read the bug that's ...
5 years, 7 months ago (2015-05-07 02:08:05 UTC) #53
sohanjg
On 2015/05/07 02:08:05, sohanjg wrote: > On 2015/05/06 21:38:55, vmiura wrote: > > > > ...
5 years, 7 months ago (2015-05-11 13:50:19 UTC) #54
ericrk
On 2015/05/11 13:50:19, sohanjg wrote: > On 2015/05/07 02:08:05, sohanjg wrote: > > On 2015/05/06 ...
5 years, 7 months ago (2015-05-22 17:21:37 UTC) #55
ericrk
On 2015/05/22 17:21:37, ericrk wrote: > On 2015/05/11 13:50:19, sohanjg wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-22 18:14:27 UTC) #56
ericrk
On 2015/05/22 18:14:27, ericrk wrote: > On 2015/05/22 17:21:37, ericrk wrote: > > On 2015/05/11 ...
5 years, 7 months ago (2015-05-22 18:30:40 UTC) #57
bsalomon
On 2015/05/22 18:30:40, ericrk wrote: > On 2015/05/22 18:14:27, ericrk wrote: > > On 2015/05/22 ...
5 years, 7 months ago (2015-05-22 19:15:23 UTC) #58
joshualitt
this CL: https://codereview.chromium.org/1156693004/ Should hopefully fix the batchfontcache issue. Let me know if that is ...
5 years, 7 months ago (2015-05-22 21:04:42 UTC) #59
ericrk
On 2015/05/22 21:04:42, joshualitt wrote: > this CL: > https://codereview.chromium.org/1156693004/ > > Should hopefully fix ...
5 years, 7 months ago (2015-05-22 22:35:46 UTC) #60
sohanjg
On 2015/05/22 22:35:46, ericrk wrote: > On 2015/05/22 21:04:42, joshualitt wrote: > > this CL: ...
5 years, 7 months ago (2015-05-23 13:16:51 UTC) #61
joshualitt
On 2015/05/23 13:16:51, sohanjg wrote: > On 2015/05/22 22:35:46, ericrk wrote: > > On 2015/05/22 ...
5 years, 6 months ago (2015-05-26 14:40:59 UTC) #62
ericrk
On 2015/05/26 14:40:59, joshualitt wrote: > On 2015/05/23 13:16:51, sohanjg wrote: > > On 2015/05/22 ...
5 years, 6 months ago (2015-05-26 18:11:30 UTC) #63
sohanjg
On 2015/05/26 18:11:30, ericrk wrote: > On 2015/05/26 14:40:59, joshualitt wrote: > > On 2015/05/23 ...
5 years, 6 months ago (2015-05-27 12:33:24 UTC) #64
ericrk
On 2015/05/27 12:33:24, sohanjg wrote: > On 2015/05/26 18:11:30, ericrk wrote: > > On 2015/05/26 ...
5 years, 6 months ago (2015-05-28 18:25:07 UTC) #65
sohanjg
On 2015/05/28 18:25:07, ericrk wrote: > On 2015/05/27 12:33:24, sohanjg wrote: > > On 2015/05/26 ...
5 years, 6 months ago (2015-06-01 12:40:01 UTC) #66
sohanjg
5 years, 6 months ago (2015-06-02 02:52:07 UTC) #67
vmiura@, hendrikw@, whats more is reqd in this patch to land ?
ericrk@ has started over the followups in separate CL.
thanks.

Powered by Google App Engine
This is Rietveld 408576698