diff options
Diffstat (limited to 'libs/hwui/PixelBuffer.h')
| -rw-r--r-- | libs/hwui/PixelBuffer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/hwui/PixelBuffer.h b/libs/hwui/PixelBuffer.h index aac5ec4777ee..bbef36b72e4f 100644 --- a/libs/hwui/PixelBuffer.h +++ b/libs/hwui/PixelBuffer.h @@ -91,14 +91,6 @@ public: virtual uint8_t* map(AccessMode mode = kAccessMode_ReadWrite) = 0; /** - * Unmaps this buffer, if needed. After the buffer is unmapped, - * the pointer previously returned by map() becomes invalid and - * should not be used. After calling this method, getMappedPointer() - * will always return NULL. - */ - virtual void unmap() = 0; - - /** * Returns the current access mode for this buffer. If the buffer * is not mapped, this method returns kAccessMode_None. */ @@ -204,6 +196,14 @@ protected: mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) { } + /** + * Unmaps this buffer, if needed. After the buffer is unmapped, + * the pointer previously returned by map() becomes invalid and + * should not be used. After calling this method, getMappedPointer() + * will always return NULL. + */ + virtual void unmap() = 0; + GLenum mFormat; uint32_t mWidth; |