summaryrefslogtreecommitdiff
path: root/include/ui/Surface.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-05-05 00:59:23 -0700
committer Mathias Agopian <mathias@google.com> 2009-05-05 00:59:23 -0700
commit21c59d0070fe24a8e04e52ce04d511a924a9932f (patch)
treefb3f5f8519fce57c714dce607b12dc44aba67702 /include/ui/Surface.h
parente71212ba5397387100a578d23b15862518a7a859 (diff)
get rid of android_native_buffer_t::getHandle() and replace it with an handle field
this abstraction was not necessary. things are easier now.
Diffstat (limited to 'include/ui/Surface.h')
-rw-r--r--include/ui/Surface.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/ui/Surface.h b/include/ui/Surface.h
index ce507195a7..e9bb1b3f47 100644
--- a/include/ui/Surface.h
+++ b/include/ui/Surface.h
@@ -50,10 +50,6 @@ class SurfaceBuffer
LightRefBase<SurfaceBuffer> >
{
public:
- buffer_handle_t getHandle() const {
- return handle;
- }
-
status_t lock(uint32_t usage, void** vaddr);
status_t lock(uint32_t usage, const Rect& rect, void** vaddr);
status_t unlock();
@@ -62,7 +58,6 @@ protected:
SurfaceBuffer();
SurfaceBuffer(const Parcel& reply);
virtual ~SurfaceBuffer();
- buffer_handle_t handle;
bool mOwner;
inline const BufferMapper& getBufferMapper() const { return mBufferMapper; }
@@ -80,9 +75,6 @@ private:
static status_t writeToParcel(Parcel* reply,
android_native_buffer_t const* buffer);
- static int getHandle(android_native_buffer_t const * base,
- buffer_handle_t* handle);
-
BufferMapper& mBufferMapper;
};