diff options
author | Iliyan Malchev <malchev@google.com> | 2011-05-01 11:33:26 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-05-03 16:40:14 -0700 |
commit | b2a153adc9860616acdb96d7cdd64494d5a2a0f2 (patch) | |
tree | 3e87a5d9681d86ad68c14222774f77bc4bd3ae4a /include | |
parent | be0cc36525f090032d1b84d95e1d8ba5fc714fc2 (diff) | |
download | frameworks_base-b2a153adc9860616acdb96d7cdd64494d5a2a0f2.zip frameworks_base-b2a153adc9860616acdb96d7cdd64494d5a2a0f2.tar.gz frameworks_base-b2a153adc9860616acdb96d7cdd64494d5a2a0f2.tar.bz2 |
frameworks/base: android_native_buffer_t -> ANativeWindowBuffer
Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/SurfaceTextureClient.h | 16 | ||||
-rw-r--r-- | include/media/stagefright/HardwareAPI.h | 2 | ||||
-rw-r--r-- | include/surfaceflinger/Surface.h | 16 | ||||
-rw-r--r-- | include/ui/FramebufferNativeWindow.h | 6 | ||||
-rw-r--r-- | include/ui/GraphicBuffer.h | 12 |
5 files changed, 26 insertions, 26 deletions
diff --git a/include/gui/SurfaceTextureClient.h b/include/gui/SurfaceTextureClient.h index 61ccbcb..c77bc4c 100644 --- a/include/gui/SurfaceTextureClient.h +++ b/include/gui/SurfaceTextureClient.h @@ -45,20 +45,20 @@ private: SurfaceTextureClient(const SurfaceTextureClient& rhs); // ANativeWindow hooks - static int cancelBuffer(ANativeWindow* window, android_native_buffer_t* buffer); - static int dequeueBuffer(ANativeWindow* window, android_native_buffer_t** buffer); - static int lockBuffer(ANativeWindow* window, android_native_buffer_t* buffer); + static int cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); + static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer); + static int lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); static int perform(ANativeWindow* window, int operation, ...); static int query(const ANativeWindow* window, int what, int* value); - static int queueBuffer(ANativeWindow* window, android_native_buffer_t* buffer); + static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); static int setSwapInterval(ANativeWindow* window, int interval); - int cancelBuffer(android_native_buffer_t* buffer); - int dequeueBuffer(android_native_buffer_t** buffer); - int lockBuffer(android_native_buffer_t* buffer); + int cancelBuffer(ANativeWindowBuffer* buffer); + int dequeueBuffer(ANativeWindowBuffer** buffer); + int lockBuffer(ANativeWindowBuffer* buffer); int perform(int operation, va_list args); int query(int what, int* value) const; - int queueBuffer(android_native_buffer_t* buffer); + int queueBuffer(ANativeWindowBuffer* buffer); int setSwapInterval(int interval); int dispatchConnect(va_list args); diff --git a/include/media/stagefright/HardwareAPI.h b/include/media/stagefright/HardwareAPI.h index d1ecaaf..946a0aa 100644 --- a/include/media/stagefright/HardwareAPI.h +++ b/include/media/stagefright/HardwareAPI.h @@ -84,7 +84,7 @@ struct UseAndroidNativeBufferParams { OMX_U32 nPortIndex; OMX_PTR pAppPrivate; OMX_BUFFERHEADERTYPE **bufferHeader; - const sp<android_native_buffer_t>& nativeBuffer; + const sp<ANativeWindowBuffer>& nativeBuffer; }; // A pointer to this struct is passed to OMX_GetParameter when the extension diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h index 31f2496..ab30f45 100644 --- a/include/surfaceflinger/Surface.h +++ b/include/surfaceflinger/Surface.h @@ -202,17 +202,17 @@ private: * ANativeWindow hooks */ static int setSwapInterval(ANativeWindow* window, int interval); - static int dequeueBuffer(ANativeWindow* window, android_native_buffer_t** buffer); - static int cancelBuffer(ANativeWindow* window, android_native_buffer_t* buffer); - static int lockBuffer(ANativeWindow* window, android_native_buffer_t* buffer); - static int queueBuffer(ANativeWindow* window, android_native_buffer_t* buffer); + static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer); + static int cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); + static int lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); + static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); static int query(const ANativeWindow* window, int what, int* value); static int perform(ANativeWindow* window, int operation, ...); - int dequeueBuffer(android_native_buffer_t** buffer); - int lockBuffer(android_native_buffer_t* buffer); - int queueBuffer(android_native_buffer_t* buffer); - int cancelBuffer(android_native_buffer_t* buffer); + int dequeueBuffer(ANativeWindowBuffer** buffer); + int lockBuffer(ANativeWindowBuffer* buffer); + int queueBuffer(ANativeWindowBuffer* buffer); + int cancelBuffer(ANativeWindowBuffer* buffer); int query(int what, int* value) const; int perform(int operation, va_list args); diff --git a/include/ui/FramebufferNativeWindow.h b/include/ui/FramebufferNativeWindow.h index 3e67f96..302d012 100644 --- a/include/ui/FramebufferNativeWindow.h +++ b/include/ui/FramebufferNativeWindow.h @@ -67,9 +67,9 @@ private: friend class LightRefBase<FramebufferNativeWindow>; ~FramebufferNativeWindow(); // this class cannot be overloaded static int setSwapInterval(ANativeWindow* window, int interval); - static int dequeueBuffer(ANativeWindow* window, android_native_buffer_t** buffer); - static int lockBuffer(ANativeWindow* window, android_native_buffer_t* buffer); - static int queueBuffer(ANativeWindow* window, android_native_buffer_t* buffer); + static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer); + static int lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); + static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); static int query(const ANativeWindow* window, int what, int* value); static int perform(ANativeWindow* window, int operation, ...); diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h index 02d6f8f..370253a 100644 --- a/include/ui/GraphicBuffer.h +++ b/include/ui/GraphicBuffer.h @@ -26,7 +26,7 @@ #include <utils/Flattenable.h> #include <pixelflinger/pixelflinger.h> -struct android_native_buffer_t; +struct ANativeWindowBuffer; namespace android { @@ -38,7 +38,7 @@ class GraphicBufferMapper; class GraphicBuffer : public EGLNativeBase< - android_native_buffer_t, + ANativeWindowBuffer, GraphicBuffer, LightRefBase<GraphicBuffer> >, public Flattenable { @@ -74,8 +74,8 @@ public: GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, uint32_t stride, native_handle_t* handle, bool keepOwnership); - // create a buffer from an existing android_native_buffer_t - GraphicBuffer(android_native_buffer_t* buffer, bool keepOwnership); + // create a buffer from an existing ANativeWindowBuffer + GraphicBuffer(ANativeWindowBuffer* buffer, bool keepOwnership); // return status status_t initCheck() const; @@ -94,7 +94,7 @@ public: status_t lock(GGLSurface* surface, uint32_t usage); status_t unlock(); - android_native_buffer_t* getNativeBuffer() const; + ANativeWindowBuffer* getNativeBuffer() const; void setIndex(int index); int getIndex() const; @@ -149,7 +149,7 @@ private: // If we're wrapping another buffer then this reference will make sure it // doesn't get freed. - sp<android_native_buffer_t> mWrappedBuffer; + sp<ANativeWindowBuffer> mWrappedBuffer; }; }; // namespace android |