Enable per-device GPU clock configuration
Some devices have larger screen, or less powerful GPUs. On them,
we should allow a higher GPU clock whenever rendering blurs.
Test: ./libcompositionengine_test --gtest_filter=Output*
Bug: 149792636
Change-Id: Ic08ba9edc060a721b49cbbd448d7ad9d310aadb7
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 0144b4e..cdf1c89 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -1039,7 +1039,10 @@
const std::shared_ptr<TimeStats> mTimeStats;
const std::unique_ptr<FrameTracer> mFrameTracer;
bool mUseHwcVirtualDisplays = false;
+ // Disable blurs, for debugging
bool mEnableBlurs = false;
+ // If blurs are considered expensive and should require high GPU frequency.
+ bool mBlursAreExpensive = false;
std::atomic<uint32_t> mFrameMissedCount = 0;
std::atomic<uint32_t> mHwcFrameMissedCount = 0;
std::atomic<uint32_t> mGpuFrameMissedCount = 0;