53 ambientColor, spotColor,
flags);
62 const SkScalar kAmbientAlpha = 0.05f;
65 const SkScalar elevations[] = { 1, 3, 6, 8, 12, 24 };
68 paint.setAntiAlias(
true);
76 for (
unsigned int i = 0;
i <
std::size(elevations); ++
i) {
77 zPlaneParams.
fZ = elevations[
i];
79 lightPos, kLightRadius, kSpotAlpha);
86 for (
unsigned int i = 0;
i <
std::size(elevations); ++
i) {
87 zPlaneParams.
fZ = elevations[
i];
89 lightPos, kLightRadius, kSpotAlpha);
96 for (
unsigned int i = 0;
i <
std::size(elevations); ++
i) {
97 zPlaneParams.
fZ = elevations[
i];
99 lightPos, kLightRadius, kSpotAlpha);
106 for (
unsigned int i = 0;
i <
std::size(elevations); ++
i) {
107 zPlaneParams.
fZ = elevations[
i];
109 lightPos, kLightRadius, kSpotAlpha);
116 for (
unsigned int i = 0;
i <
std::size(elevations); ++
i) {
118 zPlaneParams.
fZ = elevations[
i];
121 lightPos, kLightRadius, kSpotAlpha);
129 for (
unsigned int i = 0;
i <
std::size(elevations); ++
i) {
131 zPlaneParams.
fZ = elevations[
i];
134 lightPos, kLightRadius, kSpotAlpha);
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor SK_ColorWHITE
@ kDirectionalLight_ShadowFlag
void load(SkScalar w, SkScalar h) override
void drawShadowedPath(SkCanvas *canvas, const SkPath &path, const SkPoint3 &zPlaneParams, const SkPaint &paint, SkScalar ambientAlpha, const SkPoint3 &lightPos, SkScalar lightRadius, SkScalar spotAlpha)
void draw(SkCanvas *canvas) override
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void rotate(SkScalar degrees)
void drawPath(const SkPath &path, const SkPaint &paint)
SkPath & addCircle(SkScalar x, SkScalar y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
SkPath & addRRect(const SkRRect &rrect, SkPathDirection dir=SkPathDirection::kCW)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
static void DrawShadow(SkCanvas *canvas, const SkPath &path, const SkPoint3 &zPlaneParams, const SkPoint3 &lightPos, SkScalar lightRadius, SkColor ambientColor, SkColor spotColor, uint32_t flags=SkShadowFlags::kNone_ShadowFlag)
FlutterSemanticsFlag flags
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
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)