43 for (
i = 0;
i < rects.
size(); ++
i) {
45 if (!rectanizer->
addRect(rects[
i].fWidth, rects[
i].fHeight, &loc)) {
71 for (
int i = 0;
i < 50;
i++) {
static void test_skyline(skiatest::Reporter *reporter, const SkTDArray< SkISize > &rects)
DEF_GANESH_TEST(GpuRectanizer, reporter, factory, CtsEnforcement::kNever)
static void test_rectanizer_inserts(skiatest::Reporter *, Rectanizer *rectanizer, const SkTDArray< SkISize > &rects)
static void test_pow2(skiatest::Reporter *reporter, const SkTDArray< SkISize > &rects)
static void test_rectanizer_basic(skiatest::Reporter *reporter, Rectanizer *rectanizer)
#define REPORTER_ASSERT(r, cond,...)
uint32_t nextRangeU(uint32_t min, uint32_t max)
void push_back(const T &v)
virtual float percentFull() const =0
virtual bool addRect(int width, int height, SkIPoint16 *loc)=0
static constexpr SkISize Make(int32_t w, int32_t h)