commit | 67bbac844d3fda5c693464deddf349b80c5190a0 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu Apr 15 14:57:39 2010 -0700 |
committer | Mathias Agopian <mathias@google.com> | Thu Apr 15 15:23:25 2010 -0700 |
tree | fed9489b30dba324237db50733c85f85c7633878 | |
parent | ccb87e11da5ff4508ede1e4582a5d617fbe78a97 [diff] [blame] |
when a zero dimension buffer is allocated, turn the allocation into a 1x1 buffer instead of Nx1 (or 1xN) Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
diff --git a/include/ui/GraphicBufferAllocator.h b/include/ui/GraphicBufferAllocator.h index 741d763..54b8236 100644 --- a/include/ui/GraphicBufferAllocator.h +++ b/include/ui/GraphicBufferAllocator.h
@@ -73,9 +73,9 @@ struct alloc_rec_t { uint32_t w; uint32_t h; + uint32_t s; PixelFormat format; uint32_t usage; - void* vaddr; size_t size; };