Loading services/surfaceflinger/SurfaceFlinger.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -5660,9 +5660,14 @@ status_t SurfaceFlinger::captureScreenCommon(RenderAreaFuture renderAreaFuture, const bool supportsProtected = getRenderEngine().supportsProtectedContent(); bool hasProtectedLayer = false; if (allowProtected && supportsProtected) { hasProtectedLayer = schedule([=]() { bool protectedLayerFound = false; traverseLayers([&](Layer* layer) { hasProtectedLayer = hasProtectedLayer || (layer->isVisible() && layer->isProtected()); protectedLayerFound = protectedLayerFound || (layer->isVisible() && layer->isProtected()); }); return protectedLayerFound; }).get(); } const uint32_t usage = GRALLOC_USAGE_HW_COMPOSER | GRALLOC_USAGE_HW_RENDER | Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -5660,9 +5660,14 @@ status_t SurfaceFlinger::captureScreenCommon(RenderAreaFuture renderAreaFuture, const bool supportsProtected = getRenderEngine().supportsProtectedContent(); bool hasProtectedLayer = false; if (allowProtected && supportsProtected) { hasProtectedLayer = schedule([=]() { bool protectedLayerFound = false; traverseLayers([&](Layer* layer) { hasProtectedLayer = hasProtectedLayer || (layer->isVisible() && layer->isProtected()); protectedLayerFound = protectedLayerFound || (layer->isVisible() && layer->isProtected()); }); return protectedLayerFound; }).get(); } const uint32_t usage = GRALLOC_USAGE_HW_COMPOSER | GRALLOC_USAGE_HW_RENDER | Loading