Lines Matching defs:layer

169         hwc_layer_1_t* layer = &(list->hwLayers[index]);
172 layer->compositionType = HWC_OVERLAY;
173 layer->hints |= HWC_HINT_CLEAR_FB;
176 layer->compositionType = HWC_OVERLAY;
207 // populate layer and MDP maps
243 bool MDPComp::isSupportedForMDPComp(hwc_context_t *ctx, hwc_layer_1_t* layer) {
244 private_handle_t *hnd = (private_handle_t *)layer->handle;
245 if((not isYuvBuffer(hnd) and has90Transform(layer)) or
246 (not isValidDimension(ctx,layer))
254 bool MDPComp::isValidDimension(hwc_context_t *ctx, hwc_layer_1_t *layer) {
256 private_handle_t *hnd = (private_handle_t *)layer->handle;
259 ALOGE("%s: layer handle is NULL", __FUNCTION__);
264 if(!isSecureBuffer(hnd) && isNonIntegralSourceCrop(layer->sourceCropf))
270 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
271 hwc_rect_t dst = layer->displayFrame;
275 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
392 hwc_layer_1_t* layer = &list->hwLayers[i];
393 private_handle_t *hnd = (private_handle_t *)layer->handle;
395 if(isYuvBuffer(hnd) && has90Transform(layer)) {
407 //For 8x26 with panel width>1k, if RGB layer needs HFLIP fail mdp comp
411 (layer->transform & HWC_TRANSFORM_FLIP_H) &&
431 //Will benefit presentation / secondary-only layer.
448 hwc_layer_1_t* layer = &list->hwLayers[i];
449 if(not isSupportedForMDPComp(ctx, layer)) {
450 ALOGD_IF(isDebug(), "%s: Unsupported layer in list",__FUNCTION__);
499 //If an MDP marked layer is unsupported cannot do partial MDP Comp
502 hwc_layer_1_t* layer = &list->hwLayers[i];
503 if(not isSupportedForMDPComp(ctx, layer)) {
504 ALOGD_IF(isDebug(), "%s: Unsupported layer in list",
566 hwc_layer_1_t* layer = &list->hwLayers[j];
567 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);
586 hwc_layer_1_t* layer = &list->hwLayers[i];
587 if(not isSupportedForMDPComp(ctx, layer)) {
588 ALOGD_IF(isDebug(), "%s: MDP unsupported layer found at %d",
645 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
646 if(layer->planeAlpha < 0xFF) {
647 ALOGD_IF(isDebug(), "%s: Cannot handle YUV layer with plane alpha\
652 private_handle_t *hnd = (private_handle_t *)layer->handle;
662 bool MDPComp::isYUVDoable(hwc_context_t* ctx, hwc_layer_1_t* layer) {
663 if(isSkipLayer(layer)) {
668 if(layer->transform & HWC_TRANSFORM_ROT_90 && !canUseRotator(ctx,mDpy)) {
673 if(isSecuring(ctx, layer)) {
678 if(!isValidDimension(ctx, layer)) {
689 * send rest of them through MDP. NEVER mark an updating layer for caching.
722 hwc_layer_1_t* layer = &list->hwLayers[i];
724 //If an unsupported layer is being attempted to be pulled out we
726 if(not isSupportedForMDPComp(ctx, layer)) {
751 hwc_layer_1_t* layer = &list->hwLayers[i];
773 hwc_layer_1_t* layer = &list->hwLayers[nYuvIndex];
775 if(!isYUVDoable(ctx, layer)) {
805 hwc_layer_1_t* layer = &list->hwLayers[index];
810 if(configure(ctx, layer, mCurrentFrame.mdpToLayer[mdpIndex]) != 0 ){
812 layer %d",__FUNCTION__, index);
833 hwc_layer_1_t* layer = &list->hwLayers[index];
839 if(configure(ctx, layer,
842 layer %d",__FUNCTION__, index);
950 int MDPCompLowRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
959 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipe: %d",
960 __FUNCTION__, layer, zOrder, dest);
962 return configureLowRes(ctx, layer, mDpy, mdpFlags, zOrder, isFg, dest,
991 hwc_layer_1_t* layer = &list->hwLayers[index];
992 private_handle_t *hnd = (private_handle_t *)layer->handle;
1002 } else if(!qhwc::needsScaling(ctx, layer, mDpy)
1031 ALOGD_IF(isDebug(),"%s: Exceeding max layer count", __FUNCTION__);
1047 hwc_layer_1_t *layer = &list->hwLayers[i];
1048 private_handle_t *hnd = (private_handle_t *)layer->handle;
1068 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1069 using pipe: %d", __FUNCTION__, layer,
1112 hwc_layer_1_t* layer = &list->hwLayers[i];
1113 hwc_rect_t dst = layer->displayFrame;
1146 bool MDPCompHighRes::acquireMDPPipes(hwc_context_t *ctx, hwc_layer_1_t* layer,
1152 hwc_rect_t dst = layer->displayFrame;
1177 hwc_layer_1_t* layer = &list->hwLayers[index];
1178 private_handle_t *hnd = (private_handle_t *)layer->handle;
1188 } else if(!qhwc::needsScaling(ctx, layer, mDpy)
1194 if(!acquireMDPPipes(ctx, layer, pipe_info, type)) {
1206 int MDPCompHighRes::configure(hwc_context_t *ctx, hwc_layer_1_t *layer,
1216 ALOGD_IF(isDebug(),"%s: configuring: layer: %p z_order: %d dest_pipeL: %d"
1217 "dest_pipeR: %d",__FUNCTION__, layer, zOrder, lDest, rDest);
1219 return configureHighRes(ctx, layer, mDpy, mdpFlagsL, zOrder, isFg, lDest,
1236 ALOGD_IF(isDebug(),"%s: Exceeding max layer count", __FUNCTION__);
1252 hwc_layer_1_t *layer = &list->hwLayers[i];
1253 private_handle_t *hnd = (private_handle_t *)layer->handle;
1291 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1292 using pipe: %d", __FUNCTION__, layer, hnd, indexL );
1302 ALOGD_IF(isDebug(),"%s: MDP Comp: Drawing layer: %p hnd: %p \
1303 using pipe: %d", __FUNCTION__, layer, hnd, indexR );