Lines Matching refs:sf_layer
302 int DrmHwcLayer::InitFromHwcLayer(hwc_layer_1_t *sf_layer, Importer *importer,
304 sf_handle = sf_layer->handle;
305 alpha = sf_layer->planeAlpha;
308 sf_layer->sourceCropf.left, sf_layer->sourceCropf.top,
309 sf_layer->sourceCropf.right, sf_layer->sourceCropf.bottom);
311 sf_layer->displayFrame.left, sf_layer->displayFrame.top,
312 sf_layer->displayFrame.right, sf_layer->displayFrame.bottom);
319 if (sf_layer->transform == HWC_TRANSFORM_ROT_270) {
321 } else if (sf_layer->transform == HWC_TRANSFORM_ROT_180) {
324 if (sf_layer->transform & HWC_TRANSFORM_FLIP_H)
326 if (sf_layer->transform & HWC_TRANSFORM_FLIP_V)
328 if (sf_layer->transform & HWC_TRANSFORM_ROT_90)
332 switch (sf_layer->blending) {
343 ALOGE("Invalid blending in hwc_layer_1_t %d", sf_layer->blending);
347 int ret = buffer.ImportBuffer(sf_layer->handle, importer);
351 ret = handle.CopyBufferHandle(sf_layer->handle, gralloc);
506 hwc_layer_1_t *sf_layer = &dc->hwLayers[j];
507 if (sf_layer->compositionType == HWC_FRAMEBUFFER_TARGET) {
514 hwc_layer_1_t *sf_layer = &dc->hwLayers[j];
522 if (sf_layer->flags & HWC_SKIP_LAYER) {
536 if (sf_layer->compositionType == HWC_OVERLAY)
539 layer.acquire_fence.Set(sf_layer->acquireFenceFd);
540 sf_layer->acquireFenceFd = -1;
546 checked_output_fences.emplace_back(&sf_layer->releaseFenceFd,
549 sf_layer->releaseFenceFd);
556 hwc_layer_1_t *sf_layer = &dc->hwLayers[framebuffer_target_index];
557 if (!sf_layer->handle || (sf_layer->flags & HWC_SKIP_LAYER)) {
583 hwc_layer_1_t *sf_layer = &dc->hwLayers[j];
587 ret = layer.InitFromHwcLayer(sf_layer, ctx->importer.get(), ctx->gralloc);