Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 011833c3 authored by Jamie Gennis's avatar Jamie Gennis Committed by Android (Google) Code Review
Browse files

Merge "SurfaceFlinger: use the HWC gralloc usage bit"

parents 5af1729f d52c14df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ public:
        USAGE_HW_TEXTURE        = GRALLOC_USAGE_HW_TEXTURE,
        USAGE_HW_RENDER         = GRALLOC_USAGE_HW_RENDER,
        USAGE_HW_2D             = GRALLOC_USAGE_HW_2D,
        USAGE_HW_COMPOSER       = GRALLOC_USAGE_HW_COMPOSER,
        USAGE_HW_MASK           = GRALLOC_USAGE_HW_MASK
    };

+1 −0
Original line number Diff line number Diff line
@@ -556,6 +556,7 @@ uint32_t Layer::getEffectiveUsage(uint32_t usage) const
        // need a hardware-protected path to external video sink
        usage |= GraphicBuffer::USAGE_PROTECTED;
    }
    usage |= GraphicBuffer::USAGE_HW_COMPOSER;
    return usage;
}