diff options
| author | Leon Scroggins III <scroggo@google.com> | 2014-06-03 16:15:15 -0400 |
|---|---|---|
| committer | Leon Scroggins III <scroggo@google.com> | 2014-06-11 18:53:42 -0400 |
| commit | 17a8bfc38a565ae96f43d36b223779be840bb50c (patch) | |
| tree | f5165dc988ab313ebdd91585a8c0ad31eaaa88c8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
| 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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions
