Apply the mask layer gradient shader only when needed
ScrollableShelfView's layer is masked to create the gradient shader. In fact, when the scrollable shelf is not in overflow mode, the mask layer is not needed. This CL sets the mask layer to null when the scrollable shelf is not in overflow mode. Bug: 1045265 Change-Id: I32fce5bd13da47a1d0b89968a5be54cd68a13738 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033540 Commit-Queue: Andrew Xu <andrewxu@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#738053}
Showing
Please register or sign in to comment