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

Issue 2646643002: android: Tweak readback context memory limits (Closed)

Created:
3 years, 11 months ago by boliu
Modified:
3 years, 11 months ago
Reviewers:
danakj
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android: Tweak readback context memory limits This context is used for readbacks only, and is destroyed after all readbacks are done. And readback memory comes from the mapped memory pool. Lower the transfer buffer pool to 128k. The readback memory doesn't come from this pool, so there is no reason it's computed from the screen size. Lower the mapped memory reclaim limit to 4k. Note this is not the maximum allocation size, so there is no correctness issue here. It also lowers the chunk size, ie allocations are rounded up to a multiple of the chunk. There are very few (only one most of the time) allocations from this pool, having a lower chunk size should not have have a big impact on perf (from reuse), but lowers memory overhead. BUG=680690 Review-Url: https://codereview.chromium.org/2646643002 Cr-Commit-Position: refs/heads/master@{#444579} Committed: https://chromium.googlesource.com/chromium/src/+/b9ee881336aafb25b77a02b0620605696e2200bc

Patch Set 1 #

Total comments: 2

Patch Set 2 : semicolon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -16 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +3 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
boliu
hey Dana, can you take a look. you were the last person before me to ...
3 years, 11 months ago (2017-01-18 23:19:35 UTC) #3
danakj
LGTM https://codereview.chromium.org/2646643002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2646643002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode199 content/browser/renderer_host/render_widget_host_view_android.cc:199: limits.max_transfer_buffer_size = 128 * 1024;; double ;;
3 years, 11 months ago (2017-01-18 23:21:55 UTC) #4
boliu
thanks! https://codereview.chromium.org/2646643002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2646643002/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode199 content/browser/renderer_host/render_widget_host_view_android.cc:199: limits.max_transfer_buffer_size = 128 * 1024;; On 2017/01/18 23:21:55, ...
3 years, 11 months ago (2017-01-19 00:00:51 UTC) #5
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/2646643002/20001
3 years, 11 months ago (2017-01-19 00:03:45 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 01:05:36 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b9ee881336aafb25b77a02b06206...

Powered by Google App Engine
This is Rietveld 408576698