Home | History | Annotate | Download | only in libhwcomposer

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;
231 // populate layer and MDP maps
267 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) {
269 private_handle_t *hnd = (private_handle_t *)layer->handle;
272 ALOGE("%s: layer handle is NULL", __FUNCTION__);
279 hwc_rect_t crop = layer->sourceCrop;
280 hwc_rect_t dst = layer->displayFrame;
284 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
403 //MDP composition is not efficient if layer needs rotator.
407 hwc_layer_1_t* layer = &list->hwLayers[i];
408 private_handle_t *hnd = (private_handle_t *)layer->handle;
410 if(isSecuring(ctx, layer)) {
414 } else if(layer->transform & HWC_TRANSFORM_ROT_90) {
419 if(!isValidDimension(ctx,layer)) {
519 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
520 if(layer->planeAlpha < 0xFF) {
521 ALOGD_IF(isDebug(), "%s: Cannot handle YUV layer with plane alpha\
532 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) {
534 if(isSkipLayer(layer)) {
544 if(isSecuring(ctx, layer)) {
549 if(!isValidDimension(ctx, layer)) {
560 * send rest of them through MDP. NEVER mark an updating layer for caching.
652 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
654 if(!isYUVDoable(ctx, layer)) {
685 hwc_layer_1_t* layer = &list->hwLayers[index];
690 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){
692 layer %d",__FUNCTION__, index);
713 hwc_layer_1_t* layer = &list->hwLayers[index];
719 if(configure(ctx, layer,
722 layer %d",__FUNCTION__, index);
805 int MDPCompLowRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
814 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipe: %d",
815 __FUNCTION__, layer, zOrder, dest);
817 return configureLowRes(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest,
837 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
857 hwc_layer_1_t* layer = &list->hwLayers[index];
858 private_handle_t *hnd = (private_handle_t *)layer->handle;
872 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator
910 hwc_layer_1_t *layer = &list->hwLayers[i];
911 private_handle_t *hnd = (private_handle_t *)layer->handle;
931 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
932 using pipe: %d", __FUNCTION__, layer,
964 hwc_layer_1_t* layer = &list->hwLayers[i];
965 hwc_rect_t dst = layer->displayFrame;
978 bool MDPCompHighRes::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer,
983 hwc_rect_t dst = layer->displayFrame;
1014 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
1019 if(!acquireMDPPipes(ctx, layer, pipe_info,MDPCOMP_OV_VG)) {
1030 hwc_layer_1_t* layer = &list->hwLayers[index];
1031 private_handle_t *hnd = (private_handle_t *)layer->handle;
1043 if(!qhwc::needsScaling(layer) && !ctx->mNeedsRotator
1047 if(!acquireMDPPipes(ctx, layer, pipe_info, type)) {
1059 int MDPCompHighRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
1069 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipeL: %d"
1070 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest);
1072 return configureHighRes(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest,
1100 hwc_layer_1_t *layer = &list->hwLayers[i];
1101 private_handle_t *hnd = (private_handle_t *)layer->handle;
1132 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1133 using pipe: %d", __FUNCTION__, layer, hnd, indexL );
1143 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1144 using pipe: %d", __FUNCTION__, layer, hnd, indexR );