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

Issue 2244783005: Android: Don't evict thumbnails for last visible tab on stop (Closed)

Created:
4 years, 4 months ago by no sievers
Modified:
4 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Don't evict thumbnails for last visible tab on stop When the activity stops (or rather the context goes away and resident textures incl. UI resources are evicted), don't evict the thumbnails for the tab that was visible *if* the bitmap is still available and wasn't uploaded to a texture yet. Also, don't force the UIResource to be created proactively when the ETC1 compression completes *if* there are no running activities, since it's racy with uploading it into the old context that's going away, while throwing away the bitmap. When there's critical memory pressure, free all thumbnails. BUG=636630 Committed: https://crrev.com/1d3bd9ca2dee42d4908ebe358f98df12c6aca327 Cr-Commit-Position: refs/heads/master@{#414789}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : Android: Don't evict thumbnails for last visible tab on stop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -6 lines) Patch
M chrome/browser/android/thumbnail/scoped_ptr_expiring_cache.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.cc View 1 2 5 chunks +34 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (11 generated)
no sievers
dtrainor, ptal!
4 years, 4 months ago (2016-08-13 00:51:05 UTC) #4
David Trainor- moved to gerrit
lgtm! https://codereview.chromium.org/2244783005/diff/1/chrome/browser/android/thumbnail/thumbnail_cache.cc File chrome/browser/android/thumbnail/thumbnail_cache.cc (right): https://codereview.chromium.org/2244783005/diff/1/chrome/browser/android/thumbnail/thumbnail_cache.cc#newcode451 chrome/browser/android/thumbnail/thumbnail_cache.cc:451: TabId last_tab = visible_ids_.empty() ? 0 : visible_ids_.front(); ...
4 years, 4 months ago (2016-08-16 02:47:30 UTC) #8
no sievers
https://codereview.chromium.org/2244783005/diff/1/chrome/browser/android/thumbnail/thumbnail_cache.cc File chrome/browser/android/thumbnail/thumbnail_cache.cc (right): https://codereview.chromium.org/2244783005/diff/1/chrome/browser/android/thumbnail/thumbnail_cache.cc#newcode451 chrome/browser/android/thumbnail/thumbnail_cache.cc:451: TabId last_tab = visible_ids_.empty() ? 0 : visible_ids_.front(); On ...
4 years, 3 months ago (2016-08-26 19:00:20 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/2244783005/60001
4 years, 3 months ago (2016-08-26 19:08:26 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-08-26 19:58:36 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 20:01:36 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1d3bd9ca2dee42d4908ebe358f98df12c6aca327
Cr-Commit-Position: refs/heads/master@{#414789}

Powered by Google App Engine
This is Rietveld 408576698