Lines Matching refs:layer
177 hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i]; in prepare() local
178 if (layer->planeAlpha != 0xFF) in prepare()
180 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare()
182 if (layer->transform & HAL_TRANSFORM_ROT_90) { in prepare()
189 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare()
190 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare()
311 hwc_layer_1_t *layer = &list->hwLayers[i]; in draw() local
316 if(layer->flags & HWC_SKIP_HWC_COMPOSITION){ in draw()
352 int CopyBit::drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawLayerUsingCopybit() argument
362 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawLayerUsingCopybit()
364 if (layer->flags & HWC_COLOR_FILL) { // Color layer in drawLayerUsingCopybit()
365 return fillColorUsingCopybit(layer, renderBuffer); in drawLayerUsingCopybit()
384 if ((layer->flags & HWC_FORMAT_RB_SWAP)) { in drawLayerUsingCopybit()
393 src.handle = (native_handle_t *)layer->handle; in drawLayerUsingCopybit()
400 int layerTransform = layer->transform ; in drawLayerUsingCopybit()
407 if (((layer->transform& HAL_TRANSFORM_FLIP_H) || in drawLayerUsingCopybit()
408 (layer->transform & HAL_TRANSFORM_FLIP_V)) && in drawLayerUsingCopybit()
409 (layer->transform & HAL_TRANSFORM_ROT_90) && in drawLayerUsingCopybit()
410 !(layer->transform == HAL_TRANSFORM_ROT_270)){ in drawLayerUsingCopybit()
411 if(layer->transform & HAL_TRANSFORM_FLIP_H){ in drawLayerUsingCopybit()
415 if(layer->transform & HAL_TRANSFORM_FLIP_V){ in drawLayerUsingCopybit()
422 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in drawLayerUsingCopybit()
428 hwc_rect_t displayFrame = layer->displayFrame; in drawLayerUsingCopybit()
454 if (layer->transform & HWC_TRANSFORM_ROT_90) { in drawLayerUsingCopybit()
483 acquireFd = layer->acquireFenceFd; in drawLayerUsingCopybit()
562 hwc_region_t region = layer->visibleRegionScreen; in drawLayerUsingCopybit()
574 layer->blending); in drawLayerUsingCopybit()
609 int CopyBit::fillColorUsingCopybit(hwc_layer_1_t *layer, in fillColorUsingCopybit() argument
626 hwc_rect_t displayFrame = layer->displayFrame; in fillColorUsingCopybit()
630 uint32_t color = layer->transform; in fillColorUsingCopybit()
640 copybit->set_parameter(copybit, COPYBIT_BLEND_MODE, layer->blending); in fillColorUsingCopybit()
641 copybit->set_parameter(copybit, COPYBIT_PLANE_ALPHA, layer->planeAlpha); in fillColorUsingCopybit()
648 void CopyBit::getLayerResolution(const hwc_layer_1_t* layer, in getLayerResolution() argument
651 hwc_rect_t displayFrame = layer->displayFrame; in getLayerResolution()