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

Issue 2191153002: Revert of Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed)

Created:
4 years, 4 months ago by tapted
Modified:
4 years, 4 months ago
Reviewers:
James Cook, sky, bruthig
CC:
chromium-reviews, kalyank, sadrul, yiyix
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Replaced BackgroundAnimator with ShelfBackgroundAnimator. (patchset #19 id:360001 of https://codereview.chromium.org/2053113002/ ) Reason for revert: Many ASAN failures in ash_unittests and others on ChromeOS builders link: https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/14853 errors like ==3029==ERROR: AddressSanitizer: heap-use-after-free on address 0x6030000b9800 at pc 0x0000127a38fa bp 0x7fff10ad4a50 sp 0x7fff10ad4a48 READ of size 8 at 0x6030000b9800 thread T0 #0 0x127a38f9 in __find<__gnu_cxx::__normal_iterator<ash::ShelfBackgroundAnimatorObserver **, std::vector<ash::ShelfBackgroundAnimatorObserver *, std::allocator<ash::ShelfBackgroundAnimatorObserver *> > >, ash::ShelfBackgroundAnimatorObserver *> ../../include/c++/4.6/bits/stl_algo.h:190:8 #1 0x127a38f9 in find<__gnu_cxx::__normal_iterator<ash::ShelfBackgroundAnimatorObserver **, std::vector<ash::ShelfBackgroundAnimatorObserver *, std::allocator<ash::ShelfBackgroundAnimatorObserver *> > >, ash::ShelfBackgroundAnimatorObserver *> ../../include/c++/4.6/bits/stl_algo.h:4402 #2 0x127a38f9 in base::ObserverListBase<ash::ShelfBackgroundAnimatorObserver>::RemoveObserver(ash::ShelfBackgroundAnimatorObserver*) base/observer_list.h:174 #3 0x127033f2 in ash::ShelfView::~ShelfView() ash/shelf/shelf_view.cc:408:27 #4 0x12703a5d in ash::ShelfView::~ShelfView() ash/shelf/shelf_view.cc:404:25 #5 0xcf2b9f1 in views::View::~View() ui/views/view.cc:134:7 #6 0x127191a4 in ~DelegateView ash/shelf/shelf_widget.cc:407:44 #7 0x127191a4 in non-virtual thunk to ash::ShelfWidget::DelegateView::~DelegateView() ash/shelf/shelf_widget.cc:407 #8 0xcf2dd8d in operator() ../../include/c++/4.6/bits/unique_ptr.h:63:2 #9 0xcf2dd8d in reset ../../include/c++/4.6/bits/unique_ptr.h:245 #10 0xcf2dd8d in ~unique_ptr ../../include/c++/4.6/bits/unique_ptr.h:169 #11 0xcf2dd8d in views::View::DoRemoveChildView(views::View*, bool, bool, bool, views::View*) ui/views/view.cc:1847 ... 0x6030000b9800 is located 0 bytes inside of 32-byte region [0x6030000b9800,0x6030000b9820) freed by thread T0 here: #0 0xa83edb in operator delete(void*) (/b/swarm_slave/w/ireuBjON/out/Release/unit_tests+0xa83edb) #1 0x127a2c17 in deallocate ../../include/c++/4.6/ext/new_allocator.h:98:9 #2 0x127a2c17 in _M_deallocate ../../include/c++/4.6/bits/stl_vector.h:156 #3 0x127a2c17 in ~_Vector_base ../../include/c++/4.6/bits/stl_vector.h:142 #4 0x127a2c17 in ~vector ../../include/c++/4.6/bits/stl_vector.h:351 #5 0x127a2c17 in ~ObserverListBase base/observer_list.h:69 #6 0x127a2c17 in ~ObserverList base/observer_list.h:229 #7 0x127a2c17 in ash::ShelfBackgroundAnimator::~ShelfBackgroundAnimator() ash/common/shelf/shelf_background_animator.cc:37 Original issue's description: > Apply Shelf/Dock opacity animations for the Material Design style. > > The Shelf animates between the 3 ShelfBackgroundType's using 2 > different animations; one uses BackgroundAnimator timers and > View::OnPaint() and the other uses a Layer to animate the > SHELF_BACKGROUND_MAXIMIZED opaque background. > > This change centralizes the animation logic so they all stay in sync > and applies the opacity animations to the material design style > Shelf/Dock. > > Eventually the ShelfBackgroundAnimator will be enhanced to animate > between colors instead of just alpha values. > > Follow-up plans: > - Use a single instance of the ShelfBackgroundAnimator. > - Remove the |opaque_background_| from ShelfWidget and > DockedBackgroundWidget. > - Collapse the multiple BackgroundAnimators owned by the > ShelfBackgroundAnimator into a single SlideAnimation. > - Animate the MD AppList and Overflow buttons. > > BUG=607037 > > TEST=ShelfBackgroundAnimator(NonMD|MD)Test.* > > Committed: https://crrev.com/f34d76ca0084f12c0d01f18bd9549e300b8d2ada > Cr-Commit-Position: refs/heads/master@{#408390} TBR=jamescook@chromium.org,sky@chromium.org,bruthig@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=607037 Committed: https://crrev.com/7eb446644e4f198db590704962204c77bff7166b Cr-Commit-Position: refs/heads/master@{#408532}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -1146 lines) Patch
M ash/ash.gyp View 4 chunks +2 lines, -6 lines 0 comments Download
M ash/aura/wm_shelf_aura.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ash/common/material_design/material_design_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/app_list_button.h View 2 chunks +0 lines, -6 lines 0 comments Download
M ash/common/shelf/app_list_button.cc View 3 chunks +11 lines, -11 lines 0 comments Download
M ash/common/shelf/overflow_button.h View 2 chunks +0 lines, -6 lines 0 comments Download
M ash/common/shelf/overflow_button.cc View 3 chunks +11 lines, -8 lines 0 comments Download
D ash/common/shelf/shelf_background_animator.h View 1 chunk +0 lines, -134 lines 0 comments Download
D ash/common/shelf/shelf_background_animator.cc View 1 chunk +0 lines, -202 lines 0 comments Download
D ash/common/shelf/shelf_background_animator_observer.h View 1 chunk +0 lines, -31 lines 0 comments Download
D ash/common/shelf/shelf_background_animator_unittest.cc View 1 chunk +0 lines, -411 lines 0 comments Download
M ash/common/shelf/wm_shelf_observer.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ash/common/system/chromeos/power/power_status_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/status_area_widget.h View 3 chunks +1 line, -6 lines 0 comments Download
M ash/common/system/status_area_widget.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M ash/common/system/tray/tray_background_view.h View 4 chunks +6 lines, -6 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 4 chunks +18 lines, -13 lines 0 comments Download
D ash/common/test/material_design_controller_test_api.h View 1 chunk +0 lines, -38 lines 0 comments Download
D ash/common/test/material_design_controller_test_api.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M ash/common/wm/background_animator.h View 3 chunks +1 line, -9 lines 0 comments Download
M ash/common/wm/background_animator.cc View 3 chunks +1 line, -10 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 6 chunks +36 lines, -28 lines 0 comments Download
M ash/root_window_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf.h View 2 chunks +2 lines, -4 lines 0 comments Download
M ash/shelf/shelf.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 2 chunks +17 lines, -16 lines 0 comments Download
M ash/shelf/shelf_view.h View 6 chunks +1 line, -11 lines 0 comments Download
M ash/shelf/shelf_view.cc View 7 chunks +3 lines, -16 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M ash/shelf/shelf_widget.h View 4 chunks +3 lines, -5 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 13 chunks +95 lines, -90 lines 0 comments Download
M ash/test/ash_md_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_md_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
A ash/test/material_design_controller_test_api.h View 1 chunk +38 lines, -0 lines 0 comments Download
A ash/test/material_design_controller_test_api.cc View 1 chunk +46 lines, -0 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (3 generated)
tapted
Created Revert of Replaced BackgroundAnimator with ShelfBackgroundAnimator.
4 years, 4 months ago (2016-07-29 00:37:50 UTC) #2
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/2191153002/1
4 years, 4 months ago (2016-07-29 00:38:21 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-29 00:40:27 UTC) #5
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 00:42:06 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7eb446644e4f198db590704962204c77bff7166b
Cr-Commit-Position: refs/heads/master@{#408532}

Powered by Google App Engine
This is Rietveld 408576698