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

Issue 2865963003: [Suggestions UI] Drop Bitmap references from articles under memory pressure. (Closed)

Created:
3 years, 7 months ago by Bernhard Bauer
Modified:
3 years, 7 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, agrieve+watch_chromium.org, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, vmpstr+watch_chromium.org, memory-dev_chromium.org, Theresa, Maria
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Suggestions UI] Drop Bitmap references from articles under memory pressure. BUG=718925 Review-Url: https://codereview.chromium.org/2865963003 Cr-Commit-Position: refs/heads/master@{#471156} Committed: https://chromium.googlesource.com/chromium/src/+/0e283fb794e782da9af62dac7cd2aa8800db359a

Patch Set 1 #

Patch Set 2 : ocmment #

Patch Set 3 : fix compile error? #

Patch Set 4 : comment #

Total comments: 4

Patch Set 5 : fix test #

Patch Set 6 : review #

Total comments: 2

Patch Set 7 : comment #

Total comments: 4

Patch Set 8 : rename #

Patch Set 9 : add missing file #

Patch Set 10 : alternative approach #

Total comments: 2

Patch Set 11 : comment #

Patch Set 12 : add junit test #

Patch Set 13 : remove annotation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -19 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
A base/android/java/src/org/chromium/base/DiscardableReferencePool.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download
A base/android/junit/src/org/chromium/base/DiscardableReferencePoolTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 5 6 7 4 chunks +20 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java View 1 2 3 4 5 6 7 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsUiDelegate.java View 1 2 3 4 5 6 7 3 chunks +8 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsUiDelegateImpl.java View 1 2 3 4 5 6 7 5 chunks +11 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java View 1 2 3 4 5 6 7 5 chunks +12 lines, -2 lines 0 comments Download
M tools/android/eclipse/.classpath View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 77 (51 generated)
Bernhard Bauer
Please review. Thanks!
3 years, 7 months ago (2017-05-08 15:17:42 UTC) #10
dgn
neat! We could also use the observer from https://codereview.chromium.org/2862893002/ to trigger pool drains if we ...
3 years, 7 months ago (2017-05-08 17:01:51 UTC) #15
Bernhard Bauer
On 2017/05/08 17:01:51, dgn wrote: > neat! We could also use the observer from > ...
3 years, 7 months ago (2017-05-09 08:51:10 UTC) #18
Michael van Ouwerkerk
lgtm with nit https://codereview.chromium.org/2865963003/diff/100001/base/android/java/src/org/chromium/base/ReferencePool.java File base/android/java/src/org/chromium/base/ReferencePool.java (right): https://codereview.chromium.org/2865963003/diff/100001/base/android/java/src/org/chromium/base/ReferencePool.java#newcode51 base/android/java/src/org/chromium/base/ReferencePool.java:51: mPool.put(reference, payload); As only the keys ...
3 years, 7 months ago (2017-05-09 11:35:36 UTC) #23
Bernhard Bauer
Thanks! Ross, can I get an OWNERS review for base/? Also, +memory-dev@ and some other ...
3 years, 7 months ago (2017-05-09 12:37:17 UTC) #27
DmitrySkiba
On 2017/05/09 12:37:17, Bernhard Bauer wrote: > Thanks! Ross, can I get an OWNERS review ...
3 years, 7 months ago (2017-05-09 15:39:49 UTC) #30
Bernhard Bauer
On 2017/05/09 15:39:49, DmitrySkiba wrote: > On 2017/05/09 12:37:17, Bernhard Bauer wrote: > > Thanks! ...
3 years, 7 months ago (2017-05-09 15:59:25 UTC) #31
DmitrySkiba
On 2017/05/09 15:59:25, Bernhard Bauer wrote: > On 2017/05/09 15:39:49, DmitrySkiba wrote: > > On ...
3 years, 7 months ago (2017-05-09 16:25:19 UTC) #32
Bernhard Bauer
On 2017/05/09 16:25:19, DmitrySkiba wrote: > On 2017/05/09 15:59:25, Bernhard Bauer wrote: > > On ...
3 years, 7 months ago (2017-05-09 16:39:58 UTC) #33
DmitrySkiba
On 2017/05/09 16:39:58, Bernhard Bauer wrote: > On 2017/05/09 16:25:19, DmitrySkiba wrote: > > On ...
3 years, 7 months ago (2017-05-09 17:07:42 UTC) #34
Bernhard Bauer
On 2017/05/09 17:07:42, DmitrySkiba wrote: > On 2017/05/09 16:39:58, Bernhard Bauer wrote: > > On ...
3 years, 7 months ago (2017-05-10 10:37:35 UTC) #35
rmcilroy
LGTM with a naming suggestion. https://codereview.chromium.org/2865963003/diff/120001/base/android/java/src/org/chromium/base/ReferencePool.java File base/android/java/src/org/chromium/base/ReferencePool.java (right): https://codereview.chromium.org/2865963003/diff/120001/base/android/java/src/org/chromium/base/ReferencePool.java#newcode28 base/android/java/src/org/chromium/base/ReferencePool.java:28: public class ReferencePool { ...
3 years, 7 months ago (2017-05-10 14:38:12 UTC) #36
DmitrySkiba
On 2017/05/10 10:37:35, Bernhard Bauer wrote: > On 2017/05/09 17:07:42, DmitrySkiba wrote: > > On ...
3 years, 7 months ago (2017-05-10 16:25:08 UTC) #39
Bernhard Bauer
On 2017/05/10 16:25:08, DmitrySkiba wrote: > On 2017/05/10 10:37:35, Bernhard Bauer wrote: > > On ...
3 years, 7 months ago (2017-05-10 17:47:51 UTC) #48
DmitrySkiba
New approach (with Set) LGTM. Btw you should probably mention that the pool is not ...
3 years, 7 months ago (2017-05-10 22:04:19 UTC) #52
Bernhard Bauer
Thanks! This was very enlightening :) https://codereview.chromium.org/2865963003/diff/200001/base/android/java/src/org/chromium/base/DiscardableReferencePool.java File base/android/java/src/org/chromium/base/DiscardableReferencePool.java (right): https://codereview.chromium.org/2865963003/diff/200001/base/android/java/src/org/chromium/base/DiscardableReferencePool.java#newcode23 base/android/java/src/org/chromium/base/DiscardableReferencePool.java:23: * <p>Note that ...
3 years, 7 months ago (2017-05-11 08:43:02 UTC) #55
rmcilroy
New approach looks fine, but could we have some tests please?
3 years, 7 months ago (2017-05-11 10:12:23 UTC) #56
Bernhard Bauer
On 2017/05/11 10:12:23, rmcilroy wrote: > New approach looks fine, but could we have some ...
3 years, 7 months ago (2017-05-11 11:21:41 UTC) #61
rmcilroy
LGTM.
3 years, 7 months ago (2017-05-11 12:17:15 UTC) #64
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/2865963003/260001
3 years, 7 months ago (2017-05-11 12:22:23 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/368189)
3 years, 7 months ago (2017-05-11 13:06:49 UTC) #69
DmitrySkiba
On 2017/05/11 11:21:41, Bernhard Bauer wrote: > On 2017/05/11 10:12:23, rmcilroy wrote: > > New ...
3 years, 7 months ago (2017-05-11 15:31:08 UTC) #70
Bernhard Bauer
On 2017/05/11 15:31:08, DmitrySkiba wrote: > On 2017/05/11 11:21:41, Bernhard Bauer wrote: > > On ...
3 years, 7 months ago (2017-05-11 16:55:18 UTC) #71
DmitrySkiba
On 2017/05/11 16:55:18, Bernhard Bauer wrote: > On 2017/05/11 15:31:08, DmitrySkiba wrote: > > On ...
3 years, 7 months ago (2017-05-11 17:06:41 UTC) #72
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/2865963003/260001
3 years, 7 months ago (2017-05-11 20:39:47 UTC) #74
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 00:55:09 UTC) #77
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/0e283fb794e782da9af62dac7cd2...

Powered by Google App Engine
This is Rietveld 408576698