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) {
267 private_handle_t *hnd = (private_handle_t *)layer->handle;
270 ALOGE("%s: layer handle is NULL", __FUNCTION__);
277 hwc_rect_t crop = layer->sourceCrop;
278 hwc_rect_t dst = layer->displayFrame;
282 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
400 //MDP composition is not efficient if layer needs rotator.
404 hwc_layer_1_t* layer = &list->hwLayers[i];
405 private_handle_t *hnd = (private_handle_t *)layer->handle;
407 if(isSecuring(ctx, layer)) {
411 } else if(layer->transform & HWC_TRANSFORM_ROT_90) {
416 if(!isValidDimension(ctx,layer)) {
516 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
517 if(layer->planeAlpha < 0xFF) {
518 ALOGD_IF(isDebug(), "%s: Cannot handle YUV layer with plane alpha\
529 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) {
531 if(isSkipLayer(layer)) {
541 if(isSecuring(ctx, layer)) {
546 if(!isValidDimension(ctx, layer)) {
557 * send rest of them through MDP. NEVER mark an updating layer for caching.
649 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
651 if(!isYUVDoable(ctx, layer)) {
682 hwc_layer_1_t* layer = &list->hwLayers[index];
687 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){
689 layer %d",__FUNCTION__, index);
710 hwc_layer_1_t* layer = &list->hwLayers[index];
716 if(configure(ctx, layer,
719 layer %d",__FUNCTION__, index);
811 int MDPCompLowRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
820 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipe: %d",
821 __FUNCTION__, layer, zOrder, dest);
823 return configureLowRes(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest,
861 hwc_layer_1_t* layer = &list->hwLayers[index];
862 private_handle_t *hnd = (private_handle_t *)layer->handle;
876 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator
914 hwc_layer_1_t *layer = &list->hwLayers[i];
915 private_handle_t *hnd = (private_handle_t *)layer->handle;
935 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
936 using pipe: %d", __FUNCTION__, layer,
968 hwc_layer_1_t* layer = &list->hwLayers[i];
969 hwc_rect_t dst = layer->displayFrame;
982 bool MDPCompHighRes::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer,
987 hwc_rect_t dst = layer->displayFrame;
1018 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
1023 if(!acquireMDPPipes(ctx, layer, pipe_info,MDPCOMP_OV_VG)) {
1034 hwc_layer_1_t* layer = &list->hwLayers[index];
1035 private_handle_t *hnd = (private_handle_t *)layer->handle;
1048 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator
1052 if(!acquireMDPPipes(ctx, layer, pipe_info, type)) {
1064 int MDPCompHighRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
1074 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipeL: %d"
1075 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest);
1077 return configureHighRes(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest,
1105 hwc_layer_1_t *layer = &list->hwLayers[i];
1106 private_handle_t *hnd = (private_handle_t *)layer->handle;
1137 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1138 using pipe: %d", __FUNCTION__, layer, hnd, indexL );
1148 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1149 using pipe: %d", __FUNCTION__, layer, hnd, indexR );