Lines Matching refs:layer

322             hwc_layer_1_t *layer = (hwc_layer_1_t *) &list->hwLayers[i];  in prepare()  local
323 if (layer->planeAlpha != 0xFF) in prepare()
325 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in prepare()
327 if (has90Transform(layer)) { in prepare()
334 dst_h = layer->displayFrame.bottom - layer->displayFrame.top; in prepare()
335 dst_w = layer->displayFrame.right - layer->displayFrame.left; in prepare()
532 hwc_layer_1_t *layer = &list->hwLayers[mDirtyLayerIndex]; in draw() local
534 clear(renderBuffer,layer->dirtyRect); in draw()
536 clear(renderBuffer,layer->displayFrame); in draw()
634 hwc_layer_1_t *layer = &list->hwLayers[i]; in drawOverlap() local
635 if(!isValidRect(getIntersection(layer->displayFrame, in drawOverlap()
657 hwc_rect_t destRect = getIntersection(overlap, layer->displayFrame); in drawOverlap()
667 int retVal = drawRectUsingCopybit(ctx, layer, renderBuffer, in drawOverlap()
687 int CopyBit::drawRectUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawRectUsingCopybit() argument
697 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawRectUsingCopybit()
711 src.handle = (native_handle_t *)layer->handle; in drawRectUsingCopybit()
720 hwc_rect_t dispFrame = layer->displayFrame; in drawRectUsingCopybit()
722 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in drawRectUsingCopybit()
724 layer->transform); in drawRectUsingCopybit()
750 int acquireFd = layer->acquireFenceFd; in drawRectUsingCopybit()
756 copybit->set_parameter(copybit, COPYBIT_TRANSFORM, layer->transform); in drawRectUsingCopybit()
757 copybit->set_parameter(copybit, COPYBIT_PLANE_ALPHA, layer->planeAlpha); in drawRectUsingCopybit()
758 copybit->set_parameter(copybit, COPYBIT_BLEND_MODE, layer->blending); in drawRectUsingCopybit()
772 int CopyBit::drawLayerUsingCopybit(hwc_context_t *dev, hwc_layer_1_t *layer, in drawLayerUsingCopybit() argument
782 private_handle_t *hnd = (private_handle_t *)layer->handle; in drawLayerUsingCopybit()
784 if (layer->flags & HWC_COLOR_FILL) { // Color layer in drawLayerUsingCopybit()
785 return fillColorUsingCopybit(layer, renderBuffer); in drawLayerUsingCopybit()
804 if ((layer->flags & HWC_FORMAT_RB_SWAP)) { in drawLayerUsingCopybit()
813 src.handle = (native_handle_t *)layer->handle; in drawLayerUsingCopybit()
820 int layerTransform = layer->transform ; in drawLayerUsingCopybit()
827 if (((layer->transform& HAL_TRANSFORM_FLIP_H) || in drawLayerUsingCopybit()
828 (layer->transform & HAL_TRANSFORM_FLIP_V)) && in drawLayerUsingCopybit()
829 (layer->transform & HAL_TRANSFORM_ROT_90) && in drawLayerUsingCopybit()
830 !(layer->transform == HAL_TRANSFORM_ROT_270)){ in drawLayerUsingCopybit()
831 if(layer->transform & HAL_TRANSFORM_FLIP_H){ in drawLayerUsingCopybit()
835 if(layer->transform & HAL_TRANSFORM_FLIP_V){ in drawLayerUsingCopybit()
842 hwc_rect_t sourceCrop = integerizeSourceCrop(layer->sourceCropf); in drawLayerUsingCopybit()
848 hwc_rect_t displayFrame = layer->displayFrame; in drawLayerUsingCopybit()
855 srcRect.l = layer->dirtyRect.left; in drawLayerUsingCopybit()
856 srcRect.t = layer->dirtyRect.top; in drawLayerUsingCopybit()
857 srcRect.r = layer->dirtyRect.right; in drawLayerUsingCopybit()
858 srcRect.b = layer->dirtyRect.bottom; in drawLayerUsingCopybit()
883 if (layer->transform & HWC_TRANSFORM_ROT_90) { in drawLayerUsingCopybit()
912 acquireFd = layer->acquireFenceFd; in drawLayerUsingCopybit()
991 hwc_region_t region = layer->visibleRegionScreen; in drawLayerUsingCopybit()
1003 layer->blending); in drawLayerUsingCopybit()
1038 int CopyBit::fillColorUsingCopybit(hwc_layer_1_t *layer, in fillColorUsingCopybit() argument
1055 hwc_rect_t displayFrame = layer->displayFrame; in fillColorUsingCopybit()
1059 uint32_t color = layer->transform; in fillColorUsingCopybit()
1069 copybit->set_parameter(copybit, COPYBIT_BLEND_MODE, layer->blending); in fillColorUsingCopybit()
1070 copybit->set_parameter(copybit, COPYBIT_PLANE_ALPHA, layer->planeAlpha); in fillColorUsingCopybit()
1077 void CopyBit::getLayerResolution(const hwc_layer_1_t* layer, in getLayerResolution() argument
1080 hwc_rect_t displayFrame = layer->displayFrame; in getLayerResolution()