commit | 8a0bff5e35f63321178bbf777ec24d42544866b3 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Sun May 06 13:14:33 2012 -0700 |
committer | Romain Guy <romainguy@google.com> | Sun May 06 13:14:33 2012 -0700 |
tree | e49cd530eed4dff49845232a561308349385ec69 | |
parent | 8e21bc54113bf361d959f2c5934035b15f949379 [diff] |
Remove unnecessary allocations This change removes a couple of allocations per frame when the user is trying to scroll past the end of the workspace. The allocated object, PorterDuffXfermode, is pretty expensive and creating a new one on every frame could potentially defeat GL rendering optimizations. Change-Id: Iebaf579d29ad8f14112c5af8cb5dce8d7f4dfbaf