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

Issue 168053002: GPU: Adjust memory and use the soft-limit. (Closed)

Created:
6 years, 10 months ago by epenner
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, piman+watch_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

GPU: Adjust memory and use the soft-limit. We now have a soft limit, so we adjust some memory limits up, and enable the soft-limit to bring the effective usage down. Initially we bump most limits up a bit (except for really high-end which is already at 256MB), and then we cut the soft limit to 50% of that. For low-end, to be extra careful we only increase the limit from 8MB to 12MB, and set the soft limit back to 8MB. BUG=337940, 273127 TBR=piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251544

Patch Set 1 #

Total comments: 6

Patch Set 2 : Typo. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -10 lines) Patch
M content/renderer/gpu/render_widget_compositor.cc View 1 chunk +14 lines, -0 lines 2 comments Download
M ui/gl/gl_context_android.cc View 1 1 chunk +16 lines, -10 lines 4 comments Download

Messages

Total messages: 12 (0 generated)
epenner
Ptal.
6 years, 10 months ago (2014-02-15 00:44:25 UTC) #1
aelias_OOO_until_Jul13
https://codereview.chromium.org/168053002/diff/1/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/168053002/diff/1/content/renderer/gpu/render_widget_compositor.cc#newcode266 content/renderer/gpu/render_widget_compositor.cc:266: // TODO(boliu): Set this ratio for Webview. How about ...
6 years, 10 months ago (2014-02-15 00:55:17 UTC) #2
epenner
https://codereview.chromium.org/168053002/diff/1/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/168053002/diff/1/content/renderer/gpu/render_widget_compositor.cc#newcode266 content/renderer/gpu/render_widget_compositor.cc:266: // TODO(boliu): Set this ratio for Webview. On 2014/02/15 ...
6 years, 10 months ago (2014-02-15 01:02:27 UTC) #3
aelias_OOO_until_Jul13
Makes sense, lgtm.
6 years, 10 months ago (2014-02-15 01:03:45 UTC) #4
epenner
On 2014/02/15 01:03:45, aelias wrote: > Makes sense, lgtm. +boliu. I've added a TODO(boliu), but ...
6 years, 10 months ago (2014-02-15 01:09:09 UTC) #5
epenner
I'm TBR'ing since piman hasn't had a problem with similar changes (mostly rubber stamps), and ...
6 years, 10 months ago (2014-02-15 02:11:37 UTC) #6
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 10 months ago (2014-02-15 02:11:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/168053002/70001
6 years, 10 months ago (2014-02-15 02:14:10 UTC) #8
commit-bot: I haz the power
Change committed as 251544
6 years, 10 months ago (2014-02-15 05:40:29 UTC) #9
klobag.chromium
https://codereview.chromium.org/168053002/diff/70001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/168053002/diff/70001/content/renderer/gpu/render_widget_compositor.cc#newcode269 content/renderer/gpu/render_widget_compositor.cc:269: // apps. So initially we use 50% more memory ...
6 years, 10 months ago (2014-02-15 07:27:20 UTC) #10
piman
post-facto OWNER lgtm.
6 years, 10 months ago (2014-02-15 23:14:50 UTC) #11
epenner
6 years, 10 months ago (2014-02-17 05:43:22 UTC) #12
Message was sent while issue was closed.
Thanks all. I'll fix up the remaining comments. Just preferred this to be in
before branch cut.

https://codereview.chromium.org/168053002/diff/70001/content/renderer/gpu/ren...
File content/renderer/gpu/render_widget_compositor.cc (right):

https://codereview.chromium.org/168053002/diff/70001/content/renderer/gpu/ren...
content/renderer/gpu/render_widget_compositor.cc:269: // apps. So initially we
use 50% more memory to avoid flickering
On 2014/02/15 07:27:20, klobag.chromium wrote:
> comment 50% is not matching code 67%.

Oh, yes this comment is very confusing. We do actually use 50% more (12MB vs
8MB), so this is 8/12 = 67%.  I'll clean this up to be more clear.

https://codereview.chromium.org/168053002/diff/70001/ui/gl/gl_context_android.cc
File ui/gl/gl_context_android.cc (right):

https://codereview.chromium.org/168053002/diff/70001/ui/gl/gl_context_android...
ui/gl/gl_context_android.cc:117: // pre-painting and uses the rest only for
'emergencies'.
On 2014/02/15 07:27:20, klobag.chromium wrote:
> Can we move this two lines up and say the number is emergency (pre-painting)? 

Yes, much better way to explain the numbers.

https://codereview.chromium.org/168053002/diff/70001/ui/gl/gl_context_android...
ui/gl/gl_context_android.cc:126: limit_bytes = physical_memory_mb / 8; // >144MB
On 2014/02/15 07:27:20, klobag.chromium wrote:
> merge the above two?

Good point will do. I think this number is common way to differentiate some
devices, but no longer useful here.

Powered by Google App Engine
This is Rietveld 408576698