1 2 LOCAL_SRC_FILES += SurfaceFlingerConfigs.cpp 3 4 ifneq ($(VSYNC_EVENT_PHASE_OFFSET_NS),) 5 LOCAL_CFLAGS += -DVSYNC_EVENT_PHASE_OFFSET_NS=$(VSYNC_EVENT_PHASE_OFFSET_NS) 6 endif 7 8 ifneq ($(SF_VSYNC_EVENT_PHASE_OFFSET_NS),) 9 LOCAL_CFLAGS += -DSF_VSYNC_EVENT_PHASE_OFFSET_NS=$(SF_VSYNC_EVENT_PHASE_OFFSET_NS) 10 endif 11 12 ifeq ($(TARGET_BOARD_PLATFORM),omap4) 13 LOCAL_CFLAGS += -DUSE_CONTEXT_PRIORITY=1 14 endif 15 16 ifeq ($(TARGET_BOARD_PLATFORM),s5pc110) 17 LOCAL_CFLAGS += -DUSE_CONTEXT_PRIORITY=1 18 endif 19 20 ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY),true) 21 LOCAL_CFLAGS += -DHAS_WIDE_COLOR_DISPLAY 22 endif 23 24 ifeq ($(TARGET_HAS_HDR_DISPLAY),true) 25 LOCAL_CFLAGS += -DHAS_HDR_DISPLAY 26 endif 27 28 ifneq ($(PRESENT_TIME_OFFSET_FROM_VSYNC_NS),) 29 LOCAL_CFLAGS += -DPRESENT_TIME_OFFSET_FROM_VSYNC_NS=$(PRESENT_TIME_OFFSET_FROM_VSYNC_NS) 30 else 31 LOCAL_CFLAGS += -DPRESENT_TIME_OFFSET_FROM_VSYNC_NS=0 32 endif 33 34 ifeq ($(TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS),true) 35 LOCAL_CFLAGS += -DFORCE_HWC_COPY_FOR_VIRTUAL_DISPLAYS 36 endif 37 38 ifneq ($(MAX_VIRTUAL_DISPLAY_DIMENSION),) 39 LOCAL_CFLAGS += -DMAX_VIRTUAL_DISPLAY_DIMENSION=$(MAX_VIRTUAL_DISPLAY_DIMENSION) 40 endif 41 42 ifeq ($(TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK),true) 43 LOCAL_CFLAGS += -DRUNNING_WITHOUT_SYNC_FRAMEWORK 44 endif 45 46 ifneq ($(USE_VR_FLINGER),) 47 LOCAL_CFLAGS += -DUSE_VR_FLINGER 48 endif 49 50 ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),) 51 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS) 52 endif 53 54 ifneq ($(SF_START_GRAPHICS_ALLOCATOR_SERVICE),) 55 LOCAL_CFLAGS += -DSTART_GRAPHICS_ALLOCATOR_SERVICE 56 endif 57