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 | 8ce2364512f7c32c824f5ec5719688830ba72427 (patch) | |
tree | e9a4d9af9512132c16ae5fdbd888c8f1ceac50a5 /services/camera | |
parent | 8951a97b1f8462c37e740ea5082eea0445d2c501 (diff) | |
download | frameworks_av-8ce2364512f7c32c824f5ec5719688830ba72427.zip frameworks_av-8ce2364512f7c32c824f5ec5719688830ba72427.tar.gz frameworks_av-8ce2364512f7c32c824f5ec5719688830ba72427.tar.bz2 |
frameworks/base: android_native_buffer_t -> ANativeWindowBuffer
Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'services/camera')
-rw-r--r-- | services/camera/libcameraservice/CameraHardwareInterface.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/services/camera/libcameraservice/CameraHardwareInterface.h b/services/camera/libcameraservice/CameraHardwareInterface.h index e30f7bf..f9fa30e 100644 --- a/services/camera/libcameraservice/CameraHardwareInterface.h +++ b/services/camera/libcameraservice/CameraHardwareInterface.h @@ -504,7 +504,7 @@ private: { int rc; ANativeWindow *a = anw(w); - struct android_native_buffer_t* anb; + ANativeWindowBuffer* anb; rc = a->dequeueBuffer(a, &anb); if (!rc) { rc = a->lockBuffer(a, anb); @@ -527,7 +527,7 @@ private: { ANativeWindow *a = anw(w); return a->queueBuffer(a, - container_of(buffer, android_native_buffer_t, handle)); + container_of(buffer, ANativeWindowBuffer, handle)); } static int __cancel_buffer(struct preview_stream_ops* w, @@ -535,20 +535,20 @@ private: { ANativeWindow *a = anw(w); return a->cancelBuffer(a, - container_of(buffer, android_native_buffer_t, handle)); + container_of(buffer, ANativeWindowBuffer, handle)); } static int __set_buffer_count(struct preview_stream_ops* w, int count) { ANativeWindow *a = anw(w); - return a->perform(a, NATIVE_WINDOW_SET_BUFFER_COUNT, count); + return native_window_set_buffer_count(a, count); } static int __set_buffers_geometry(struct preview_stream_ops* w, int width, int height, int format) { ANativeWindow *a = anw(w); - return a->perform(a, NATIVE_WINDOW_SET_BUFFERS_GEOMETRY, + return native_window_set_buffers_geometry(a, width, height, format); } @@ -561,13 +561,13 @@ private: crop.top = top; crop.right = right; crop.bottom = bottom; - return a->perform(a, NATIVE_WINDOW_SET_CROP, &crop); + return native_window_set_crop(a, &crop); } static int __set_usage(struct preview_stream_ops* w, int usage) { ANativeWindow *a = anw(w); - return a->perform(a, NATIVE_WINDOW_SET_USAGE, usage); + return native_window_set_usage(a, usage); } static int __set_swap_interval(struct preview_stream_ops *w, int interval) |