sdm: hwc2: Add support for HDMI as primary.

- Create external display if HDMI is already
  connected on boot.
- Wait for hotplug connect event if HDMI is not
  connected on boot.
- Notify surfaceflinger only once when primary
  display is created for first time.
- Destroy and recreate SDM external display on
  successive disconnect/connect. Do not notify
  surfaceflinger any subsequent hotplug events.
- Add null display implementation to route any
  incoming calls from surfaceflinger when display
  is disconnected.

CRs-Fixed: 2037067
Change-Id: I649756452d714e538c313cf80c0144934ad494f9
diff --git a/sdm/libs/hwc2/Android.mk b/sdm/libs/hwc2/Android.mk
index 592dc02..9f1f3c7 100644
--- a/sdm/libs/hwc2/Android.mk
+++ b/sdm/libs/hwc2/Android.mk
@@ -39,7 +39,8 @@
                                  hwc_callbacks.cpp \
                                  ../hwc/cpuhint.cpp \
                                  ../hwc/hwc_socket_handler.cpp \
-                                 hwc_tonemapper.cpp
+                                 hwc_tonemapper.cpp \
+                                 display_null.cpp
 
 ifneq ($(TARGET_USES_GRALLOC1), true)
     LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp