summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/ClientCache.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2019-07-25 15:22:29 -0700
committer Alec Mouri <alecmouri@google.com> 2019-07-25 15:22:29 -0700
commit0d0e16e96f9af3941c719cbfb1d06a7694dc7b5a (patch)
treeeb45cd888315b78344632fa930677dfcc963e952 /services/surfaceflinger/ClientCache.cpp
parent60513c4b8a95b637e3b4fe194d9d7bdf82da7d46 (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
Diffstat (limited to 'services/surfaceflinger/ClientCache.cpp')
0 files changed, 0 insertions, 0 deletions