134 {
135 const struct {
144
149
154
159 };
160
162 const unsigned kDrawsPerRow = 4;
164
168
172 }
175 }
176 std::unique_ptr<SkImageGenerator>
gen =
178 fPicture,
180 p.getAlpha() != 255 ? &
p :
nullptr,
182 srgbColorSpace);
183
185
189
190 const SkScalar x = kDrawSize * (
i % kDrawsPerRow);
191 const SkScalar y = kDrawSize * (
i / kDrawsPerRow);
192
193 p.setColor(0xfff0f0f0);
199 }
200 }
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
void allocPixels(const SkImageInfo &info, size_t rowBytes)
sk_sp< SkImage > asImage() const
const SkImageInfo & info() const
void drawRect(const SkRect &rect, const SkPaint &paint)
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorSpace > MakeSRGB()
static SkMatrix Scale(SkScalar sx, SkScalar sy)
std::unique_ptr< SkImageGenerator > MakeFromPicture(const SkISize &, sk_sp< SkPicture >, const SkMatrix *, const SkPaint *, SkImages::BitDepth, sk_sp< SkColorSpace >, SkSurfaceProps props)
@ kU8
uses 8-bit unsigned int per color component
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
sk_sp< SkColorSpace > refColorSpace() const
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)