Pass down NativeWindow

BZ: 15626

Change-Id: I78f69aa13367c2e59a20ef565ee3a6b7d192b9c5
Signed-off-by: Jason Hu <jason.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/30227
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/videodecoder/VideoDecoderBase.cpp b/videodecoder/VideoDecoderBase.cpp
index 0f7f4ae..15df3ca 100644
--- a/videodecoder/VideoDecoderBase.cpp
+++ b/videodecoder/VideoDecoderBase.cpp
@@ -709,6 +709,7 @@
         mVAExternalMemoryBuffers->count = mNumSurfaces;
         mVAExternalMemoryBuffers->luma_stride= mConfigBuffer.graphicBufferStride;
         mVAExternalMemoryBuffers->pixel_format = mConfigBuffer.graphicBufferColorFormat;
+        mVAExternalMemoryBuffers->native_window = mConfigBuffer.nativeWindow;
         mVAExternalMemoryBuffers->width = mVideoFormatInfo.width;
         mVAExternalMemoryBuffers->height = mVideoFormatInfo.height;
         mVAExternalMemoryBuffers->type = VAExternalMemoryAndroidGrallocBuffer;
diff --git a/videodecoder/VideoDecoderDefs.h b/videodecoder/VideoDecoderDefs.h
index 92a5668..0e9949e 100644
--- a/videodecoder/VideoDecoderDefs.h
+++ b/videodecoder/VideoDecoderDefs.h
@@ -116,6 +116,7 @@
     uint32_t graphicBufferStride;
     uint32_t graphicBufferColorFormat;
     VideoFormatSpecificData *ext;
+    void* nativeWindow;
 };
 
 struct VideoRenderBuffer {