summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2016-07-25 10:05:35 -0700
committerRaph Levien <raph@google.com>2016-07-25 10:10:15 -0700
commit575284af7c1370bd732e3db77ff55f0b57566d91 (patch)
treee13b60d91dbb87c9ec6351f7b6f8f8a52edc6ed3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfd1ba564587623ddcbe1800777a3acee23b598fa (diff)
Enforce consistent sizes for arrays in SpannableStringInternal
The grow logic in SpannableStringInternal#setSpan assumes that the size of mSpanData is consistent with that of mSpans, in particular that if the latter doesn't need to grow, neither does the former. The copySpans() method didn't enforce this, creating an mSpanData array only big enough to hold the data. This patch documents the invariant in a comment and enforces it. Bug: 30359314 Change-Id: Ie25db70a76836e97af8476a7f5c10cb4b976c1cf
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions