diff options
| author | 2021-02-23 13:09:50 -0500 | |
|---|---|---|
| committer | 2021-02-24 18:39:17 +0000 | |
| commit | 4c331c851d8cf81837e66423426e33baab469edb (patch) | |
| tree | e275d1cd78961a1b316bbafde37d701b44ccdefa /libs/gui/LayerDebugInfo.cpp | |
| parent | 7c42bef70e102f873950550393c6951ddae5975f (diff) | |
Avoid unnecessary computation for shadows and clipping for rounded layers
Shadow layers did not need to generate the shader as it was not used
so avoid that overhead.
Setting a roundrect clip and then drawing a single rect of the same size
is always less efficient than just drawing the roundrect directly.
Test: librenderengine_test
Bug: 181028875
Change-Id: I4e333f34b886f630773e4d660973bf8aa4585635
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions