summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJake Wharton <jakewharton@gmail.com>2012-07-28 21:31:51 -0700
committerJake Wharton <jakewharton@gmail.com>2012-07-28 21:40:04 -0700
commit825992f503439bc87d9d7e698a487f17b5acc243 (patch)
treefa22ac1d97b380cdb25a77bbf61bd48698b9a862 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2c932143ffe865d49c741e466b425bdbabbd1f2f (diff)
Return early when checking divider before child zero.
Previously the `getChildAt` method would be called with an index of -1 which would lead to an exception being thrown and caught. This is unnecessary since we know there will never be a divider before the first child. It also avoids additional object creation since this method can be invoked quite frequently. Change-Id: Iab44520d5d52f96a829a009cdd1201696edbf9a4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions