diff options
author | Adam Powell <adamp@google.com> | 2014-03-06 17:55:16 -0800 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2014-03-10 14:09:18 -0700 |
commit | fd6b99750bfab7f930ee375a79009874a3196165 (patch) | |
tree | b122d36116e37ca411dd5bdef134c70d3c685f53 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | c6f0b54d695b49966a13bb196800a985ac6ce212 (diff) |
Prevent overflow from MeasureSpec.adjust; measure cache fix
Extract the size from the MeasureSpec value before adding the
delta. The opposite order could result in a negative delta causing
overflow into size from the EXACTLY mode, creating a very large size
value in the resulting MeasureSpec.
Don't reapply optical bounds insets after pulling a value from the
measurement cache. (The insets will have already been applied before
insertion into the cache.)
Change-Id: Ib0154f4d6c3a7c31e7fee24fd7d5d10cc5dc71a1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions