diff options
| author | 2019-07-25 15:22:29 -0700 | |
|---|---|---|
| committer | 2019-07-28 22:26:20 +0000 | |
| commit | 295f80cecebb4d48edb58838f75a596db36d02c5 (patch) | |
| tree | 3acf4f324407858d1e3fc6ef1960b52a8fd7f929 /libs/gui/BufferQueueThreadState.cpp | |
| parent | fa7b4252fb8ee083b44e37c450b96b48d5208490 (diff) | |
[RenderEngine] Allow rounded corners shader to use lower precision.
Big corner radii would cause problems at lower precision because
computing a vector norm would overflow. But since highp tanks
performance, instead scale down and back up by a power of 2 during the
normalization operation, so that a higher precision is not required.
Bug: 137191934
Test: eyeballing systrace when opening Photos, GPU seems to take shorter
time and no jank is observed
Test: Stepping through frames from a Pixel 3 XL screenrecording shows
that the beginning of the app opening animation is rounded instead of
square
Change-Id: Ie7a39bd0f992f7f42414ef49de9873775cc34409
Exempt-From-Owner-Approval: Approved in qt-r1-dev
(cherry picked from commit f941c1ea7e58e5bbe050e871165050f86b79f107)
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions