155 {
158
164
165 constexpr char kTxt[] = "Clip Me!";
170
173 for (int doLayer = 0; doLayer <= testLayers; ++doLayer) {
174 for (
const Clip&
clip : fClips) {
176 for (int aa = 0; aa < 2; ++aa) {
177 if (doLayer) {
183 } else {
185 }
191 }
192 for (int aa = 0; aa < 2; ++aa) {
193
196 clipOutlinePaint.
setColor(0x50505050);
199
200 if (doLayer) {
206 } else {
208 }
211 canvas->
drawPath(closedClipPath, clipOutlinePaint);
213 canvas->
scale(1.f, 1.8f);
215 0, 1.5f *
font.getSize(), font, txtPaint);
218 }
220 }
223 }
224 }
constexpr SkColor SK_ColorDKGRAY
@ kUTF8
uses bytes to represent UTF-8 or ASCII
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
#define SkScalarCeilToInt(x)
static constexpr bool SkToBool(const T &x)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawSimpleText(const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
virtual SkISize getBaseLayerSize() const
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
const SkRect & getBounds() const
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
font
Font Metadata and Metrics.
static SkRect MakeIWH(int w, int h)