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

Commit 691285b0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[SurfaceComposerClient] Add API to query protected content support."

parents cc19dbb8 08d1051c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1118,6 +1118,12 @@ status_t SurfaceComposerClient::getCompositionPreference(
                                       wideColorGamutDataspace, wideColorGamutPixelFormat);
}

bool SurfaceComposerClient::getProtectedContentSupport() {
    bool supported = false;
    ComposerService::getComposerService()->getProtectedContentSupport(&supported);
    return supported;
}

status_t SurfaceComposerClient::clearAnimationFrameStats() {
    return ComposerService::getComposerService()->clearAnimationFrameStats();
}
+6 −0
Original line number Diff line number Diff line
@@ -145,6 +145,12 @@ public:
                                             ui::Dataspace* wideColorGamutDataspace,
                                             ui::PixelFormat* wideColorGamutPixelFormat);

    /*
     * Gets whether SurfaceFlinger can support protected content in GPU composition.
     * Requires the ACCESS_SURFACE_FLINGER permission.
     */
    static bool getProtectedContentSupport();

    /**
     * Called from SurfaceControl d'tor to 'destroy' the surface (or rather, reparent it
     * to null), but without needing an sp<SurfaceControl> to avoid infinite ressurection.