Go to the source code of this file.
◆ DEF_GANESH_TEST()
Definition at line 67 of file GpuRectanizerTest.cpp.
67 {
70
71 for (
int i = 0;
i < 50;
i++) {
74 }
75
78}
static void test_skyline(skiatest::Reporter *reporter, const SkTDArray< SkISize > &rects)
static void test_pow2(skiatest::Reporter *reporter, const SkTDArray< SkISize > &rects)
uint32_t nextRangeU(uint32_t min, uint32_t max)
void push_back(const T &v)
static constexpr SkISize Make(int32_t w, int32_t h)
◆ test_pow2()
Definition at line 60 of file GpuRectanizerTest.cpp.
60 {
62
65}
static void test_rectanizer_inserts(skiatest::Reporter *, Rectanizer *rectanizer, const SkTDArray< SkISize > &rects)
static void test_rectanizer_basic(skiatest::Reporter *reporter, Rectanizer *rectanizer)
◆ test_rectanizer_basic()
Definition at line 27 of file GpuRectanizerTest.cpp.
27 {
30
32
37}
#define REPORTER_ASSERT(r, cond,...)
virtual float percentFull() const =0
virtual bool addRect(int width, int height, SkIPoint16 *loc)=0
◆ test_rectanizer_inserts()
Definition at line 39 of file GpuRectanizerTest.cpp.
41 {
43 for (
i = 0;
i < rects.
size(); ++
i) {
45 if (!rectanizer->
addRect(rects[
i].fWidth, rects[
i].fHeight, &loc)) {
46 break;
47 }
48 }
49
50
51}
◆ test_skyline()
◆ kHeight
◆ kWidth