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

Commit 21145bea authored by Baldev Sahu's avatar Baldev Sahu Committed by Steve Kondik
Browse files

SurfaceFlinger: Add support for MDP3

This change is porting of below commits related to MDP3

In MDP3 we are using the widevine level3 for secure content
display. And this should applicable only for primary display
not for screen shot or screen recording
- CRs-Fixed: 595469
- Change-Id: I99be2d81287ab746d5c4a2375c3106c59e61a8fc

Change-Id: Ie7ac95e1c03eb7ad6f71098ecf09a1e25e69760f
parent 4951bcc1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -666,8 +666,8 @@ void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
    bool blackOutLayer = isProtected() || (isSecure() && !hw->isSecure());

    RenderEngine& engine(mFlinger->getRenderEngine());

    if (!blackOutLayer || canAllowGPUForProtected()) {
    if (!blackOutLayer ||
            ((hw->getDisplayType() == HWC_DISPLAY_PRIMARY) && canAllowGPUForProtected())) {
        // TODO: we could be more subtle with isFixedSize()
        const bool useFiltering = getFiltering() || needsFiltering(hw) || isFixedSize();