Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc653368 authored by Leon Scroggins III's avatar Leon Scroggins III Committed by android-build-merger
Browse files

Merge "Ensure that hardware Bitmap has a ColorSpace" into qt-dev

am: 46ea5598

Change-Id: Ibdd5bfd3ac962eaea3febaaa059700e03fadf0eb
parents c597de91 46ea5598
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@ SkColorType PixelFormatToColorType(android::PixelFormat format) {
}

sk_sp<SkColorSpace> DataSpaceToColorSpace(android_dataspace dataspace) {
    if (dataspace == HAL_DATASPACE_UNKNOWN) {
        return SkColorSpace::MakeSRGB();
    }

    skcms_Matrix3x3 gamut;
    switch (dataspace & HAL_DATASPACE_STANDARD_MASK) {