summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ScriptGroup.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-10-10 17:17:58 -0700
committerJeff Brown <jeffbrown@google.com>2012-10-10 21:46:55 -0700
commit9cf36b7a77bb8e821f9e593fdbb200f8a1742ff0 (patch)
treee84975fdc589a0a9457265626dd5bea21afca2b8 /graphics/java/android/renderscript/ScriptGroup.java
parent3c584f20ac8fe9378c094ad3b63936bca35954ba (diff)
Don't process UEvents in Dalvik unless they match a pattern.
On some devices, vsync is delivered from the kernel to userspace over a netlink socket via UEvent. The result is that a thread wakes up, reads a message, creates a new String then searches it for matches against a pattern on every single frame. Reduce the overhead by performing the initial pattern matching in native code. Bug: 7326329 Change-Id: Icb22db1c38330694207bec1153840e0c06f502d6
Diffstat (limited to 'graphics/java/android/renderscript/ScriptGroup.java')
0 files changed, 0 insertions, 0 deletions