From 845d5ad06e69d2362effa6b3539072518d099957 Mon Sep 17 00:00:00 2001 From: chaviw Date: Mon, 11 Apr 2022 14:35:01 -0500 Subject: [PATCH] Default to true for updateDestinationFrame in BBQ In most cases, we do want the destination frame to be updated by BBQ. The exception is SV due to multiple threads involved in property changes. Change the default updateDestinationFrame to true and let SV set it to false for their scenario. Test: Apps with NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW work Fixes: 228008717 Change-Id: I90ae6f0797633aa963c540a94f1cbaea9e498f23 --- graphics/java/android/graphics/BLASTBufferQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/java/android/graphics/BLASTBufferQueue.java b/graphics/java/android/graphics/BLASTBufferQueue.java index 7f70e1cce6f5a..4b723d1569c9a 100644 --- a/graphics/java/android/graphics/BLASTBufferQueue.java +++ b/graphics/java/android/graphics/BLASTBufferQueue.java @@ -47,7 +47,7 @@ public final class BLASTBufferQueue { /** Create a new connection with the surface flinger. */ public BLASTBufferQueue(String name, SurfaceControl sc, int width, int height, @PixelFormat.Format int format) { - this(name, false /* updateDestinationFrame */); + this(name, true /* updateDestinationFrame */); update(sc, width, height, format); }