33 for (
int i = 0;
i < 4; ++
i) {
36 for (
int i = 0;
i < 4; ++
i) {
40 dst->setRectRadii(r, radii);
53 for (
int i = 0;
i < 4; ++
i) {
56 dst->setRectRadii(r, radii);
69 for (
int i = 0;
i < 4; ++
i) {
72 for (
int i = 0;
i < 4; ++
i) {
80 dst->setRectRadii(r, radii);
84 return newSize * radius / oldSize;
97 for (
int i = 0;
i < 4; ++
i) {
100 for (
int i = 0;
i < 4; ++
i) {
104 dst->setRectRadii(r, radii);
109 paint.setAntiAlias(
true);
147 SkRect r = { 0, 0, 120, 100 };
149 { 0, 0 }, { 30, 1 }, { 10, 40 }, { 40, 40 }
158 for (
size_t j = 0; j <
std::size(insetProcs); ++j) {
170 using INHERITED =
GM;
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
void onDraw(SkCanvas *canvas) override
SkString getName() const override
SkISize getISize() override
void translate(SkScalar dx, SkScalar dy)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
void setOval(const SkRect &oval)
void setRectRadii(const SkRect &rect, const SkVector radii[4])
void setRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
void setRect(const SkRect &rect)
GM(SkColor backgroundColor=SK_ColorWHITE)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
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 void inset1(const SkRRect &src, SkScalar dx, SkScalar dy, SkRRect *dst)
static void inset0(const SkRRect &src, SkScalar dx, SkScalar dy, SkRRect *dst)
static SkScalar prop(SkScalar radius, SkScalar newSize, SkScalar oldSize)
static void inset2(const SkRRect &src, SkScalar dx, SkScalar dy, SkRRect *dst)
static void drawrr(SkCanvas *canvas, const SkRRect &rrect, InsetProc proc)
void(* InsetProc)(const SkRRect &, SkScalar dx, SkScalar dy, SkRRect *)
static void draw_rrect_color(SkCanvas *canvas, const SkRRect &rrect)
static void inset3(const SkRRect &src, SkScalar dx, SkScalar dy, SkRRect *dst)
static constexpr SkISize Make(int32_t w, int32_t h)
void inset(float dx, float dy)
constexpr float height() const
constexpr float width() const