Merge "hwc: Crop source rect for the optimized destination"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
b42f70f3d0
@@ -1065,10 +1065,11 @@ void optimizeLayerRects(hwc_context_t *ctx,
|
|||||||
|
|
||||||
hwc_rect_t irect = getIntersection(bottomframe, topframe);
|
hwc_rect_t irect = getIntersection(bottomframe, topframe);
|
||||||
if(isValidRect(irect)) {
|
if(isValidRect(irect)) {
|
||||||
|
hwc_rect_t dest_rect;
|
||||||
//if intersection is valid rect, deduct it
|
//if intersection is valid rect, deduct it
|
||||||
bottomframe = deductRect(bottomframe, irect);
|
dest_rect = deductRect(bottomframe, irect);
|
||||||
qhwc::calculate_crop_rects(bottomCrop, bottomframe,
|
qhwc::calculate_crop_rects(bottomCrop, bottomframe,
|
||||||
bottomframe, transform);
|
dest_rect, transform);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user