diff options
author | 2024-01-18 17:08:01 -0800 | |
---|---|---|
committer | 2024-01-20 00:39:17 +0000 | |
commit | 8af3ec98ffcb94a0fa6d0f0b3553c82552708d04 (patch) | |
tree | 10498fa9524816203acc5ccec67b04b1963a039f | |
parent | 0f1c7b71631641e1c094cc744f2238bda7369893 (diff) |
Clean up dead code related to IGBP
SF no longer creates IGBP for clients since blast was rolled out.
This cl cleans up some dead code related to IGBPs.
Test: presubmit
Bug: 294915480
Change-Id: I60bae115b77527f31db514fe58c67bce4e2b3592
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 8 | ||||
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 6 |
2 files changed, 0 insertions, 14 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 31d120d185..fe5b159051 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -492,14 +492,6 @@ SurfaceFlinger::SurfaceFlinger(Factory& factory) : SurfaceFlinger(factory, SkipI mSupportsBlur = supportsBlurs; ALOGI_IF(!mSupportsBlur, "Disabling blur effects, they are not supported."); - const size_t defaultListSize = MAX_LAYERS; - auto listSize = property_get_int32("debug.sf.max_igbp_list_size", int32_t(defaultListSize)); - mMaxGraphicBufferProducerListSize = (listSize > 0) ? size_t(listSize) : defaultListSize; - mGraphicBufferProducerListSizeLogThreshold = - std::max(static_cast<int>(0.95 * - static_cast<double>(mMaxGraphicBufferProducerListSize)), - 1); - property_get("debug.sf.luma_sampling", value, "1"); mLumaSampling = atoi(value); diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index b23b519b34..6ae05d604a 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -1212,12 +1212,6 @@ private: float mGlobalSaturationFactor = 1.0f; mat4 mClientColorMatrix; - size_t mMaxGraphicBufferProducerListSize = MAX_LAYERS; - // If there are more GraphicBufferProducers tracked by SurfaceFlinger than - // this threshold, then begin logging. - size_t mGraphicBufferProducerListSizeLogThreshold = - static_cast<size_t>(0.95 * static_cast<double>(MAX_LAYERS)); - // protected by mStateLock (but we could use another lock) bool mLayersRemoved = false; bool mLayersAdded = false; |