Lines Matching refs:layer
151 hwc_layer_1_t* layer = &(list->hwLayers[index]);
154 layer->compositionType = HWC_OVERLAY;
155 layer->hints |= HWC_HINT_CLEAR_FB;
159 layer->compositionType = HWC_OVERLAY;
230 // populate layer and MDP maps
266 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) {
268 private_handle_t *hnd = (private_handle_t *)layer->handle;
271 ALOGE("%s: layer handle is NULL", __FUNCTION__);
278 hwc_rect_t crop = layer->sourceCrop;
279 hwc_rect_t dst = layer->displayFrame;
283 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
398 //MDP composition is not efficient if layer needs rotator.
402 hwc_layer_1_t* layer = &list->hwLayers[i];
403 private_handle_t *hnd = (private_handle_t *)layer->handle;
405 if(isSecuring(ctx, layer)) {
409 } else if(layer->transform & HWC_TRANSFORM_ROT_90) {
414 if(!isValidDimension(ctx,layer)) {
514 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
515 if(layer->planeAlpha < 0xFF) {
516 ALOGD_IF(isDebug(), "%s: Cannot handle YUV layer with plane alpha\
527 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) {
529 if(isSkipLayer(layer)) {
539 if(isSecuring(ctx, layer)) {
544 if(!isValidDimension(ctx, layer)) {
555 * send rest of them through MDP. NEVER mark an updating layer for caching.
647 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
649 if(!isYUVDoable(ctx, layer)) {
680 hwc_layer_1_t* layer = &list->hwLayers[index];
685 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){
687 layer %d",__FUNCTION__, index);
708 hwc_layer_1_t* layer = &list->hwLayers[index];
714 if(configure(ctx, layer,
717 layer %d",__FUNCTION__, index);
800 int MDPCompLowRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
809 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipe: %d",
810 __FUNCTION__, layer, zOrder, dest);
812 return configureLowRes(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest,
832 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
852 hwc_layer_1_t* layer = &list->hwLayers[index];
853 private_handle_t *hnd = (private_handle_t *)layer->handle;
867 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator
905 hwc_layer_1_t *layer = &list->hwLayers[i];
906 private_handle_t *hnd = (private_handle_t *)layer->handle;
926 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
927 using pipe: %d", __FUNCTION__, layer,
959 hwc_layer_1_t* layer = &list->hwLayers[i];
960 hwc_rect_t dst = layer->displayFrame;
973 bool MDPCompHighRes::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer,
978 hwc_rect_t dst = layer->displayFrame;
1009 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
1014 if(!acquireMDPPipes(ctx, layer, pipe_info,MDPCOMP_OV_VG)) {
1025 hwc_layer_1_t* layer = &list->hwLayers[index];
1026 private_handle_t *hnd = (private_handle_t *)layer->handle;
1038 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator
1042 if(!acquireMDPPipes(ctx, layer, pipe_info, type)) {
1054 int MDPCompHighRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
1064 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipeL: %d"
1065 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest);
1067 return configureHighRes(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest,
1095 hwc_layer_1_t *layer = &list->hwLayers[i];
1096 private_handle_t *hnd = (private_handle_t *)layer->handle;
1127 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1128 using pipe: %d", __FUNCTION__, layer, hnd, indexL );
1138 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1139 using pipe: %d", __FUNCTION__, layer, hnd, indexR );