OSDN Git Service

remove dependency of EGL on ndk header
authorMathias Agopian <mathias@google.com>
Fri, 23 Mar 2012 21:15:44 +0000 (14:15 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 23 Mar 2012 21:15:44 +0000 (14:15 -0700)
Change-Id: Ia6e489b5b4f028864bdf54923e81f604710dd8ad

include/gui/SurfaceTextureClient.h
libs/gui/Surface.cpp
libs/gui/SurfaceTextureClient.cpp
opengl/include/EGL/eglplatform.h

index 1051bd2..f86e8fd 100644 (file)
@@ -27,6 +27,8 @@
 #include <utils/RefBase.h>
 #include <utils/threads.h>
 
+struct ANativeWindow_Buffer;
+
 namespace android {
 
 class Surface;
index 72b27ed..059f313 100644 (file)
@@ -21,6 +21,8 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#include <android/native_window.h>
+
 #include <utils/CallStack.h>
 #include <utils/Errors.h>
 #include <utils/Log.h>
index d18a3d4..b9e870d 100644 (file)
 #define ATRACE_TAG ATRACE_TAG_GRAPHICS
 //#define LOG_NDEBUG 0
 
+#include <android/native_window.h>
+
 #include <utils/Log.h>
 #include <utils/Trace.h>
 
 #include <gui/ISurfaceComposer.h>
 #include <gui/SurfaceComposerClient.h>
+#include <gui/SurfaceTexture.h>
 #include <gui/SurfaceTextureClient.h>
 
 #include <private/gui/ComposerService.h>
index bfac71b..af4d11f 100644 (file)
@@ -80,8 +80,7 @@ typedef void *EGLNativePixmapType;
 
 #elif defined(__ANDROID__) || defined(ANDROID)
 
-#include <android/native_window.h>
-
+struct ANativeWindow;
 struct egl_native_pixmap_t;
 
 typedef struct ANativeWindow*           EGLNativeWindowType;