DescriptionFix fuzzy infobar shadow on Nexus 5X.
On Nexus 5X, Nexus 7, and other devices that don't use one of the
standard densities (mdpi, hdpi, etc), the top of the infobar faded from
white to gray (over a few pixel rows) instead of having an immediate
jump from white to gray. This happened because the 9-patch infobar
background was resized, causing the sharp edge to become blurry.
As a fix, this CL uses a layer list as the infobar background with two
layers: a bitmap for the infobar shadow, and solid white the rest of the
background. Using a layer list ensures that the infobar shadow's bounds
will be pixel-aligned.
BUG=396223
Committed: https://crrev.com/eb982c360e64e4af001ff80fe67a29b971928b4b
Cr-Commit-Position: refs/heads/master@{#365725}
Patch Set 1 #Messages
Total messages: 8 (3 generated)
|