Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1c097619 authored by Peiyong Lin's avatar Peiyong Lin
Browse files

[Rounded Corner] Use glScissor on rounded corner layers.

When a layer has rounded corner, blending needs to be turned on such that alpha
value is set correctly. However, this has an impact on performance. In this
patch, we use glScissor to split the layer into three parts, and composite the
top rectangle and bottom rectangle separately with blending on and turn off
blending when we composite the middle part of the layer.

BUG: 128624971
Test: Build, flash and boot. Verify with systrace
Change-Id: Ie6f12f36b8bac8be7566d13a232eaee22fa602ab
parent 6ac1a5f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment