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

Issue 1371523003: Android: Don't destroy LayerTreeHost when Surface goes away (Closed)

Created:
5 years, 2 months ago by no sievers
Modified:
5 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Don't destroy LayerTreeHost when Surface goes away Instead just release the OutputSurface. Also remove some unnecessary complexity and indirections from the UI resource management, esp. now that UI resource IDs stays valid. And fix Thumbnail bitmap reloading on context lost. TBR=danakj@chromium.org NOTRY=True BUG=374906 Committed: https://crrev.com/148fedf0c1f445294866dc812169dcf0ac083e8c Cr-Commit-Position: refs/heads/master@{#351918}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Patch Set 4 : test #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : fix RequestNewOS/Hide/SetOS race #

Patch Set 8 : fix (schedule) composite vs. visibility races #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -405 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java View 1 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/android/compositor/compositor_view.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/decoration_title.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/reader_mode_layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/tab_handle_layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/tab_layer.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/toolbar_layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.cc View 1 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail.h View 1 2 3 4 5 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail.cc View 1 2 3 4 4 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 4 chunks +8 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 18 chunks +59 lines, -34 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M ui/android/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/android/resources/resource_manager.h View 1 3 chunks +2 lines, -4 lines 0 comments Download
M ui/android/resources/resource_manager_impl.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ui/android/resources/resource_manager_impl.cc View 1 2 4 chunks +12 lines, -5 lines 0 comments Download
M ui/android/resources/resource_manager_impl_unittest.cc View 1 2 3 4 5 2 chunks +57 lines, -86 lines 0 comments Download
M ui/android/resources/ui_resource_android.h View 1 1 chunk +0 lines, -48 lines 0 comments Download
M ui/android/resources/ui_resource_android.cc View 1 1 chunk +0 lines, -50 lines 0 comments Download
M ui/android/resources/ui_resource_client_android.h View 1 1 chunk +0 lines, -28 lines 0 comments Download
M ui/android/resources/ui_resource_provider.h View 1 2 1 chunk +5 lines, -32 lines 0 comments Download
M ui/android/resources/ui_resource_provider.cc View 1 1 chunk +0 lines, -64 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
no sievers
dana, dtrain, how does this look? https://codereview.chromium.org/1371523003/diff/1/chrome/browser/android/thumbnail/thumbnail.cc File chrome/browser/android/thumbnail/thumbnail.cc (right): https://codereview.chromium.org/1371523003/diff/1/chrome/browser/android/thumbnail/thumbnail.cc#newcode94 chrome/browser/android/thumbnail/thumbnail.cc:94: // Return a ...
5 years, 2 months ago (2015-09-24 23:27:43 UTC) #2
danakj
Looks ok couple comments/questions https://codereview.chromium.org/1371523003/diff/1/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/1371523003/diff/1/content/browser/renderer_host/compositor_impl_android.cc#newcode230 content/browser/renderer_host/compositor_impl_android.cc:230: CompositorImpl::CompositorImpl(CompositorClient* client, Style-guidey comment: This ...
5 years, 2 months ago (2015-09-28 22:45:43 UTC) #3
no sievers
+Jared Ok I've removed UIResourceClientAndroid, because it's the same as cc::ScopedUIResource at this point. I've ...
5 years, 2 months ago (2015-09-30 02:32:40 UTC) #5
jdduke (slow)
ui/android lgtm, with the tests fleshed out. https://codereview.chromium.org/1371523003/diff/20001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://codereview.chromium.org/1371523003/diff/20001/content/browser/renderer_host/compositor_impl_android.h#newcode69 content/browser/renderer_host/compositor_impl_android.h:69: cc::UIResourceId CreateUIResource(cc::UIResourceClient* ...
5 years, 2 months ago (2015-09-30 17:19:44 UTC) #6
David Trainor- moved to gerrit
chrome/ lgtm.
5 years, 2 months ago (2015-09-30 19:09:25 UTC) #8
no sievers
Dana, mind taking another look? https://codereview.chromium.org/1371523003/diff/20001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://codereview.chromium.org/1371523003/diff/20001/content/browser/renderer_host/compositor_impl_android.h#newcode69 content/browser/renderer_host/compositor_impl_android.h:69: cc::UIResourceId CreateUIResource(cc::UIResourceClient* client) final; ...
5 years, 2 months ago (2015-09-30 21:58:48 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371523003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371523003/80001
5 years, 2 months ago (2015-09-30 22:14:36 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/105427) win8_chromium_ng on ...
5 years, 2 months ago (2015-09-30 22:27:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371523003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371523003/120001
5 years, 2 months ago (2015-10-01 20:13:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371523003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371523003/160001
5 years, 2 months ago (2015-10-01 21:21:11 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/90511)
5 years, 2 months ago (2015-10-01 21:33:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371523003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371523003/160001
5 years, 2 months ago (2015-10-01 21:34:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371523003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371523003/160001
5 years, 2 months ago (2015-10-02 00:05:33 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-02 00:12:17 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 00:13:29 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/148fedf0c1f445294866dc812169dcf0ac083e8c
Cr-Commit-Position: refs/heads/master@{#351918}

Powered by Google App Engine
This is Rietveld 408576698