26static constexpr char kGlyphs[] =
"ABCDEFGH7JKLMNOPQRSTUVWXYZabcdefghijk1mnopqrstuvwxyz";
28static_assert(52 ==
kNumGlyphs,
"expected 52 glyphs");
35 PathTextBench(
bool clipped,
bool uncached) : fClipped(clipped), fUncached(uncached) {}
38 const char* onGetName()
override {
50 void onDelayedSetup()
override {
56 const SkGlyph* glyph = pathMaker.glyph(
id);
58 fGlyphs[
i] = *glyph->
path();
70 float t0 = pow(rand.
nextF(), 100);
77 (1 - t2) *
sqrt(2) *
scale/2 * glyphSize +
92 void onDraw(
int loops,
SkCanvas* canvas)
override {
105 const bool fUncached;
static constexpr int kNumDraws
static constexpr int kScreenHeight
static constexpr int kNumGlyphs
static constexpr char kGlyphs[]
static constexpr int kScreenWidth
PathTextBench(bool clipped, bool uncached)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawPath(const SkPath &path, const SkPaint &paint)
void setMatrix(const SkM44 &matrix)
SkGlyphID unicharToGlyph(SkUnichar uni) const
const SkPath * path() const
SkMatrix & setTranslate(SkScalar dx, SkScalar dy)
SkMatrix & preTranslate(SkScalar dx, SkScalar dy)
SkMatrix & preRotate(SkScalar degrees, SkScalar px, SkScalar py)
SkMatrix & preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
void setColor(SkColor color)
void setAntiAlias(bool aa)
SkPath & setIsVolatile(bool isVolatile)
const SkRect & getBounds() const
static SkStrikeSpec MakeWithNoDevice(const SkFont &font, const SkPaint *paint=nullptr)
void append(const char text[])
const char * c_str() const
static float max(float r, float g, float b)
static float min(float r, float g, float b)
Optional< SkRect > bounds
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
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
static constexpr SkISize Make(int32_t w, int32_t h)
static SkRect MakeIWH(int w, int h)