Go to the source code of this file.
|
static SkRect | make_XYordered_rects (SkRandom &rand, int index, int numRects) |
|
static SkRect | make_YXordered_rects (SkRandom &rand, int index, int numRects) |
|
static SkRect | make_random_rects (SkRandom &rand, int index, int numRects) |
|
static SkRect | make_concentric_rects (SkRandom &, int index, int numRects) |
|
| DEF_BENCH (return new RTreeBuildBench("XY", &make_XYordered_rects)) |
|
| DEF_BENCH (return new RTreeBuildBench("YX", &make_YXordered_rects)) |
|
| DEF_BENCH (return new RTreeBuildBench("random", &make_random_rects)) |
|
| DEF_BENCH (return new RTreeBuildBench("concentric", &make_concentric_rects)) |
|
◆ MakeRectProc
◆ DEF_BENCH() [1/4]
DEF_BENCH |
( |
return new |
RTreeBuildBench"concentric", &make_concentric_rects | ) |
|
◆ DEF_BENCH() [2/4]
DEF_BENCH |
( |
return new |
RTreeBuildBench"random", &make_random_rects | ) |
|
◆ DEF_BENCH() [3/4]
DEF_BENCH |
( |
return new |
RTreeBuildBench"XY", &make_XYordered_rects | ) |
|
◆ DEF_BENCH() [4/4]
DEF_BENCH |
( |
return new |
RTreeBuildBench"YX", &make_YXordered_rects | ) |
|
◆ make_concentric_rects()
Definition at line 126 of file RTreeBench.cpp.
126 {
128}
static constexpr SkRect MakeWH(float w, float h)
◆ make_random_rects()
Definition at line 117 of file RTreeBench.cpp.
117 {
124}
static const SkScalar GENERATE_EXTENTS
float nextRangeF(float min, float max)
◆ make_XYordered_rects()
Definition at line 100 of file RTreeBench.cpp.
100 {
107}
static const int GRID_WIDTH
◆ make_YXordered_rects()
◆ GENERATE_EXTENTS
const SkScalar GENERATE_EXTENTS = 1000.0f |
|
static |
◆ GRID_WIDTH
const int GRID_WIDTH = 100 |
|
static |
◆ NUM_BUILD_RECTS
const int NUM_BUILD_RECTS = 500 |
|
static |
◆ NUM_QUERY_RECTS
const int NUM_QUERY_RECTS = 5000 |
|
static |