We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6847185 commit 9e60dc5Copy full SHA for 9e60dc5
Libraries/LibGfx/SkiaUtils.h
@@ -32,7 +32,10 @@ constexpr SkColorType to_skia_color_type(Gfx::BitmapFormat format)
32
case Gfx::BitmapFormat::Invalid:
33
return kUnknown_SkColorType;
34
case Gfx::BitmapFormat::BGRA8888:
35
+ return kBGRA_8888_SkColorType;
36
case Gfx::BitmapFormat::BGRx8888:
37
+ // FIXME: This is not fully correct, since our bitmap's alpha component might contain garbage data.
38
+ // If the alpha component does not contain 0xFF, Skia might wrongly use that value as alpha.
39
return kBGRA_8888_SkColorType;
40
case Gfx::BitmapFormat::RGBA8888:
41
return kRGBA_8888_SkColorType;
0 commit comments