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