36#include <initializer_list>
74 path.moveTo(460.2881309415525f,
76 path.cubicTo(463.36378422175284f,
84 fillR =
path.getBounds();
89 strokeR =
stroke.getBounds();
94 paint.getStrokeWidth() * miter :
95 paint.getStrokeWidth();
119#define FOR_SETUP(index, array, setter) \
120 for (size_t index = 0; index < std::size(array); ++index) { \
121 paint.setter(array[index]);
124 paint.setAntiAlias(
true);
136 writer.writeToMemory(buf.
get());
161#define ASSERT(expr) REPORTER_ASSERT(r, expr)
165 paint.setColor(0x00AABBCC);
172 writer.writeToMemory(buf.
get());
190 paint.setAlpha(0xFF);
209 const char text[] =
"Hamburgefons!@#!#23425,./;'[]";
223 for (
bool subpix : {
false,
true }) {
224 font.setSubpixel(subpix);
226 font.setHinting(hint);
227 for (
auto size : { 1.0f, 12.0f, 100.0f }) {
DEF_TEST(Paint_copy, reporter)
#define FOR_SETUP(index, array, setter)
@ kSrcOver
r = s + (1-sa)*d
@ kNormal_SkBlurStyle
fuzzy inside and outside
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kNormal
glyph outlines modified to improve constrast
@ kNone
glyph outlines unchanged
@ kSlight
minimal modification to improve constrast
@ kFull
modifies glyph outlines for maximum constrast
@ kUTF8
uses bytes to represent UTF-8 or ASCII
#define REPORTER_ASSERT(r, cond,...)
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
static sk_sp< SkColorFilter > Matrix(const SkColorMatrix &)
void postTranslate(float dr, float dg, float db, float da)
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
static bool ShouldDither(const SkPaint &, SkColorType)
static void Flatten(const SkPaint &paint, SkWriteBuffer &buffer)
@ kButt_Cap
no stroke extension
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
std::optional< SkBlendMode > asBlendMode() const
static float max(float r, float g, float b)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
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.
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static SkRect inset(const SkRect &r)
void inset(float dx, float dy)
bool contains(SkScalar x, SkScalar y) const
void setLTRB(float left, float top, float right, float bottom)