summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2017-06-15 15:16:51 -0700
committerDan Stoza <stoza@google.com>2017-06-15 15:16:51 -0700
commit3907b4c05beb5edbc9835a7a64017ac009ff9c63 (patch)
tree8566edb56f5574e915e18a6dc79a855cc3829cde
parent9bd16d5f93cfe3853ac02dd2b909bf45a7cc47b4 (diff)
downloadbullhead-3907b4c05beb5edbc9835a7a64017ac009ff9c63.tar.gz
Switch to 3 FramebufferSurface buffers
Changes from 2 to 3 FramebufferSurface buffers to avoid tearing because of invalid fence semantics. This is a hack (but a useful one). Bug: 37207024 Test: Rotate device and notice no tearing; force GL composition and drag an item in recents up and down quickly to also notice no tearing Change-Id: I58fa2feac0802a6bd2cd91a1e9fd41ee387de1f2
-rw-r--r--BoardConfig.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 0ae04ec..9355977 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -91,6 +91,7 @@ TARGET_USES_HWC2 := true
MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
+NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
TARGET_AUX_OS_VARIANT_LIST := bullhead