summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2019-07-10 13:31:25 -0700
committer android-build-merger <android-build-merger@google.com> 2019-07-10 13:31:25 -0700
commit93cf1d5d451237d0600dbe4e9e158567eba1815d (patch)
treeda8f582958847ec8b2f723f85b5b7c2c8f2878c2 /services/surfaceflinger/SurfaceFlinger.cpp
parent590fe3073006122a140b735b585dfd8a0e747795 (diff)
parent42b3beb51f7f3e97762ed1db7ebc0decbfa56bb4 (diff)
SurfaceFlinger: add allowed display configs to dumpsys
am: 42b3beb51f Change-Id: I299358022ab30d03bb31262eac22f3d862de08f2
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index a6ce6a8ffa..13fe44f248 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4707,6 +4707,16 @@ void SurfaceFlinger::dumpVSync(std::string& result) const {
StringAppendF(&result, "Scheduler enabled.");
StringAppendF(&result, "+ Smart 90 for video detection: %s\n\n",
mUseSmart90ForVideo ? "on" : "off");
+ StringAppendF(&result, "Allowed Display Configs: ");
+ for (int32_t configId : mAllowedDisplayConfigs) {
+ for (auto refresh : mRefreshRateConfigs.getRefreshRates()) {
+ if (refresh.second && refresh.second->configId == configId) {
+ StringAppendF(&result, "%dHz, ", refresh.second->fps);
+ }
+ }
+ }
+ StringAppendF(&result, "(config override by backdoor: %s)\n\n",
+ mDebugDisplayConfigSetByBackdoor ? "yes" : "no");
mScheduler->dump(mAppConnectionHandle, result);
}