hwc: Start with ROI set to destination
am: 271d9d58a1
* commit '271d9d58a164a0516533591aeb0b5e9258568350':
hwc: Start with ROI set to destination
Change-Id: Id234423639199dc168c8029f98e02954b800691e
This commit is contained in:
commit
712d1ef449
|
@ -505,9 +505,11 @@ void MDPCompNonSplit::generateROI(hwc_context_t *ctx,
|
|||
|
||||
for(int index = 0; index < numAppLayers; index++ ) {
|
||||
hwc_layer_1_t* layer = &list->hwLayers[index];
|
||||
|
||||
if (layerUpdating(layer) ||
|
||||
isYuvBuffer((private_handle_t *)layer->handle)) {
|
||||
hwc_rect_t dirtyRect = (struct hwc_rect){0, 0, 0, 0};;
|
||||
hwc_rect_t dirtyRect = getIntersection(layer->displayFrame,
|
||||
fullFrame);
|
||||
if(!needsScaling(layer) && !layer->transform) {
|
||||
dirtyRect = calculateDirtyRect(layer, fullFrame);
|
||||
}
|
||||
|
@ -612,9 +614,12 @@ void MDPCompSplit::generateROI(hwc_context_t *ctx,
|
|||
for(int index = 0; index < numAppLayers; index++ ) {
|
||||
hwc_layer_1_t* layer = &list->hwLayers[index];
|
||||
private_handle_t *hnd = (private_handle_t *)layer->handle;
|
||||
|
||||
if (layerUpdating(layer) || isYuvBuffer(hnd)) {
|
||||
hwc_rect_t l_dirtyRect = (struct hwc_rect){0, 0, 0, 0};
|
||||
hwc_rect_t r_dirtyRect = (struct hwc_rect){0, 0, 0, 0};
|
||||
hwc_rect_t l_dirtyRect = getIntersection(layer->displayFrame,
|
||||
l_frame);
|
||||
hwc_rect_t r_dirtyRect = getIntersection(layer->displayFrame,
|
||||
r_frame);
|
||||
|
||||
if(!needsScaling(layer) && !layer->transform) {
|
||||
l_dirtyRect = calculateDirtyRect(layer, l_frame);
|
||||
|
|
Loading…
Reference in New Issue