summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2011-05-17 12:42:19 -0700
committerChet Haase <chet@google.com>2011-05-17 12:42:19 -0700
commit6f33e81a0b3a95396318e987e234dc8e1dce1eb9 (patch)
tree4fa91b9c50be31cea0456616a6db85dc72b47f6e /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf76dd3abbe461aa9f42e06376687457360a481ac (diff)
Fix for using HARDWARE layers on unaccelerated views.
If a view is not accelerated but has its layer type set to LAYER_TYPE_HARDWARE, then the framework will use the old drawing cache approach, to cache it in a bitmap. This works fine, but when the layer is set to NONE, that drawing cache is not destroyed, as it would be were the layer set to LAYER_TYPE_SOFTWARE. This prevents future invalidations on the view from working correctly because the bitmap cache has never been destroyed and recreated. The fix is to always destroy the drawing cache when the layer type is changed from SOFTWARE or HARDWARE, to make sure that it gets set appropriately regardless of the state of the view's acceleration. Change-Id: I449649e6d370477825015505da76564455a156e6
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions