diff options
author | Ady Abraham <adyabr@google.com> | 2021-05-18 14:00:07 -0700 |
---|---|---|
committer | Ady Abraham <adyabr@google.com> | 2021-06-15 10:25:29 -0700 |
commit | f558ab782c566e995fa6b4ad546feaea46a207bd (patch) | |
tree | 294d4d8e09b28411e5f65fac3781d6f1bb7e864a /libs/hwui/renderthread/ReliableSurface.cpp | |
parent | 216d32af4dfdc67dfc114f45d8bc1206b5bb2b46 (diff) |
Remove the extra buffer allocation from hwui
SurfaceFlinger will set the maxAcquiredBufferCount on the buffer queue
to account for the extra buffers needed, depends on the refresh rate
and app/sf durations, and there is no needed for any addional buffer
allocation is hwui.
Test: TBD
Bug: 188553729
Change-Id: Ic441a6feb15f6b084d45c9e538b11b7b24e36a0e
Diffstat (limited to 'libs/hwui/renderthread/ReliableSurface.cpp')
-rw-r--r-- | libs/hwui/renderthread/ReliableSurface.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/ReliableSurface.cpp b/libs/hwui/renderthread/ReliableSurface.cpp index c29cc11fa7ea..6df34bee2224 100644 --- a/libs/hwui/renderthread/ReliableSurface.cpp +++ b/libs/hwui/renderthread/ReliableSurface.cpp @@ -278,7 +278,6 @@ int ReliableSurface::hook_query(const ANativeWindow *window, ANativeWindow_query int result = query(window, what, value); if (what == ANATIVEWINDOW_QUERY_MIN_UNDEQUEUED_BUFFERS && result == OK) { std::lock_guard _lock{rs->mMutex}; - *value += rs->mExtraBuffers; rs->mExpectedBufferCount = *value + 2; } return result; |