commit | 16855648e4220d5102f45c2d81dcf38a6138daa1 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Wed Jun 23 18:37:23 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jun 23 18:37:23 2021 +0000 |
tree | 19c8231a74914778861d61a36ea2859dc3c16227 | |
parent | 96a54994decf032dfd8208886e862eb7190a50ee [diff] | |
parent | a8f9cdbc77fee0bd5a1527342af4e2ceb9487b50 [diff] |
Merge "SF: always preallocate the client composition buffers" into sc-dev am: a8f9cdbc77 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15071036 Change-Id: I2fb0aeb0ad95ac004b259c0a5d289bfd29a50fd6
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;