summaryrefslogtreecommitdiff
path: root/libs/ui/InputManager.cpp
diff options
context:
space:
mode:
author Xavier Ducrohet <xav@android.com> 2010-12-23 03:25:57 -0800
committer Xavier Ducrohet <xav@android.com> 2010-12-24 00:21:50 -0800
commit20805343296eef04081fee82fd04547f51225fe3 (patch)
tree2a5ec42a96c385a526b59e69447993b0d988c9c8 /libs/ui/InputManager.cpp
parent1039872f597995cab2f88b9c841f8c2b8e71c451 (diff)
LayoutLib: Fix Canvas layer support with 2+ layers
- When drawing is not clipped to the top layers, drawing should not happen automatically on all existing layers. Instead each layer's flags dictate whether drawing should happen on layers beneath, starting with the top layer. - upon restore, the same mechanism is taken. Only blit a layer into the layer beneath if it was drawn into using the logic above. Also fixed: - saveLayer() does not, in fact, always save matrix and clip info. The flag dictate this, the same way it does in save() - drawing code didn't properly detect the case of drawing into layers if a save() was called after saveLayer(). Now the code only looks at the layer list which provide all the needed info (flags mostly), and doesn't rely on mLocalLayer (which is used during restore only now). - Properly handle HAS_ALPHA_LAYER_SAVE_FLAG (or lack thereof) when creating the BufferedImage for the layer. Change-Id: I2fbbcc0f5d3a3dd208763705bc23e6658fd4e573
Diffstat (limited to 'libs/ui/InputManager.cpp')
0 files changed, 0 insertions, 0 deletions