Loading services/surfaceflinger/SurfaceFlinger.cpp +9 −2 Original line number Diff line number Diff line Loading @@ -7829,7 +7829,10 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl( displayBrightnessNits); } } if (requestedDataspace == ui::Dataspace::UNKNOWN) { // Screenshots leaving the device should be colorimetric if (requestedDataspace == ui::Dataspace::UNKNOWN && renderArea->getHintForSeamlessTransition()) { renderIntent = state.renderIntent; } } Loading Loading @@ -7873,6 +7876,10 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl( } } // Screenshots leaving the device must not dim in gamma space. const bool dimInGammaSpaceForEnhancedScreenshots = mDimInGammaSpaceForEnhancedScreenshots && renderArea->getHintForSeamlessTransition(); std::shared_ptr<ScreenCaptureOutput> output = createScreenCaptureOutput( ScreenCaptureOutputArgs{.compositionEngine = *compositionEngine, .colorProfile = colorProfile, Loading @@ -7885,7 +7892,7 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl( .regionSampling = regionSampling, .treat170mAsSrgb = mTreat170mAsSrgb, .dimInGammaSpaceForEnhancedScreenshots = mDimInGammaSpaceForEnhancedScreenshots}); dimInGammaSpaceForEnhancedScreenshots}); const float colorSaturation = grayscale ? 0 : 1; compositionengine::CompositionRefreshArgs refreshArgs{ Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +9 −2 Original line number Diff line number Diff line Loading @@ -7829,7 +7829,10 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl( displayBrightnessNits); } } if (requestedDataspace == ui::Dataspace::UNKNOWN) { // Screenshots leaving the device should be colorimetric if (requestedDataspace == ui::Dataspace::UNKNOWN && renderArea->getHintForSeamlessTransition()) { renderIntent = state.renderIntent; } } Loading Loading @@ -7873,6 +7876,10 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl( } } // Screenshots leaving the device must not dim in gamma space. const bool dimInGammaSpaceForEnhancedScreenshots = mDimInGammaSpaceForEnhancedScreenshots && renderArea->getHintForSeamlessTransition(); std::shared_ptr<ScreenCaptureOutput> output = createScreenCaptureOutput( ScreenCaptureOutputArgs{.compositionEngine = *compositionEngine, .colorProfile = colorProfile, Loading @@ -7885,7 +7892,7 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl( .regionSampling = regionSampling, .treat170mAsSrgb = mTreat170mAsSrgb, .dimInGammaSpaceForEnhancedScreenshots = mDimInGammaSpaceForEnhancedScreenshots}); dimInGammaSpaceForEnhancedScreenshots}); const float colorSaturation = grayscale ? 0 : 1; compositionengine::CompositionRefreshArgs refreshArgs{ Loading