38 paint.setAntiAlias(
true);
42 bool hasInterior =
path.hasRectangularInterior(&
rect);
44 bool hasInterior =
false;
55 paint.setColor(0x8800FF00);
67 for (
int insetFirst = 0; insetFirst <= 1; ++insetFirst) {
68 for (
int doEvenOdd = 0; doEvenOdd <= 1; ++doEvenOdd) {
69 for (
int outerRR = 0; outerRR <= 1; ++outerRR) {
70 for (
int innerRR = 0; innerRR <= 1; ++innerRR) {
71 for (
int outerCW = 0; outerCW <= 1; ++outerCW) {
72 for (
int innerCW = 0; innerCW <= 1; ++innerCW) {
80 path.addRoundRect(r, RAD, RAD, outerDir);
82 path.addRect(r, outerDir);
86 path.addRoundRect(r, RAD, RAD, innerDir);
88 path.addRect(r, innerDir);
107 using INHERITED =
GM;
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorRED
SkString getName() const override
void show(SkCanvas *canvas, const SkPath &path)
SkISize getISize() override
void onDraw(SkCanvas *canvas) override
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
GM(SkColor backgroundColor=SK_ColorWHITE)
sk_sp< SkBlender > blender SkRect rect
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
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
static SkRect inset(const SkRect &r)
static constexpr SkISize Make(int32_t w, int32_t h)
constexpr float height() const
constexpr float width() const