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

Issue 1489213002: [Contextual Search] Remove layers when no longer needed. (Closed)

Created:
5 years ago by pedro (no code reviews)
Modified:
5 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Contextual Search] Remove layers when no longer needed. Now that there can be multiple Overlays Panels being used, a few bugs are happening due to the Panel's cc::Layer not being properly removed. This CL fixes the problem by removing the layer when a OverlayPanel shows up when another one is being displayed. Also, this CL removed the OverlayPanel layer from the StaticLayout whenever that layout gets hidden (see dettachViews method). BUG=539847 Committed: https://crrev.com/a53e46eff945b879f6e72108073d3d70d47d6b0e Cr-Commit-Position: refs/heads/master@{#363092}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing comments #

Total comments: 2

Patch Set 3 : cleanup #

Patch Set 4 : Fixing broken tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -11 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanel.java View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerTest.java View 1 2 3 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc View 1 2 1 chunk +15 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
pedro (no code reviews)
Guys, please take a look at this change. This fixes a M48 Release Blocker.
5 years ago (2015-12-02 01:10:12 UTC) #3
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/1489213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java (right): https://chromiumcodereview.appspot.com/1489213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java#newcode81 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java:81: protected final OverlayPanelManager mOverlayPanelManager; Eh might as well add ...
5 years ago (2015-12-02 16:34:13 UTC) #4
Donn Denman
LGTM with my limited knowledge of scene layers. https://codereview.chromium.org/1489213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java (right): https://codereview.chromium.org/1489213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java#newcode370 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java:370: // ...
5 years ago (2015-12-02 17:53:49 UTC) #5
pedro (no code reviews)
Thanks guys. Please take another look. https://codereview.chromium.org/1489213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java (right): https://codereview.chromium.org/1489213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java#newcode370 chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java:370: // Check if ...
5 years ago (2015-12-02 23:56:15 UTC) #6
mdjones
cc::Layer has a "RemoveFromParent" method. Would it be possible to have a native method on ...
5 years ago (2015-12-03 00:13:38 UTC) #8
pedro (no code reviews)
On 2015/12/03 00:13:38, mdjones wrote: > cc::Layer has a "RemoveFromParent" method. Would it be possible ...
5 years ago (2015-12-03 00:27:27 UTC) #9
mdjones
On 2015/12/03 00:27:27, pedrosimonetti wrote: > On 2015/12/03 00:13:38, mdjones wrote: > > cc::Layer has ...
5 years ago (2015-12-03 00:39:56 UTC) #10
pedro (no code reviews)
On 2015/12/03 00:39:56, mdjones wrote: > On 2015/12/03 00:27:27, pedrosimonetti wrote: > > On 2015/12/03 ...
5 years ago (2015-12-03 01:34:37 UTC) #11
mdjones
On 2015/12/03 01:34:37, pedrosimonetti wrote: > On 2015/12/03 00:39:56, mdjones wrote: > > On 2015/12/03 ...
5 years ago (2015-12-03 01:54:37 UTC) #12
David Trainor- moved to gerrit
lgtm with nit. https://codereview.chromium.org/1489213002/diff/20001/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc File chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc (right): https://codereview.chromium.org/1489213002/diff/20001/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc#newcode144 chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc:144: if (layer && layer.get()) { You ...
5 years ago (2015-12-03 03:19:59 UTC) #13
pedro (no code reviews)
Thanks everyone! I did some more testing and realized some of the changes I made ...
5 years ago (2015-12-03 19:53:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489213002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489213002/40001
5 years ago (2015-12-03 20:03:54 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/104844)
5 years ago (2015-12-03 22:07:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489213002/60001
5 years ago (2015-12-03 22:39:20 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_dbg on ...
5 years ago (2015-12-04 00:44:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1489213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1489213002/60001
5 years ago (2015-12-04 00:48:52 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-04 02:47:24 UTC) #28
commit-bot: I haz the power
5 years ago (2015-12-04 02:48:32 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a53e46eff945b879f6e72108073d3d70d47d6b0e
Cr-Commit-Position: refs/heads/master@{#363092}

Powered by Google App Engine
This is Rietveld 408576698