DO NOT MERGE Prevent ImageWallpaper from crashing due to wide gamut
ImageWallpaper may fail at either uploading texture or computing the
histogram of the bitmap, we catch the unexpected exceptions to avoid
crashing the whole process. In addition, we also take wide gamut into
account while computing the histogram.
Test: Set 1.jpg of #34 in the bug as wallpaper.
Test: The symptom should not happen.
(cherry picked from commit 34c8ecdf280d6209aa8163c1bc8f41a449302e39)
2 files changed