vaPutSurface on Android: move the drawable to ANativeWindow
authorAustin Yuan <shengquan.yuan@gmail.com>
Thu, 7 Mar 2013 02:32:19 +0000 (10:32 +0800)
committerAustin Yuan <shengquan.yuan@gmail.com>
Thu, 14 Mar 2013 02:07:24 +0000 (10:07 +0800)
Change-Id: I21b886966bbe70ff902daafe828de47ad3f0b956
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
va/android/va_android.cpp
va/va_android.h

index f042786..e2edb92 100644 (file)
@@ -194,7 +194,7 @@ extern "C"  {
 VAStatus vaPutSurface (
     VADisplay dpy,
     VASurfaceID surface,
-    sp<ISurface> draw, /* Android Surface/Window */
+    sp<ANativeWindow> draw, /* Android Native Window */
     short srcx,
     short srcy,
     unsigned short srcw,
index 796ab63..0193fb0 100644 (file)
@@ -48,7 +48,7 @@ VADisplay vaGetDisplay (
 
 #ifdef __cplusplus
 #ifdef ANDROID
-#include <surfaceflinger/ISurface.h>
+#include <gui/Surface.h>
 using namespace android;
 
 /*
@@ -61,8 +61,8 @@ using namespace android;
  */
 VAStatus vaPutSurface (
     VADisplay dpy,
-    VASurfaceID surface,       
-    sp<ISurface> draw, /* Android Window/Surface */
+    VASurfaceID surface,
+    sp<ANativeWindow> draw, /* Android Native Window */
     short srcx,
     short srcy,
     unsigned short srcw,