summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-02-23 17:08:38 -0800
committerRomain Guy <romainguy@google.com>2012-02-23 17:08:38 -0800
commit4bcb7467a174ed03a67b0c62950c555813ddf00d (patch)
tree496ee923124a889d0a103fcc8dddba74515c2f81 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentcfef12374c15b11b3c2a1041582be9728152e15d (diff)
Only recreate path textures when necessary
When a drawPath command is recorded in a display list, a copy of the source path is made to preserve against possible modifications of the said source path. Copies are discarded when a display list is cleared, which usually happens on invalidate(). This means that even if a path is never modified, the texture generated to draw it on screen is destroyed every time an invalidate() is issued. This change fixes this problem by introducing a reference to the source path in the copy. If both the copy and the source path have the same genID, they are the same path and can share the same texture. Change-Id: I34849311c183e06336a1391d2d1568a087f973f6
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions