#include <optional>
#include "flutter/shell/common/rasterizer.h"
#include "flutter/shell/platform/embedder/embedder.h"
Go to the source code of this file.
◆ getSkColorInfo()
Definition at line 34 of file pixel_formats.cc.
34 {
36 if (!ct) {
37 return std::nullopt;
38 }
39
42
44}
@ kOpaque_SkAlphaType
pixel is opaque
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
SK_API bool SkColorTypeIsAlwaysOpaque(SkColorType ct)
static sk_sp< SkColorSpace > MakeSRGB()
◆ getSkColorType()
Definition at line 12 of file pixel_formats.cc.
12 {
13 switch (pixfmt) {
27 return kN32_SkColorType;
28 default:
29 FML_LOG(
ERROR) <<
"Invalid software rendering pixel format";
30 return std::nullopt;
31 }
32}
@ kARGB_4444_SkColorType
pixel with 4 bits for alpha, red, green, blue; in 16-bit word
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
@ kRGB_888x_SkColorType
pixel with 8 bits each for red, green, blue; in 32-bit word
@ kFlutterSoftwarePixelFormatRGBA4444
@ kFlutterSoftwarePixelFormatRGBA8888
@ kFlutterSoftwarePixelFormatBGRA8888
@ kFlutterSoftwarePixelFormatGray8
@ kFlutterSoftwarePixelFormatNative32
@ kFlutterSoftwarePixelFormatRGBX8888
@ kFlutterSoftwarePixelFormatRGB565
#define FML_LOG(severity)