/third_party/skia/src/gpu/ |
D | GrTestUtils.cpp | 121 static SkRect gRects[7]; in TestRect() local 125 gRects[0] = SkRect::MakeWH(1.f, 1.f); in TestRect() 126 gRects[1] = SkRect::MakeWH(1.0f, 256.0f); in TestRect() 127 gRects[2] = SkRect::MakeWH(256.0f, 1.0f); in TestRect() 128 gRects[3] = SkRectPriv::MakeLargest(); in TestRect() 129 gRects[4] = SkRect::MakeLTRB(-65535.0f, -65535.0f, 65535.0f, 65535.0f); in TestRect() 130 gRects[5] = SkRect::MakeLTRB(-10.0f, -10.0f, 10.0f, 10.0f); in TestRect() 132 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect() 137 static SkRect gRects[2]; in TestSquare() local 141 gRects[0] = SkRect::MakeWH(128.f, 128.f); in TestSquare() [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrTestUtils.cpp | 123 static SkRect gRects[7]; in TestRect() local 127 gRects[0] = SkRect::MakeWH(1.f, 1.f); in TestRect() 128 gRects[1] = SkRect::MakeWH(1.0f, 256.0f); in TestRect() 129 gRects[2] = SkRect::MakeWH(256.0f, 1.0f); in TestRect() 130 gRects[3] = SkRectPriv::MakeLargest(); in TestRect() 131 gRects[4] = SkRect::MakeLTRB(-65535.0f, -65535.0f, 65535.0f, 65535.0f); in TestRect() 132 gRects[5] = SkRect::MakeLTRB(-10.0f, -10.0f, 10.0f, 10.0f); in TestRect() 134 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect() 139 static SkRect gRects[2]; in TestSquare() local 143 gRects[0] = SkRect::MakeWH(128.f, 128.f); in TestSquare() [all …]
|
/third_party/skia/docs/examples/ |
D | strokerect_gm.cpp | 11 constexpr SkRect gRects[] = { in draw() local 30 for (size_t j = 0; j < SK_ARRAY_COUNT(gRects); ++j) { in draw() 35 const SkRect& rect = gRects[j]; in draw()
|
/third_party/skia/gm/ |
D | strokerect.cpp | 83 constexpr SkRect gRects[] = { in onDraw() local 104 for (size_t j = 0; j < SK_ARRAY_COUNT(gRects); ++j) { in onDraw() 105 const SkRect& r = gRects[j]; in onDraw()
|
/third_party/flutter/skia/gm/ |
D | strokerect.cpp | 83 constexpr SkRect gRects[] = { in onDraw() local 104 for (size_t j = 0; j < SK_ARRAY_COUNT(gRects); ++j) { in onDraw() 105 const SkRect& r = gRects[j]; in onDraw()
|
/third_party/skia/tests/ |
D | SkSLInterpreterTest.cpp | 526 SkIRect gRects[4] = { { 1,2,3,4 }, { 5,6,7,8 }, { 9,10,11,12 }, { 13,14,15,16 } }; in DEF_TEST() local 553 Args args(gRects); in DEF_TEST() 564 Args args(gRects); in DEF_TEST() 578 Args args(gRects); in DEF_TEST() 589 Args args(gRects); in DEF_TEST() 599 Args args(gRects); in DEF_TEST() 602 REPORTER_ASSERT(r, out == gRects[2]); in DEF_TEST() 610 Args args(gRects); in DEF_TEST() 617 expected.fRects[i].fRect = gRects[i]; in DEF_TEST() 618 float c = gRects[i].fBottom; in DEF_TEST()
|
D | ClipStackTest.cpp | 146 static const SkRect gRects[] = { in test_iterators() local 153 for (size_t i = 0; i < SK_ARRAY_COUNT(gRects); i++) { in test_iterators() 155 stack.clipRect(gRects[i], SkMatrix::I(), SkClipOp::kDifference, false); in test_iterators() 170 REPORTER_ASSERT(reporter, element->getDeviceSpaceRect() == gRects[i]); in test_iterators() 186 REPORTER_ASSERT(reporter, element->getDeviceSpaceRect() == gRects[i]); in test_iterators() 201 REPORTER_ASSERT(reporter, element->getDeviceSpaceRect() == gRects[3]); in test_iterators() 858 static const SkIRect gRects[] = { in DEF_TEST() local 864 for (size_t i = 0; i < SK_ARRAY_COUNT(gRects); i++) { in DEF_TEST() 865 stack.clipDevRect(gRects[i], SkClipOp::kIntersect); in DEF_TEST()
|
/third_party/flutter/skia/tests/ |
D | SkSLInterpreterTest.cpp | 557 SkIRect gRects[4] = { { 1,2,3,4 }, { 5,6,7,8 }, { 9,10,11,12 }, { 13,14,15,16 } }; in DEF_TEST() local 562 … SkAssertResult(byteCode->run(rect_height, (float*)&in, (float*)&out, 1, (float*)gRects, 16)); in DEF_TEST() 569 … SkAssertResult(byteCode->run(make_blue_rect, (float*)in, (float*)&out, 1, (float*)gRects, 16)); in DEF_TEST() 579 SkAssertResult(byteCode->run(median, (float*)in, (float*)&out, 1, (float*)gRects, 16)); in DEF_TEST() 586 SkAssertResult(byteCode->run(sums, in, out, 1, (float*)gRects, 16)); in DEF_TEST() 595 SkAssertResult(byteCode->run(get_rect, (float*)&in, (float*)&out, 1, (float*)gRects, 16)); in DEF_TEST() 596 REPORTER_ASSERT(r, out == gRects[2]); in DEF_TEST() 603 SkAssertResult(byteCode->run(fill_rects, (float*)&in, nullptr, 1, (float*)gRects, 16)); in DEF_TEST() 608 expected.fRects[i].fRect = gRects[i]; in DEF_TEST() 609 float c = gRects[i].fBottom; in DEF_TEST()
|
D | ClipStackTest.cpp | 163 static const SkRect gRects[] = { in test_iterators() local 170 for (size_t i = 0; i < SK_ARRAY_COUNT(gRects); i++) { in test_iterators() 172 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators() 187 REPORTER_ASSERT(reporter, element->getDeviceSpaceRect() == gRects[i]); in test_iterators() 203 REPORTER_ASSERT(reporter, element->getDeviceSpaceRect() == gRects[i]); in test_iterators() 218 REPORTER_ASSERT(reporter, element->getDeviceSpaceRect() == gRects[3]); in test_iterators() 1471 static const SkIRect gRects[] = { in DEF_TEST() local 1477 for (size_t i = 0; i < SK_ARRAY_COUNT(gRects); i++) { in DEF_TEST() 1478 stack.clipDevRect(gRects[i], kIntersect_SkClipOp); in DEF_TEST()
|