drm_hwcomposer: integrate GLCompositor with hwcomposer
This patch makes it such that HWC will always composite all layers even if
there are too few HW planes. Any layers that do not fit in a plane get
rendered into a screen sized buffer by GLCompositor, the result of which uses
up one of the available HW planes.
Change-Id: Ibd560ae4c536632ac32d965152ceacd92bbba39f
diff --git a/Android.mk b/Android.mk
index 9fc17fa..5eef35f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -20,10 +20,14 @@
LOCAL_SHARED_LIBRARIES := \
libcutils \
libdrm \
+ libEGL \
+ libGLESv2 \
libhardware \
liblog \
libsync \
- libutils \
+ libui \
+ libutils
+
LOCAL_C_INCLUDES := \
external/libdrm \
@@ -44,7 +48,9 @@
drmmode.cpp \
drmplane.cpp \
drmproperty.cpp \
+ gl_compositor.cpp \
hwcomposer.cpp \
+ seperate_rects.cpp \
vsyncworker.cpp \
worker.cpp