surfaceflinger: composite HWC_SKIP_LAYER layers

Change-Id: I363ede63287ae903d66d0d419343f4ecd81bcc00
This commit is contained in:
Antti Hatala
2010-09-09 02:32:30 -07:00
committed by Erik Gilling
parent 4c0a4a2b74
commit 982f58bdcc

View File

@@ -885,8 +885,8 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
*/
for (size_t i=0 ; i<count ; i++) {
if (cur) {
if (!(cur[i].compositionType == HWC_FRAMEBUFFER) ||
cur[i].flags & HWC_SKIP_LAYER) {
if ((cur[i].compositionType != HWC_FRAMEBUFFER) &&
!(cur[i].flags & HWC_SKIP_LAYER)) {
// skip layers handled by the HAL
continue;
}