From 430f2ed5c03312700131a70c858b98e1cc6bc161 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 5 May 2009 00:37:46 -0700 Subject: removed the "bits" attribute from android_native_buffer_t. "bits" can never be trusted now that we need to call lock() on the handle to get the virtual address of the buffer. --- include/ui/Surface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ui/Surface.h') diff --git a/include/ui/Surface.h b/include/ui/Surface.h index 6eb06ae..ce50719 100644 --- a/include/ui/Surface.h +++ b/include/ui/Surface.h @@ -54,8 +54,8 @@ public: return handle; } - status_t lock(uint32_t usage); - status_t lock(uint32_t usage, const Rect& rect); + status_t lock(uint32_t usage, void** vaddr); + status_t lock(uint32_t usage, const Rect& rect, void** vaddr); status_t unlock(); protected: -- cgit v1.1