commit | d0b0d8f0553ed81c685b2a659e00028e1f3e9e83 | [log] [tgz] |
---|---|---|
author | Saurabh Shah <saurshah@codeaurora.org> | Fri Jan 31 11:45:56 2014 -0800 |
committer | Saurabh Shah <saurshah@codeaurora.org> | Tue Feb 04 13:22:38 2014 -0800 |
tree | 69cf627cd6dfc620cf45737d65ce13d6bdb0275e | |
parent | a6fe50e68627e64464122b0bad91e02b0639b501 [diff] |
gralloc: Fix getSize and getAlignedWidthAndHeight getSize was incorrectly modifying aligned height and allocating a buffer of lesser than expected size. All alignments should be done in getAlignedWidthAndHeight so as not to break the GRALLOC_PERFORM functions. getSize()'s return type is unsigned, but a signed value is returned. Instead on error, a size of 0 should be reported. Change-Id: Ifae5e758de8e689701cd43892324ccc0140675cd