Loading
Pass ColorSpace along with HardwareBuffers
Bug: 130148101 Bug: 120904891 Test: I3bdb6a7edbab4b9b8f13d4597e5987e6db6fe928 Bitmap#wrapHardwareBuffer defaults to using the SRGB ColorSpace (i.e. if null is supplied), but it's possible that where the HardwareBuffer was originally used, it was associated with a different ColorSpace. Update clients of this API to pass that ColorSpace. Pass the ColorSpace's ID. This results in only supporting Named ColorSpaces, which matches some of our other ColorSpace support, and should be enough for most use cases. Change-Id: I02460f079ed467199f368b4a4fd7708d6fa5433a