47 for (
int i = 0;
i < loops; ++
i) {
83 for (
int i = 0;
i < loops; ++
i) {
84 std::vector<int> hits;
90 fTree.
search(query, &hits);
static const int NUM_QUERY_RECTS
static const int NUM_BUILD_RECTS
static const int GRID_WIDTH
static SkRect make_YXordered_rects(SkRandom &rand, int index, int numRects)
SkRect(* MakeRectProc)(SkRandom &, int, int)
static SkRect make_XYordered_rects(SkRandom &rand, int index, int numRects)
static SkRect make_random_rects(SkRandom &rand, int index, int numRects)
static const SkScalar GENERATE_EXTENTS
DEF_BENCH(return new RTreeBuildBench("XY", &make_XYordered_rects))
static SkRect make_concentric_rects(SkRandom &, int index, int numRects)
const char * onGetName() override
void onDraw(int loops, SkCanvas *canvas) override
bool isSuitableFor(Backend backend) override
RTreeBuildBench(const char *name, MakeRectProc proc)
void onDraw(int loops, SkCanvas *canvas) override
void onDelayedSetup() override
bool isSuitableFor(Backend backend) override
RTreeQueryBench(const char *name, MakeRectProc proc)
const char * onGetName() override
void insert(const SkRect[], int N) override
void search(const SkRect &query, std::vector< int > *results) const override
float nextRangeF(float min, float max)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library name
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
static constexpr SkRect MakeWH(float w, float h)
SkScalar fTop
smaller y-axis bounds