Lines Matching refs:hwcRects
5858 android::Vector <hwc_rect_t> hwcRects; in getLayerRegion() local
5865 hwcRects = layer->mDamageRects; in getLayerRegion()
5868 if ((numRects == 0) || (hwcRects.size() == 0)) in getLayerRegion()
5871 if ((numRects == 1) && (hwcRects[0].left == 0) && (hwcRects[0].top == 0) && in getLayerRegion()
5872 (hwcRects[0].right == 0) && (hwcRects[0].bottom == 0)) in getLayerRegion()
5877 for (size_t j = 0; j < hwcRects.size(); j++) { in getLayerRegion()
5880 if ((hwcRects[j].left < 0) || (hwcRects[j].top < 0) || in getLayerRegion()
5881 (hwcRects[j].right < 0) || (hwcRects[j].bottom < 0) || in getLayerRegion()
5882 … (hwcRects[j].left >= hwcRects[j].right) || (hwcRects[j].top >= hwcRects[j].bottom) || in getLayerRegion()
5883 (hwcRects[j].right - hwcRects[j].left > WIDTH(layer->mSourceCrop)) || in getLayerRegion()
5884 (hwcRects[j].bottom - hwcRects[j].top > HEIGHT(layer->mSourceCrop))) { in getLayerRegion()
5891 rect.left = layer->mDisplayFrame.left + hwcRects[j].left - layer->mSourceCrop.left; in getLayerRegion()
5892 rect.top = layer->mDisplayFrame.top + hwcRects[j].top - layer->mSourceCrop.top; in getLayerRegion()
5893 rect.right = layer->mDisplayFrame.left + hwcRects[j].right - layer->mSourceCrop.left; in getLayerRegion()
5894 rect.bottom = layer->mDisplayFrame.top + hwcRects[j].bottom - layer->mSourceCrop.top; in getLayerRegion()
5897 DISPLAY_LOGD(eDebugWindowUpdate, "hwcRects : %d, %d, %d, %d", hwcRects[j].left, in getLayerRegion()
5898 hwcRects[j].top, hwcRects[j].right, hwcRects[j].bottom); in getLayerRegion()