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

Commit 548d4fae authored by Peiyong Lin's avatar Peiyong Lin
Browse files

Enable protected contents in GPU composition by default.

BUG: b/35315015, b/127862411
Test: Verify with Youtube protected videos.
Change-Id: If6af53dafbd1026db22f3f18ec7e277c53dbc56e
parent e3b63d46
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -3248,8 +3248,7 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<DisplayDevice>& displayDevice,
    const auto& displayState = display->getState();
    const auto displayId = display->getId();
    auto& renderEngine = getRenderEngine();
    const bool supportProtectedContent =
            mDebugEnableProtectedContent && renderEngine.supportsProtectedContent();
    const bool supportProtectedContent = renderEngine.supportsProtectedContent();

    const Region bounds(displayState.bounds);
    const DisplayRenderArea renderArea(displayDevice);
@@ -5326,11 +5325,6 @@ status_t SurfaceFlinger::onTransact(uint32_t code, const Parcel& data, Parcel* r
                }
                return NO_ERROR;
            }
            case 1032: {
                n = data.readInt32();
                mDebugEnableProtectedContent = n;
                return NO_ERROR;
            }
            // Set trace flags
            case 1033: {
                n = data.readUint32();
+0 −1
Original line number Diff line number Diff line
@@ -995,7 +995,6 @@ private:
    int mDebugRegion = 0;
    bool mDebugDisableHWC = false;
    bool mDebugDisableTransformHint = false;
    bool mDebugEnableProtectedContent = false;
    volatile nsecs_t mDebugInTransaction = 0;
    bool mForceFullDamage = false;
    bool mPropagateBackpressure = true;