commit | 17a8bfc38a565ae96f43d36b223779be840bb50c | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <[email protected]> | Tue Jun 03 16:15:15 2014 -0400 |
committer | Leon Scroggins III <[email protected]> | Wed Jun 11 18:53:42 2014 -0400 |
tree | f5165dc988ab313ebdd91585a8c0ad31eaaa88c8 | |
parent | 2e9df83b4aca02a05664ac82bf1ef8860f402ef8 [diff] |
In Bitmap.reconfigure, update the pixelref's info. This fixes CTS tests which are crashing on an SkASSERT due to a mismatch of SkImageInfo between the SkPixelRef and SkBitmap. Also directly call ref() and unref() instead of SkSafeRef/SkSafeUnref, since we would already crash if the SkPixelRef in question was NULL. Also if the user attempts to reconfigure to 4444, use 8888 instead. Change-Id: I473ef225c6cd1c92d67ae103c53c6cff0dad92de