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

Issue 2336043004: Android: Free GLHelper context ashmem when it makes sense (Closed)

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

Description

Android: Free GLHelper context ashmem when it makes sense Free the 'mapped_memory' that is used in readbacks through CopyFromCompositingSurface() when there is memory pressure in the system (or no activities are running and a readback completes). This memory gets lazily allocated during the first readback and it'd be the size of the texture after scaling. Freeing it is harmless at a slight reallocation cost when the next readback is triggered. BUG=641962 TBR=boliu@chromium.org Committed: https://crrev.com/98f7c133cdef22c26922c56371f84989f7a2cd60 Cr-Commit-Position: refs/heads/master@{#421357}

Patch Set 1 #

Patch Set 2 : Android: Free GLHelper context ashmem when it makes sense #

Total comments: 15

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -5 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 7 chunks +89 lines, -5 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 1 chunk +1 line, -0 lines 1 comment Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
no sievers
Dana, ptal, thanks!
4 years, 3 months ago (2016-09-13 22:16:42 UTC) #3
danakj
https://codereview.chromium.org/2336043004/diff/20001/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/2336043004/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode210 content/browser/renderer_host/render_widget_host_view_android.cc:210: &GLHelperHolder::OnApplicationStatusChanged, base::Unretained(this)))); Please leave a comment explaining why unretained ...
4 years, 3 months ago (2016-09-13 22:44:58 UTC) #5
no sievers
https://codereview.chromium.org/2336043004/diff/20001/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/2336043004/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode210 content/browser/renderer_host/render_widget_host_view_android.cc:210: &GLHelperHolder::OnApplicationStatusChanged, base::Unretained(this)))); On 2016/09/13 22:44:58, danakj wrote: > Please ...
4 years, 2 months ago (2016-09-26 22:19:29 UTC) #6
danakj
LGTM
4 years, 2 months ago (2016-09-26 22:55:49 UTC) #7
danakj
https://codereview.chromium.org/2336043004/diff/60001/content/common/gpu/client/context_provider_command_buffer.h File content/common/gpu/client/context_provider_command_buffer.h (right): https://codereview.chromium.org/2336043004/diff/60001/content/common/gpu/client/context_provider_command_buffer.h#newcode67 content/common/gpu/client/context_provider_command_buffer.h:67: void FreeUnusedSharedMemory(); FWIW I think this should be part ...
4 years, 2 months ago (2016-09-26 22:56:40 UTC) #8
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/2336043004/60001
4 years, 2 months ago (2016-09-27 21:26:23 UTC) #10
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/2336043004/60001
4 years, 2 months ago (2016-09-27 21:34:26 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-27 22:11:26 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/98f7c133cdef22c26922c56371f84989f7a2cd60 Cr-Commit-Position: refs/heads/master@{#421357}
4 years, 2 months ago (2016-09-27 22:13:23 UTC) #18
boliu
4 years, 2 months ago (2016-10-03 21:42:36 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2392623003/ by boliu@chromium.org.

The reason for reverting is: Causes a null pointer crash. And also apparently
doesn't work?

BUG=652050.

Powered by Google App Engine
This is Rietveld 408576698