Lines Matching refs:lattice
394 SkCanvas::Lattice lattice; in GR_DRAW_OP_TEST_DEFINE() local
427 lattice.fBounds = ⊂ in GR_DRAW_OP_TEST_DEFINE()
428 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE()
429 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE()
430 xdivs.reset(new int[lattice.fXCount]); in GR_DRAW_OP_TEST_DEFINE()
431 ydivs.reset(new int[lattice.fYCount]); in GR_DRAW_OP_TEST_DEFINE()
432 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random); in GR_DRAW_OP_TEST_DEFINE()
433 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random); in GR_DRAW_OP_TEST_DEFINE()
434 lattice.fXDivs = xdivs.get(); in GR_DRAW_OP_TEST_DEFINE()
435 lattice.fYDivs = ydivs.get(); in GR_DRAW_OP_TEST_DEFINE()
438 int n = (lattice.fXCount + 1) * (lattice.fYCount + 1); in GR_DRAW_OP_TEST_DEFINE()
445 lattice.fRectTypes = flags.get(); in GR_DRAW_OP_TEST_DEFINE()
446 lattice.fColors = colors.get(); in GR_DRAW_OP_TEST_DEFINE()
448 lattice.fRectTypes = nullptr; in GR_DRAW_OP_TEST_DEFINE()
449 lattice.fColors = nullptr; in GR_DRAW_OP_TEST_DEFINE()
451 } while (!SkLatticeIter::Valid(desc.fWidth, desc.fHeight, lattice)); in GR_DRAW_OP_TEST_DEFINE()
457 std::unique_ptr<SkLatticeIter> iter(new SkLatticeIter(lattice, dst)); in GR_DRAW_OP_TEST_DEFINE()