summaryrefslogtreecommitdiff
path: root/opengl/libagl/BufferObjectManager.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2019-03-22 16:21:46 -0700
committer Peiyong Lin <lpy@google.com> 2019-03-25 15:45:31 -0700
commit1c0976190650535be3615417d902eed3176c92e7 (patch)
tree4f1f64e6d508665c37271f9ef191709624c30e47 /opengl/libagl/BufferObjectManager.cpp
parent6ac1a5f838c9be49d8318f7b1a4556afed583836 (diff)
[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
Diffstat (limited to 'opengl/libagl/BufferObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions