Loading libs/gui/SurfaceComposerClient.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -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(); } Loading libs/gui/include/gui/SurfaceComposerClient.h +6 −0 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
libs/gui/SurfaceComposerClient.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -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(); } Loading
libs/gui/include/gui/SurfaceComposerClient.h +6 −0 Original line number Diff line number Diff line Loading @@ -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. Loading