summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-05-21 11:23:28 -0700
committerJesse Hall <jessehall@google.com>2012-05-22 16:46:17 -0700
commite10824965c64663b8878b808206ee382c7ab6af8 (patch)
tree60dcd0cccccf0739e3ba0359066bf9e6256bb18d /libs
parent83e7c8c431ec8b578b6f778811837632e3798768 (diff)
downloadframeworks_native-e10824965c64663b8878b808206ee382c7ab6af8.zip
frameworks_native-e10824965c64663b8878b808206ee382c7ab6af8.tar.gz
frameworks_native-e10824965c64663b8878b808206ee382c7ab6af8.tar.bz2
Enable SurfaceTexture fence sync for the emulator
The host-accelerated GL ES driver doesn't do the implicit synchronization required when fence sync isn't used. Bug: 6515813 Change-Id: I6a667f2db6b519f3557b5abda78775f767841dae
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/Android.mk b/libs/gui/Android.mk
index 8bda3aa..8224847 100644
--- a/libs/gui/Android.mk
+++ b/libs/gui/Android.mk
@@ -42,6 +42,10 @@ endif
ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
LOCAL_CFLAGS += -DUSE_FENCE_SYNC
endif
+ifneq ($(filter generic%,$(TARGET_DEVICE)),)
+ # Emulator build
+ LOCAL_CFLAGS += -DUSE_FENCE_SYNC
+endif
ifeq ($(TARGET_BOARD_PLATFORM), tegra)
LOCAL_CFLAGS += -DALLOW_DEQUEUE_CURRENT_BUFFER