Use GL to render preview.

To speed up the preview, we direct the decoder output to a
SurfaceTexture, then draw the texture to a surface. The media
rendering parameters (crop, black-border) are implemented
using different vertex coordinates. The color effects are
implemented using fragment shaders. Currently only three color
effects are implemented, but that's all the appplication uses.

Change-Id: If84439fee572ed37ea077749ef9f2bd4f78703e1
diff --git a/libvideoeditor/lvpp/Android.mk b/libvideoeditor/lvpp/Android.mk
index 64e7c73..7478ba5 100755
--- a/libvideoeditor/lvpp/Android.mk
+++ b/libvideoeditor/lvpp/Android.mk
@@ -37,7 +37,8 @@
     AudioPlayerBase.cpp \
     PreviewPlayerBase.cpp \
     PreviewRenderer.cpp \
-    YV12ColorConverter.cpp
+    YV12ColorConverter.cpp \
+    NativeWindowRenderer.cpp
 
 LOCAL_MODULE_TAGS := optional
 
@@ -58,7 +59,9 @@
     libstagefright_foundation \
     libgui \
     libaudioflinger \
-    libui
+    libui \
+    libEGL \
+    libGLESv2
 
 
 LOCAL_C_INCLUDES += \