summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorThomas Buhot <thomas.buhot@intel.com>2016-01-18 10:31:58 +0100
committerZhiquan Liu <zhiquan.liu@intel.com>2016-01-19 15:00:42 +0800
commitc0a0e1a66da20a18045d59451b59ec32685bcf18 (patch)
treea5e3aaf1c605323c8000491358465f77236035e3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdbf8c17bd20c3c5b4ba99242afa8b714841914d1 (diff)
fix race condition between HWUI cache and renderThread
getMaximumBitmapWidth() and getMaximumBitmapHeight() of DisplayListCanvas need HWUI cache instance. Since the initialization of the cache is asynchronous it may crash if not yet ready. Add a staticFence() call to guarantee the cache has been created prior issuing the call. Change-Id: I5ed9e5cc084444c8d1872a77fef50e294ae14e93 Signed-off-by: Thomas Buhot <thomas.buhot@intel.com> Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions