8#include "third_party/skia/include/core/SkColorSpace.h"
9#include "third_party/skia/include/core/SkColorType.h"
10#include "third_party/skia/include/core/SkImageInfo.h"
15 return kGray_8_SkColorType;
17 return kRGB_565_SkColorType;
19 return kARGB_4444_SkColorType;
21 return kRGBA_8888_SkColorType;
23 return kRGB_888x_SkColorType;
25 return kBGRA_8888_SkColorType;
27 return kN32_SkColorType;
29 FML_LOG(ERROR) <<
"Invalid software rendering pixel format";
40 auto at = SkColorTypeIsAlwaysOpaque(*ct) ? kOpaque_SkAlphaType
41 : kPremul_SkAlphaType;
43 return SkColorInfo(*ct, at, SkColorSpace::MakeSRGB());
FlutterSoftwarePixelFormat
@ kFlutterSoftwarePixelFormatRGBA4444
@ kFlutterSoftwarePixelFormatRGBA8888
@ kFlutterSoftwarePixelFormatBGRA8888
@ kFlutterSoftwarePixelFormatGray8
@ kFlutterSoftwarePixelFormatNative32
@ kFlutterSoftwarePixelFormatRGBX8888
@ kFlutterSoftwarePixelFormatRGB565
#define FML_LOG(severity)