Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathBuilder.h"
Go to the source code of this file.
Functions | |
static void | draw_labyrinth (SkCanvas *canvas, SkPaint::Cap cap) |
DEF_SIMPLE_GM (labyrinth_square, canvas, kWidth, kHeight) | |
DEF_SIMPLE_GM (labyrinth_round, canvas, kWidth, kHeight) | |
DEF_SIMPLE_GM (labyrinth_butt, canvas, kWidth, kHeight) | |
Variables | |
static constexpr int | kWidth = 500 |
static constexpr int | kHeight = 420 |
DEF_SIMPLE_GM | ( | labyrinth_butt | , |
canvas | , | ||
kWidth | , | ||
kHeight | |||
) |
Definition at line 96 of file labyrinth.cpp.
DEF_SIMPLE_GM | ( | labyrinth_round | , |
canvas | , | ||
kWidth | , | ||
kHeight | |||
) |
Definition at line 92 of file labyrinth.cpp.
DEF_SIMPLE_GM | ( | labyrinth_square | , |
canvas | , | ||
kWidth | , | ||
kHeight | |||
) |
Definition at line 88 of file labyrinth.cpp.
|
static |
Repro case for https://bugs.chromium.org/p/chromium/issues/detail?id=913223
The original bug was filed against square caps, but here we also draw the labyrinth using round and butt caps.
Square and round caps expose over-coverage on overlaps when using coverage counting.
Butt caps expose under-coverage on abutted strokes when using a 'max()' coverage function.
Definition at line 24 of file labyrinth.cpp.
|
staticconstexpr |
Definition at line 86 of file labyrinth.cpp.
|
staticconstexpr |
Definition at line 85 of file labyrinth.cpp.