whyred: Add display targets and flags

This commit is contained in:
Vasishath Kaushal 2018-06-04 22:55:06 +05:30
parent 49842c1153
commit 382d9956ec
2 changed files with 29 additions and 0 deletions

View file

@ -130,6 +130,23 @@ AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
USE_CUSTOM_AUDIO_POLICY := 1
USE_XML_AUDIO_POLICY_CONF := 1
# Display
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
TARGET_USES_C2D_COMPOSITION := true
TARGET_USES_GRALLOC1 := true
TARGET_USES_HWC2 := true
TARGET_USES_ION := true
TARGET_USES_OVERLAY := true
USE_OPENGL_RENDERER := true
MAX_EGL_CACHE_KEY_SIZE := 12*1024
MAX_EGL_CACHE_SIZE := 2048*1024
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
# Recovery
BOARD_HAS_NO_REAL_SDCARD := true

View file

@ -93,5 +93,17 @@ PRODUCT_COPY_FILES += \
$(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
$(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
# Display
PRODUCT_PACKAGES += \
copybit.sdm660 \
gralloc.sdm660 \
hwcomposer.sdm660 \
memtrack.sdm660 \
liboverlay \
libdisplayconfig \
libhwc2on1apadapter \
libqdMetaData.system \
libtinyxml
# Call the proprietary setup
$(call inherit-product, vendor/xiaomi/whyred/whyred-vendor.mk)