Merge "surfaceflinger: composite HWC_SKIP_LAYER layers"

This commit is contained in:
Erik Gilling
2010-09-09 13:01:23 -07:00
committed by Android (Google) Code Review

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;
}