diff options
author | Tor Norbye <tnorbye@google.com> | 2010-11-12 16:29:08 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2010-11-15 07:12:08 -0800 |
commit | 0fef3efc3e317fcfecefb2e5376a3613479e6dbd (patch) | |
tree | 48b85e493a9fe7fd61824af157289a4379e65109 /layoutlib_api/src/com/android/layoutlib/api/ViewInfo.java | |
parent | 09324606fa602d352271004655d1020df29c2a59 (diff) | |
download | sdk-0fef3efc3e317fcfecefb2e5376a3613479e6dbd.zip sdk-0fef3efc3e317fcfecefb2e5376a3613479e6dbd.tar.gz sdk-0fef3efc3e317fcfecefb2e5376a3613479e6dbd.tar.bz2 |
Use view bounds to speed up image cropping
Use the view bounds from the layout result as an initial cropping
size. This saves us from looking at a lot of empty pixels when we
render small views. This also means we can attempt rendering a larger
surface for the preview, which makes accidentally cropping large views
less likely.
(Also fix a couple of other suggestions from previous commit)
Change-Id: I9215f00db14adc42950897637e9f66aa921d484e
Diffstat (limited to 'layoutlib_api/src/com/android/layoutlib/api/ViewInfo.java')
0 files changed, 0 insertions, 0 deletions