Definition at line 720 of file PathBench.cpp.
◆ ArbRoundRectBench()
ArbRoundRectBench::ArbRoundRectBench |
( |
bool |
zeroRad | ) |
|
|
inline |
Definition at line 725 of file PathBench.cpp.
725 : fZeroRad(zeroRad) {
726 if (zeroRad) {
728 } else {
730 }
731 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
◆ add_corner_arc()
Definition at line 738 of file PathBench.cpp.
741 {
742
745
747 arcRect.
setLTRB(-rx, -ry, rx, ry);
749 case 0:
751 break;
752 case 90:
754 break;
755 case 180:
757 break;
758 case 270:
760 break;
761 default:
762 break;
763 }
764
766 }
static float min(float r, float g, float b)
sk_sp< SkBlender > blender SkRect rect
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
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
void offset(float dx, float dy)
void setLTRB(float left, float top, float right, float bottom)
SkScalar fTop
smaller y-axis bounds
◆ make_arb_round_rect()
Definition at line 768 of file PathBench.cpp.
769 {
770
776
778 }
static void add_corner_arc(SkPath *path, const SkRect &rect, SkScalar xIn, SkScalar yIn, int startAngle)
◆ onDraw()
void ArbRoundRectBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 780 of file PathBench.cpp.
780 {
783
784 for (
int i = 0;
i < loops; ++
i) {
787 paint.setAntiAlias(
true);
788
791 continue;
792 }
797
799
800 if (fZeroRad) {
802
804 } else {
806 }
807
809 }
810 }
static void make_arb_round_rect(SkPath *path, const SkRect &r, SkScalar xCorner, SkScalar yCorner)
void drawPath(const SkPath &path, const SkPaint &paint)
bool isRect(SkRect *rect, bool *isClosed=nullptr, SkPathDirection *direction=nullptr) const
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
constexpr float height() const
constexpr float width() const
◆ onGetName()
const char * ArbRoundRectBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ fName
The documentation for this class was generated from the following file: