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 | 697526bc9e44ce61c88614f98387ae8bbf0a187e (patch) | |
tree | 2a928d6e8442d5ec1990d63e6b355b02a54c3bf6 /libs/ui/GraphicBuffer.cpp | |
parent | ec10d231c0eaadbcb143932e5c1bb7c1953125a7 (diff) | |
download | frameworks_native-697526bc9e44ce61c88614f98387ae8bbf0a187e.zip frameworks_native-697526bc9e44ce61c88614f98387ae8bbf0a187e.tar.gz frameworks_native-697526bc9e44ce61c88614f98387ae8bbf0a187e.tar.bz2 |
frameworks/base: android_native_buffer_t -> ANativeWindowBuffer
Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'libs/ui/GraphicBuffer.cpp')
-rw-r--r-- | libs/ui/GraphicBuffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp index 97312a6..54a3ffa 100644 --- a/libs/ui/GraphicBuffer.cpp +++ b/libs/ui/GraphicBuffer.cpp @@ -33,7 +33,7 @@ namespace android { // =========================================================================== -// Buffer and implementation of android_native_buffer_t +// Buffer and implementation of ANativeWindowBuffer // =========================================================================== GraphicBuffer::GraphicBuffer() @@ -77,7 +77,7 @@ GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, handle = inHandle; } -GraphicBuffer::GraphicBuffer(android_native_buffer_t* buffer, bool keepOwnership) +GraphicBuffer::GraphicBuffer(ANativeWindowBuffer* buffer, bool keepOwnership) : BASE(), mOwner(keepOwnership ? ownHandle : ownNone), mBufferMapper(GraphicBufferMapper::get()), mInitCheck(NO_ERROR), mIndex(-1), mWrappedBuffer(buffer) @@ -119,9 +119,9 @@ void GraphicBuffer::dumpAllocationsToSystemLog() GraphicBufferAllocator::dumpToSystemLog(); } -android_native_buffer_t* GraphicBuffer::getNativeBuffer() const +ANativeWindowBuffer* GraphicBuffer::getNativeBuffer() const { - return static_cast<android_native_buffer_t*>( + return static_cast<ANativeWindowBuffer*>( const_cast<GraphicBuffer*>(this)); } |