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.
This commit is contained in:
Mathias Agopian
2009-05-05 00:37:46 -07:00
parent 6279619e42
commit 430f2ed5c0
6 changed files with 73 additions and 50 deletions

View File

@ -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: