95 {
98
100
102
104
105 const char* gColorTypeNames[] = { "8888", "565" };
106
107 const char* gFilterNames[] = { "Nearest", "Linear", "Trilinear", "Mitchell", "Aniso" };
108
111 const char* gModeNames[] = { "C", "R", "M" };
112
115
116 for (
size_t kx = 0; kx < std::size(
gModes); kx++) {
117 for (
size_t ky = 0; ky < std::size(
gModes); ky++) {
119 str.
printf(
"[%s,%s]", gModeNames[kx], gModeNames[ky]);
120
123
125 }
126 }
127
129
130 for (
size_t i = 0; i < std::size(
gColorTypes); i++) {
131 for (
size_t j = 0; j < std::size(
gSamplings); j++) {
133 for (
size_t kx = 0; kx < std::size(
gModes); kx++) {
134 for (
size_t ky = 0; ky < std::size(
gModes); ky++) {
136#if 1
137
138 if (!fPowerOfTwoSize) {
140 }
141#endif
143 paint.setDither(
true);
144
150
152 }
153 }
156
158 }
159 }
160 }
SK_API SkString static SkString SkStringPrintf()
constexpr SkBlendMode gModes[]
SkBitmap fTexture[std::size(gColorTypes)]
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void scale(SkScalar sx, SkScalar sy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
static void DrawString(SkCanvas *canvas, const char text[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint, Align align=kLeft_Align)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
font
Font Metadata and Metrics.
constexpr float height() const
constexpr float width() const
static void makebm(SkBitmap *bm, SkColorType ct, int w, int h)
constexpr SkColorType gColorTypes[]
const SkSamplingOptions gSamplings[]