diff options
author | 2009-05-05 18:11:11 -0700 | |
---|---|---|
committer | 2009-05-05 18:11:11 -0700 | |
commit | ac2523b161df2bb507cc88906bb070878266770d (patch) | |
tree | 30ee897d6e8fa63e067627a91697f13f1fbd919d /include/ui/FramebufferNativeWindow.h | |
parent | e633f9339a2556771c79c784b0b23a9aade30485 (diff) |
move opengl/include/EGL/android_natives.h to include/ui/egl/android_natives.h and don't include it from egl.h
the android_native_ types are just forward declared in egl.h
Diffstat (limited to 'include/ui/FramebufferNativeWindow.h')
-rw-r--r-- | include/ui/FramebufferNativeWindow.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/include/ui/FramebufferNativeWindow.h b/include/ui/FramebufferNativeWindow.h index 0db245af44dd..aad39a2a6b8b 100644 --- a/include/ui/FramebufferNativeWindow.h +++ b/include/ui/FramebufferNativeWindow.h @@ -21,13 +21,14 @@ #include <sys/types.h> #include <EGL/egl.h> -#include <EGL/android_natives.h> #include <utils/threads.h> #include <ui/Rect.h> #include <pixelflinger/pixelflinger.h> +#include <ui/egl/android_natives.h> + extern "C" EGLNativeWindowType android_createDisplaySurface(void); @@ -36,25 +37,7 @@ namespace android { // --------------------------------------------------------------------------- class Surface; - - -class NativeBuffer - : public EGLNativeBase< - android_native_buffer_t, - NativeBuffer, - LightRefBase<NativeBuffer> > -{ -public: - NativeBuffer(int w, int h, int f, int u) : BASE() { - android_native_buffer_t::width = w; - android_native_buffer_t::height = h; - android_native_buffer_t::format = f; - android_native_buffer_t::usage = u; - } -private: - friend class LightRefBase<NativeBuffer>; - ~NativeBuffer() { }; // this class cannot be overloaded -}; +class NativeBuffer; // --------------------------------------------------------------------------- |