diff options
author | Iliyan Malchev <malchev@google.com> | 2011-05-01 11:09:47 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-05-02 10:59:10 -0700 |
commit | 5821f80aef8fce08967212b18a473dd32b707a8b (patch) | |
tree | 56f1706d0840dea33f6560d506b40f2f4afac3d4 | |
parent | d666768737a345f5ff30734e657c23d7ad5b83cf (diff) |
android_native_buffer_t --> ANativeWindowBuffer
Change-Id: I8e56442e0b42f6516675580bae8449490e8e9462
Signed-off-by: Iliyan Malchev <malchev@google.com>
-rw-r--r-- | test/egl.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/egl.cpp b/test/egl.cpp index 3bc425c..6eadaf5 100644 --- a/test/egl.cpp +++ b/test/egl.cpp @@ -275,11 +275,11 @@ struct egl_window_surface_v2_t : public egl_surface_t { virtual EGLBoolean setSwapRectangle(EGLint l, EGLint t, EGLint w, EGLint h); private: - status_t lock(android_native_buffer_t* buf, int usage, void** vaddr); - status_t unlock(android_native_buffer_t* buf); + status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr); + status_t unlock(ANativeWindowBuffer* buf); ANativeWindow* nativeWindow; - android_native_buffer_t* buffer; - android_native_buffer_t* previousBuffer; + ANativeWindowBuffer* buffer; + ANativeWindowBuffer* previousBuffer; gralloc_module_t const* module; int width; int height; @@ -371,8 +371,8 @@ private: }; void copyBlt( - android_native_buffer_t* dst, void* dst_vaddr, - android_native_buffer_t* src, void const* src_vaddr, + ANativeWindowBuffer* dst, void* dst_vaddr, + ANativeWindowBuffer* src, void const* src_vaddr, const Region& clip); Rect dirtyRegion; @@ -469,7 +469,7 @@ void egl_window_surface_v2_t::disconnect() } status_t egl_window_surface_v2_t::lock( - android_native_buffer_t* buf, int usage, void** vaddr) + ANativeWindowBuffer* buf, int usage, void** vaddr) { int err; @@ -479,7 +479,7 @@ status_t egl_window_surface_v2_t::lock( return err; } -status_t egl_window_surface_v2_t::unlock(android_native_buffer_t* buf) +status_t egl_window_surface_v2_t::unlock(ANativeWindowBuffer* buf) { if (!buf) return BAD_VALUE; int err = NO_ERROR; @@ -490,8 +490,8 @@ status_t egl_window_surface_v2_t::unlock(android_native_buffer_t* buf) } void egl_window_surface_v2_t::copyBlt( - android_native_buffer_t* dst, void* dst_vaddr, - android_native_buffer_t* src, void const* src_vaddr, + ANativeWindowBuffer* dst, void* dst_vaddr, + ANativeWindowBuffer* src, void const* src_vaddr, const Region& clip) { // FIXME: use copybit if possible |