summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-01-27 10:30:25 -0800
committerChet Haase <chet@google.com>2011-01-27 10:30:25 -0800
commitf4ac547f868db7c8a358e1f6e3d8fcebb02dbd49 (patch)
tree3bc02f0ae034b5acba5082a8cadad237a6991981 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parente38ba4acbe6f1536997ffb98d662fc3eff07add8 (diff)
Fix NPE with display lists when view not attached
There was logic in ViewGroup that assumed that an accelerated view must always be able to get a display list for any child that it was drawing. One situation occurred, however, that caused a problem with this - a contacts activity was started and not yet attached, but was being asked to render into an accelerated canvas. We assumed that the child would have a display list and simply called getDisplayList(). But since that call returned null, we later deref'd the null object. The fix is to check whether a child can have a display list instead of assuming that it can just because the container view is accelerated. Change-Id: I7de62fd597ad50720c9585d621bec02e77c171df
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions