Bug 3438258 surface textures

This is sufficient to build, but is not a full implementation.
See bug 3467199 for the real implementation.

Change-Id: Ifc3325fa9b019669bffddfd7bfd10bce57d0a136
diff --git a/libvideoeditor/lvpp/VideoEditorPlayer.cpp b/libvideoeditor/lvpp/VideoEditorPlayer.cpp
index 3e1743e..fe99472 100755
--- a/libvideoeditor/lvpp/VideoEditorPlayer.cpp
+++ b/libvideoeditor/lvpp/VideoEditorPlayer.cpp
@@ -69,6 +69,7 @@
     return (!OK);

 }

 

+// needed?

 status_t VideoEditorPlayer::setVideoISurface(const sp<ISurface> &surface) {

     LOGV("setVideoISurface");

 

@@ -83,6 +84,13 @@
     return OK;

 }

 

+status_t VideoEditorPlayer::setVideoSurfaceTexture(const sp<ISurfaceTexture> &surfaceTexture) {

+    LOGV("setVideoSurfaceTexture");

+

+    mPlayer->setSurfaceTexture(surfaceTexture);

+    return OK;

+}

+

 status_t VideoEditorPlayer::prepare() {

     LOGV("prepare");

     return mPlayer->prepare();

diff --git a/libvideoeditor/lvpp/VideoEditorPlayer.h b/libvideoeditor/lvpp/VideoEditorPlayer.h
index da00ca5..1febef4 100755
--- a/libvideoeditor/lvpp/VideoEditorPlayer.h
+++ b/libvideoeditor/lvpp/VideoEditorPlayer.h
@@ -97,8 +97,10 @@
             const char *url, const KeyedVector<String8, String8> *headers);

 

     virtual status_t setDataSource(int fd, int64_t offset, int64_t length);

+    // needed?

     virtual status_t setVideoISurface(const sp<ISurface> &surface);

     virtual status_t setVideoSurface(const sp<Surface> &surface);

+    virtual status_t setVideoSurfaceTexture(const sp<ISurfaceTexture> &surfaceTexture);

     virtual status_t prepare();

     virtual status_t prepareAsync();

     virtual status_t start();