Lines Matching refs:lattice
385 SkCanvas::Lattice lattice; in GR_DRAW_OP_TEST_DEFINE() local
416 lattice.fBounds = ⊂ in GR_DRAW_OP_TEST_DEFINE()
417 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE()
418 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE()
419 xdivs.reset(new int[lattice.fXCount]); in GR_DRAW_OP_TEST_DEFINE()
420 ydivs.reset(new int[lattice.fYCount]); in GR_DRAW_OP_TEST_DEFINE()
421 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random); in GR_DRAW_OP_TEST_DEFINE()
422 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random); in GR_DRAW_OP_TEST_DEFINE()
423 lattice.fXDivs = xdivs.get(); in GR_DRAW_OP_TEST_DEFINE()
424 lattice.fYDivs = ydivs.get(); in GR_DRAW_OP_TEST_DEFINE()
427 int n = (lattice.fXCount + 1) * (lattice.fYCount + 1); in GR_DRAW_OP_TEST_DEFINE()
434 lattice.fRectTypes = flags.get(); in GR_DRAW_OP_TEST_DEFINE()
435 lattice.fColors = colors.get(); in GR_DRAW_OP_TEST_DEFINE()
437 lattice.fRectTypes = nullptr; in GR_DRAW_OP_TEST_DEFINE()
438 lattice.fColors = nullptr; in GR_DRAW_OP_TEST_DEFINE()
440 } while (!SkLatticeIter::Valid(desc.fWidth, desc.fHeight, lattice)); in GR_DRAW_OP_TEST_DEFINE()
446 std::unique_ptr<SkLatticeIter> iter(new SkLatticeIter(lattice, dst)); in GR_DRAW_OP_TEST_DEFINE()