summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-04-15 14:57:39 -0700
committerMathias Agopian <mathias@google.com>2010-04-15 15:23:25 -0700
commit5629eb167638a9ebfa5059177d227c7ac67db46f (patch)
treec5a922a844ec13a0a5c16c639ae0c309be17e8cd /include
parent27f962f985eea0157922ebe80c44efbf6889725d (diff)
downloadframeworks_native-5629eb167638a9ebfa5059177d227c7ac67db46f.zip
frameworks_native-5629eb167638a9ebfa5059177d227c7ac67db46f.tar.gz
frameworks_native-5629eb167638a9ebfa5059177d227c7ac67db46f.tar.bz2
when a zero dimension buffer is allocated, turn the allocation into
a 1x1 buffer instead of Nx1 (or 1xN) Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
Diffstat (limited to 'include')
-rw-r--r--include/ui/GraphicBufferAllocator.h2
1 files changed, 1 insertions, 1 deletions
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 @@ private:
struct alloc_rec_t {
uint32_t w;
uint32_t h;
+ uint32_t s;
PixelFormat format;
uint32_t usage;
- void* vaddr;
size_t size;
};