summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-05-06 16:00:38 -0700
committerJeff Brown <jeffbrown@google.com>2014-05-06 17:13:43 -0700
commitc7282e57cd01f1576baac04356bf99bee34e4c18 (patch)
treec1b446ceed5a4ccc9cd68e7edcfbebfec7abe45d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentcedde01622a6798f5c4526ef1227bd906b6e59ef (diff)
Fix crash due to texture view callback threading invariants.
Allow the client of a SurfaceTexture to specify the Handler to which the update callback should be directed to avoid unnecessary scheduling ping-pong between threads. Fixed an invalid assumption in TextureView that it is attached to the main looper which could result in a crash under certain circumstances. In normal app processes, it is true that TextureViews must be created on the main looper since hardware rendering is currently only supported on the main looper. However, in the system server, UI components run a different thread. Although hardware rendering is normally disabled in the system server, it may be enabled for certain developer features. Bug: 14445309 Change-Id: I5ae17ad018b9ef05ba87ec2f972c7c82e2bca70a
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions