Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathBuilder.h"
#include "include/core/SkPathEffect.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkDashPathEffect.h"
#include "include/private/base/SkTArray.h"
#include "src/base/SkFloatBits.h"
#include <functional>
Go to the source code of this file.
Macros | |
#define | DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH) |
Functions | |
void | draw_arcs (SkCanvas *canvas, std::function< void(SkPaint *)> configureStyle) |
DEF_ARC_GM (fill) | |
DEF_ARC_GM (hairline) | |
DEF_ARC_GM (stroke_butt) | |
DEF_ARC_GM (stroke_square) | |
DEF_ARC_GM (stroke_round) | |
DEF_SIMPLE_GM (circular_arcs_weird, canvas, 1000, 400) | |
DEF_SIMPLE_GM (onebadarc, canvas, 100, 100) | |
DEF_SIMPLE_GM (crbug_888453, canvas, 480, 150) | |
DEF_SIMPLE_GM (circular_arc_stroke_matrix, canvas, 820, 1090) | |
DEF_SIMPLE_GM (crbug_1472747, canvas, 400, 400) | |
Variables | |
constexpr SkScalar | kStarts [] = {0.f, 10.f, 30.f, 45.f, 90.f, 165.f, 180.f, 270.f} |
constexpr SkScalar | kSweeps [] = {1.f, 45.f, 90.f, 130.f, 180.f, 184.f, 300.f, 355.f} |
constexpr SkScalar | kDiameter = 40.f |
constexpr SkRect | kRect = {0.f, 0.f, kDiameter, kDiameter} |
constexpr int | kW = 1000 |
constexpr int | kH = 1000 |
#define DEF_ARC_GM | ( | name | ) | DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH) |
Definition at line 79 of file circulararcs.cpp.
DEF_ARC_GM | ( | fill | ) |
Definition at line 81 of file circulararcs.cpp.
DEF_ARC_GM | ( | hairline | ) |
DEF_ARC_GM | ( | stroke_butt | ) |
Definition at line 94 of file circulararcs.cpp.
DEF_ARC_GM | ( | stroke_round | ) |
Definition at line 110 of file circulararcs.cpp.
DEF_ARC_GM | ( | stroke_square | ) |
Definition at line 102 of file circulararcs.cpp.
DEF_SIMPLE_GM | ( | circular_arc_stroke_matrix | , |
canvas | , | ||
820 | , | ||
1090 | |||
) |
Definition at line 245 of file circulararcs.cpp.
DEF_SIMPLE_GM | ( | circular_arcs_weird | , |
canvas | , | ||
1000 | , | ||
400 | |||
) |
Definition at line 118 of file circulararcs.cpp.
DEF_SIMPLE_GM | ( | crbug_1472747 | , |
canvas | , | ||
400 | , | ||
400 | |||
) |
Definition at line 325 of file circulararcs.cpp.
DEF_SIMPLE_GM | ( | crbug_888453 | , |
canvas | , | ||
480 | , | ||
150 | |||
) |
Definition at line 225 of file circulararcs.cpp.
DEF_SIMPLE_GM | ( | onebadarc | , |
canvas | , | ||
100 | , | ||
100 | |||
) |
Definition at line 203 of file circulararcs.cpp.
void draw_arcs | ( | SkCanvas * | canvas, |
std::function< void(SkPaint *)> | configureStyle | ||
) |
Definition at line 32 of file circulararcs.cpp.
|
constexpr |
Definition at line 27 of file circulararcs.cpp.
|
constexpr |
Definition at line 30 of file circulararcs.cpp.
Definition at line 28 of file circulararcs.cpp.
|
constexpr |
Definition at line 25 of file circulararcs.cpp.
|
constexpr |
Definition at line 26 of file circulararcs.cpp.
|
constexpr |
Definition at line 29 of file circulararcs.cpp.