diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-01-12 11:11:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-01-12 11:11:25 +0000 |
commit | c1f928f5da669708d256694c98be186cb0ca8ad8 (patch) | |
tree | 2b2d6b89d3e44d64d38191f261470d6d00e200ae | |
parent | b062a93b1763bbf6e473477f447ebd3ab3f5c849 (diff) | |
parent | d002918bbf20d55af7a39f4f86b76f9f533221f7 (diff) |
Snap for 8069964 from d002918bbf20d55af7a39f4f86b76f9f533221f7 to s-keystone-qcom-release
Change-Id: Iba9826587ad1db0e731f0f07c33ae6885333df60
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 2a97652fec..7cea8143d5 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1509,7 +1509,7 @@ status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>&, DisplayStatInfo* st } bool SurfaceFlinger::isFpsDeferNeeded(const ActiveModeInfo& info) { - const auto display = ON_MAIN_THREAD(getDefaultDisplayDeviceLocked()); + const auto display = getDefaultDisplayDeviceLocked(); if (!display || !mThermalLevelFps) { return false; } diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index c52d4d37a7..14bc09e4e2 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -1352,7 +1352,7 @@ private: std::chrono::nanoseconds presentLatency); int getMaxAcquiredBufferCountForRefreshRate(Fps refreshRate) const; void setDesiredModeByThermalLevel(float newFpsRequest); - bool isFpsDeferNeeded(const ActiveModeInfo& info); + bool isFpsDeferNeeded(const ActiveModeInfo& info) REQUIRES(mStateLock); virtual void getModeFromFps(float fps,DisplayModePtr& outMode); void handleNewLevelFps(float currFps, float newLevelFps, float* fpsToSet); |