ef19414bd8
After a HWC set, each SurfaceFlinger Layer retrieves the release fence HWC returned and gives it to the layer's SurfaceTexture. The SurfaceTexture accumulates the fences into a merged fence until the next updateTexImage, then passes the merged fence to the BufferQueue in releaseBuffer. In a follow-on change, BufferQueue will return the fence along with the buffer slot in dequeueBuffer. For now, dequeueBuffer waits for the fence to signal before returning. The releaseFence default value for BufferQueue::releaseBuffer() is temporary to avoid transient build breaks with a multi-project checkin. It'll disappear in the next change. Change-Id: Iaa9a0d5775235585d9cbf453d3a64623d08013d9
61 lines
1.2 KiB
Makefile
61 lines
1.2 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
BitTube.cpp \
|
|
BufferQueue.cpp \
|
|
DisplayEventReceiver.cpp \
|
|
IDisplayEventConnection.cpp \
|
|
ISensorEventConnection.cpp \
|
|
ISensorServer.cpp \
|
|
ISurfaceTexture.cpp \
|
|
Sensor.cpp \
|
|
SensorEventQueue.cpp \
|
|
SensorManager.cpp \
|
|
SurfaceTexture.cpp \
|
|
SurfaceTextureClient.cpp \
|
|
ISurfaceComposer.cpp \
|
|
ISurface.cpp \
|
|
ISurfaceComposerClient.cpp \
|
|
IGraphicBufferAlloc.cpp \
|
|
LayerState.cpp \
|
|
Surface.cpp \
|
|
SurfaceComposerClient.cpp \
|
|
DummyConsumer.cpp \
|
|
CpuConsumer.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libbinder \
|
|
libcutils \
|
|
libEGL \
|
|
libGLESv2 \
|
|
libhardware \
|
|
libhardware_legacy \
|
|
libsync \
|
|
libui \
|
|
libutils \
|
|
|
|
|
|
LOCAL_MODULE:= libgui
|
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), omap4)
|
|
LOCAL_CFLAGS += -DUSE_FENCE_SYNC
|
|
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
|
|
endif
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
ifeq (,$(ONE_SHOT_MAKEFILE))
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|
|
endif
|