Home | History | Annotate | Download | only in hwc

Lines Matching defs:hwc_layer

342 int HWCDisplay::PrepareLayerParams(hwc_layer_1_t *hwc_layer, Layer* layer) {
343 const private_handle_t *pvt_handle = static_cast<const private_handle_t *>(hwc_layer->handle);
390 if (hwc_layer->compositionType == HWC_FRAMEBUFFER_TARGET) {
420 void HWCDisplay::CommitLayerParams(hwc_layer_1_t *hwc_layer, Layer *layer) {
421 const private_handle_t *pvt_handle = static_cast<const private_handle_t *>(hwc_layer->handle);
432 if (swap_interval_zero_ && hwc_layer->acquireFenceFd >= 0) {
433 close(hwc_layer->acquireFenceFd);
434 hwc_layer->acquireFenceFd = -1;
436 layer_buffer->acquire_fence_fd = hwc_layer->acquireFenceFd;
452 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
461 layer->flags.skip = ((hwc_layer.flags & HWC_SKIP_LAYER) > 0);
462 layer->flags.solid_fill = (hwc_layer.flags & kDimLayer) || solid_fill_enable_;
467 hwc_rect_t scaled_display_frame = hwc_layer.displayFrame;
471 SetRect(hwc_layer.sourceCropf, &layer->src_rect);
474 uint32_t num_visible_rects = UINT32(hwc_layer.visibleRegionScreen.numRects);
475 uint32_t num_dirty_rects = UINT32(hwc_layer.surfaceDamage.numRects);
479 SetRect(hwc_layer.visibleRegionScreen.rects[j], &visible_rect);
485 SetRect(hwc_layer.surfaceDamage.rects[j], &dirty_rect);
496 SetComposition(hwc_layer.compositionType, &layer->composition);
497 if (hwc_layer.compositionType != HWC_FRAMEBUFFER_TARGET) {
510 if (hwc_layer.flags & kDimLayer) {
515 uint32_t a = UINT32(hwc_layer.color.a) << 24;
516 uint32_t r = UINT32(hwc_layer.color.r) << 16;
517 uint32_t g = UINT32(hwc_layer.color.g) << 8;
518 uint32_t b = UINT32(hwc_layer
523 SetBlending(hwc_layer.blending, &layer->blending);
525 uint32_t &hwc_transform = hwc_layer.transform;
545 layer->plane_alpha = hwc_layer.planeAlpha;
546 layer->flags.cursor = ((hwc_layer.flags & HWC_IS_CURSOR_LAYER) > 0);
553 if (hwc_layer.flags & HWC_SCREENSHOT_ANIMATOR_LAYER) {
567 layer->input_buffer->buffer_id = reinterpret_cast<uint64_t>(hwc_layer.handle);
636 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
640 (const_cast<native_handle_t*>(hwc_layer.handle));
646 hwc_layer.hints |= HWC_HINT_CLEAR_FB;
648 SetComposition(composition, &hwc_layer.compositionType);
737 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
745 hwc_layer.releaseFenceFd = -1;
749 hwc_layer.releaseFenceFd = layer_buffer->release_fence_fd;
758 close(hwc_layer.releaseFenceFd);
759 hwc_layer.releaseFenceFd = -1;
764 if (hwc_layer.acquireFenceFd >= 0) {
765 close(hwc_layer.acquireFenceFd);
766 hwc_layer.acquireFenceFd = -1;
931 hwc_layer_1_t &hwc_layer = content_list->hwLayers[i];
932 const private_handle_t *pvt_handle = static_cast<const private_handle_t *>(hwc_layer.handle);
934 if (hwc_layer.acquireFenceFd >= 0) {
935 int error = sync_wait(hwc_layer.acquireFenceFd, 1000);