Cache display lists for Drawables

Change-Id: I86e2dd4cd4ac8871f4131450cb9082c2b8de2eed
This commit is contained in:
Alan Viverette
2014-01-14 17:16:29 -08:00
parent 4a5eb8fe18
commit c062c7003f
7 changed files with 97 additions and 22 deletions

View File

@@ -456,7 +456,7 @@ public class BitmapDrawable extends Drawable {
}
@Override
public void draw(Canvas canvas) {
protected void onDraw(Canvas canvas) {
Bitmap bitmap = mBitmap;
if (bitmap != null) {
final BitmapState state = mBitmapState;