Chromium Code Reviews
DescriptionAdd MD Ink Drop to host only when a ripple/hover is active.
In order to paint the material design ink drop behind button icons the icon View
and the button View have to paint to their own Layers. There is no need to incur
the additional expense of these Layers unless the ink drop ripple or hover is
actually active on the View.
BUG=604415
TEST=InkDropHoverTest.*
TEST=InkDropAnimationControllerImplTest.*
TEST=InkDropAnimationControllerFactoryTest.VerifyInkDropLayersRemovedAfterDestructionWhenHoverIsActive
Review-Url: https://codereview.chromium.org/1897073002
Cr-Commit-Position: refs/heads/master@{#390696}
(cherry picked from commit 741be72a4d24789a876d87d0d94e9e2e1cdcd674)
Committed: https://chromium.googlesource.com/chromium/src/+/b597394a728de58aca50b199fa08b61787426682
Patch Set 1 #Patch Set 2 : Replaced unique_ptr with scoped_ptr. #Messages
Total messages: 2 (1 generated)
|