summaryrefslogtreecommitdiff
path: root/opengl/libagl/BufferObjectManager.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2019-08-16 12:37:24 -0700
committer Chavi Weingarten <chaviw@google.com> 2019-08-16 21:01:29 +0000
commit575144faa9f93454f22cf17c1694b09ad369c688 (patch)
treece504d47dca28a3ac689fea202aa5ed2aae0c1bc /opengl/libagl/BufferObjectManager.cpp
parentc603c81ddb3cbe76aa4742162151792ac0d52d13 (diff)
Added opaque flag check for ColorLayer
Currently ColorLayers ignore the opaque flag which is incorrect behavior. ColorLayer now overrides the isOpaque check to see if the opauqe flag is set. If the opaque flag is not set, but has alpha 1, the content on screen will look the same. However, SF will try to draw any layer behind the ColorLayer since it doesn't know that the ColorLayer will obscure it. This is inefficient and could cause rendering to go into GL composition since it will be creating more rendering layers than what's needed. Test: ColorLayers can be opaque Change-Id: Iab41ae23f17905d61f0ab40a060d53831cf34735
Diffstat (limited to 'opengl/libagl/BufferObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions