summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-03-13 16:14:47 -0700
committerRomain Guy <romainguy@google.com>2013-03-13 16:14:47 -0700
commitbd3055f95e67a55648fd84a125e939293115171b (patch)
treec22ae6a64fda750461de8a0defaf85d1a999ba07 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0f809f3b794174f044366bf421f8d0c72d9afc14 (diff)
Less aggressive glyphs precaching
The renderer used to pre-cache glyphs at record time. This then changed to pre-caching at the beginning of every frame. This unfortunately entails a lot of duplicate work on every frame, which amounts to 0.5 to 1ms in some stock applications. This change is somewhere in the middle: pre-caching happens the first time a DrawTextOp is deferred or every time the screen-space transform is different from the last pre-caching operation. Change-Id: Id6d9e2599d90a5b75010b0f0a28746befbf3c205
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions