Lines Matching refs:layer
151 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags() local
154 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
155 layer->hints |= HWC_HINT_CLEAR_FB; in setMDPCompLayerFlags()
159 layer->compositionType = HWC_OVERLAY; in setMDPCompLayerFlags()
266 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) { in isValidDimension() argument
267 private_handle_t *hnd = (private_handle_t *)layer->handle; in isValidDimension()
277 hwc_rect_t crop = layer->sourceCrop; in isValidDimension()
278 hwc_rect_t dst = layer->displayFrame; in isValidDimension()
282 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension()
404 hwc_layer_1_t* layer = &list->hwLayers[i]; in isFullFrameDoable() local
405 private_handle_t *hnd = (private_handle_t *)layer->handle; in isFullFrameDoable()
407 if(isSecuring(ctx, layer)) { in isFullFrameDoable()
411 } else if(layer->transform & HWC_TRANSFORM_ROT_90) { in isFullFrameDoable()
416 if(!isValidDimension(ctx,layer)) { in isFullFrameDoable()
516 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex]; in isOnlyVideoDoable() local
517 if(layer->planeAlpha < 0xFF) { in isOnlyVideoDoable()
529 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) { in isYUVDoable() argument
531 if(isSkipLayer(layer)) { in isYUVDoable()
541 if(isSecuring(ctx, layer)) { in isYUVDoable()
546 if(!isValidDimension(ctx, layer)) { in isYUVDoable()
649 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex]; in updateYUV() local
651 if(!isYUVDoable(ctx, layer)) { in updateYUV()
682 hwc_layer_1_t* layer = &list->hwLayers[index]; in programMDP() local
687 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){ in programMDP()
710 hwc_layer_1_t* layer = &list->hwLayers[index]; in programYUV() local
716 if(configure(ctx, layer, in programYUV()
811 int MDPCompLowRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
821 __FUNCTION__, layer, zOrder, dest); in configure()
823 return configureLowRes(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest, in configure()
861 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
862 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
876 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator in allocLayerPipes()
914 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
915 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
936 using pipe: %d", __FUNCTION__, layer, in draw()
968 hwc_layer_1_t* layer = &list->hwLayers[i]; in pipesNeeded() local
969 hwc_rect_t dst = layer->displayFrame; in pipesNeeded()
982 bool MDPCompHighRes::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer, in acquireMDPPipes() argument
987 hwc_rect_t dst = layer->displayFrame; in acquireMDPPipes()
1018 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex]; in allocLayerPipes() local
1023 if(!acquireMDPPipes(ctx, layer, pipe_info,MDPCOMP_OV_VG)) { in allocLayerPipes()
1034 hwc_layer_1_t* layer = &list->hwLayers[index]; in allocLayerPipes() local
1035 private_handle_t *hnd = (private_handle_t *)layer->handle; in allocLayerPipes()
1048 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator in allocLayerPipes()
1052 if(!acquireMDPPipes(ctx, layer, pipe_info, type)) { in allocLayerPipes()
1064 int MDPCompHighRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer, in configure() argument
1075 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest); in configure()
1077 return configureHighRes(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest, in configure()
1105 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
1106 private_handle_t *hnd = (private_handle_t *)layer->handle; in draw()
1138 using pipe: %d", __FUNCTION__, layer, hnd, indexL ); in draw()
1149 using pipe: %d", __FUNCTION__, layer, hnd, indexR ); in draw()