Merge "SF: always preallocate the client composition buffers" into sc-dev am: a8f9cdbc77 am: 16855648e4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15071036

Change-Id: I145bce7aa7eed8ff56ac4b8f13be2a2744873e1c
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 2228d6c..8ea401d 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2665,9 +2665,7 @@
 
     sp<DisplayDevice> display = getFactory().createDisplayDevice(creationArgs);
 
-    if (maxFrameBufferAcquiredBuffers >= 3) {
-        nativeWindowSurface->preallocateBuffers();
-    }
+    nativeWindowSurface->preallocateBuffers();
 
     ColorMode defaultColorMode = ColorMode::NATIVE;
     Dataspace defaultDataSpace = Dataspace::UNKNOWN;