commit | cfdc784b6cdcbbb2bf2ba4d53d9a9eb2c37278a3 | [log] [tgz] |
---|---|---|
author | Xavier Ducrohet <xav@android.com> | Tue Dec 14 18:05:22 2010 -0800 |
committer | Xavier Ducrohet <xav@android.com> | Wed Dec 15 13:44:03 2010 -0800 |
tree | 77c8994cc5ff69df955475f0c6f43dea8aafa88b | |
parent | 34961cc2e5cd483b15dfd1ff1eb33b01b849e0dc [diff] |
LayoutLib: replace the stack of Graphics2D with custom snapshots. The first step is to allow the canvas to save only the matrix or the clip. Previously, since the graphics2D were created completely new on each save, everything was saved. Also allows to set transform/clip on the Canvas when no bitmap has been set (and therefore no Graphics2D exists). This is required by BitmapFactory. Change-Id: I37eff6dde1ca708d58ba317b40e9b3236f3ef3d0