27 while (
rect.isEmpty()) {
38 std::vector<int> expected;
41 if (SkRect::Intersects(query, rects[
i])) {
42 expected.push_back(
i);
46 if (expected.size() != found.size()) {
49 if (0 == expected.size()) {
52 return found == expected;
58 std::vector<int> hits;
66 int expectedDepthMin = -1;
70 static_cast<double>(expectedDepthMin + 1)));
74 int expectedDepthMax = -1;
78 static_cast<double>(expectedDepthMax + 1)));
97 expectedDepthMax >= rtree.
getDepth());
static const size_t NUM_QUERIES
DEF_TEST(RTree, reporter)
static SkRect random_rect(SkRandom &rand)
static const int NUM_RECTS
static void run_queries(skiatest::Reporter *reporter, SkRandom &rand, SkRect rects[], const SkRTree &tree)
static const size_t NUM_ITERATIONS
static bool verify_query(SkRect query, SkRect rects[], const std::vector< int > &found)
#define REPORTER_ASSERT(r, cond,...)
void insert(const SkRect[], int N) override
static const int kMinChildren
void search(const SkRect &query, std::vector< int > *results) const override
static const int kMaxChildren
float nextRangeF(float min, float max)
sk_sp< SkBlender > blender SkRect rect