drm_hwcomposer: add checks for tegra hardware limitation am: 19756b03f9
am: 5dbc0adc18
Change-Id: Ibd11e714718744372d4ed20e2ba7553af995b097
diff --git a/Android.mk b/Android.mk
index f46276c..c5ccd36 100644
--- a/Android.mk
+++ b/Android.mk
@@ -71,8 +71,6 @@
glworker.cpp \
hwcutils.cpp \
platform.cpp \
- platformdrmgeneric.cpp \
- platformnv.cpp \
separate_rects.cpp \
virtualcompositorworker.cpp \
vsyncworker.cpp
@@ -83,8 +81,10 @@
ifeq ($(strip $(BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER)),nvidia-gralloc)
LOCAL_CPPFLAGS += -DUSE_NVIDIA_IMPORTER
+LOCAL_SRC_FILES += platformnv.cpp
else
LOCAL_CPPFLAGS += -DUSE_DRM_GENERIC_IMPORTER
+LOCAL_SRC_FILES += platformdrmgeneric.cpp
endif
LOCAL_MODULE := hwcomposer.drm