Home | History | Annotate | Download | only in hwc

Lines Matching defs:hwc_layer

340 int HWCDisplay::PrepareLayerParams(hwc_layer_1_t *hwc_layer, Layer* layer) {
341 const private_handle_t *pvt_handle = static_cast<const private_handle_t *>(hwc_layer->handle);
378 if (hwc_layer->compositionType == HWC_FRAMEBUFFER_TARGET) {
406 void HWCDisplay::CommitLayerParams(hwc_layer_1_t *hwc_layer, Layer *layer) {
407 const private_handle_t *pvt_handle = static_cast<const private_handle_t *>(hwc_layer->handle);
418 if (swap_interval_zero_ && hwc_layer->acquireFenceFd >= 0) {
419 close(hwc_layer->acquireFenceFd);
420 hwc_layer->acquireFenceFd = -1;
422 layer_buffer->acquire_fence_fd = hwc_layer->acquireFenceFd;
438 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
447 layer->flags.skip = ((hwc_layer.flags & HWC_SKIP_LAYER) > 0);
448 layer->flags.solid_fill = (hwc_layer.flags & kDimLayer) || solid_fill_enable_;
453 hwc_rect_t scaled_display_frame = hwc_layer.displayFrame;
457 SetRect(hwc_layer.sourceCropf, &layer->src_rect);
460 uint32_t num_visible_rects = UINT32(hwc_layer.visibleRegionScreen.numRects);
461 uint32_t num_dirty_rects = UINT32(hwc_layer.surfaceDamage.numRects);
465 SetRect(hwc_layer.visibleRegionScreen.rects[j], &visible_rect);
471 SetRect(hwc_layer.surfaceDamage.rects[j], &dirty_rect);
482 SetComposition(hwc_layer.compositionType, &layer->composition);
483 if (hwc_layer.compositionType != HWC_FRAMEBUFFER_TARGET) {
496 if (hwc_layer.flags & kDimLayer) {
501 SetBlending(hwc_layer.blending, &layer->blending);
503 uint32_t &hwc_transform = hwc_layer.transform;
521 layer->plane_alpha = hwc_layer.planeAlpha;
522 layer->flags.cursor = ((hwc_layer.flags & HWC_IS_CURSOR_LAYER) > 0);
529 if (hwc_layer.flags & HWC_SCREENSHOT_ANIMATOR_LAYER) {
543 layer->input_buffer->buffer_id = reinterpret_cast<uint64_t>(hwc_layer.handle);
598 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
604 hwc_layer.hints |= HWC_HINT_CLEAR_FB;
606 SetComposition(composition, &hwc_layer.compositionType);
683 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
691 hwc_layer.releaseFenceFd = -1;
695 hwc_layer.releaseFenceFd = layer_buffer->release_fence_fd;
703 close(hwc_layer.releaseFenceFd);
704 hwc_layer.releaseFenceFd = -1;
708 if (hwc_layer.acquireFenceFd >= 0) {
709 close(hwc_layer.acquireFenceFd);
710 hwc_layer.acquireFenceFd = -1;
874 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
875 const private_handle_t *pvt_handle = static_cast<const private_handle_t *>(hwc_layer.handle);
877 if (hwc_layer.acquireFenceFd >= 0) {
878 int error = sync_wait(hwc_layer.acquireFenceFd, 1000);