commit | bc341860f042edb649055042c955cb9e38fd65a6 | [log] [tgz] |
---|---|---|
author | Nader Jawad <njawad@google.com> | Thu May 06 10:48:18 2021 -0700 |
committer | Nader Jawad <njawad@google.com> | Fri May 07 22:45:26 2021 -0700 |
tree | 47268e9c7c007699bccf6464f88d09758980760a | |
parent | 0408e507b625d180070fb6c1d9a799810d3c00ff [diff] |
Updated HWUI to calculate the stretch bounds for a surface Added logic to StretchEffect to be able to calculate the stretched position of a pixel on an input texture based on the current stretch parameters. Updated shader to leverage linear easing instead of cubic in order to have a reversible method that can be used to map input textures to the corresponding stretch position. Bug: 179047472 Test: manual Change-Id: Id32afcf0df1cca03e68ac0c594d307a1090264f2