Chromium Code Reviews
DescriptionClamp compositor's top controls shown ratio on commit from main thread.
The shown_ratio should always be in the range [0,1] and this is enforced when
top controls are scrolled. However, we did not enforce this constraint when a
new value is committed from the main thread. This means that if there's an
existing delta on the compositor's active tree value and the main thread commits
a new base value we can see values of the ratio outside this range and this
causes us to violate some assumptions in DCHECKs.
BUG=622134
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/0223f2f72d17879c727bb6a1915e43931b3e8771
Cr-Commit-Position: refs/heads/master@{#401588}
Patch Set 1 #Patch Set 2 : Clamp from helper method #
Messages
Total messages: 13 (6 generated)
|
|||||||||||||||||||||||||||||||||||||