Home
last modified time | relevance | path

Searched refs:rect2 (Results 1 – 25 of 53) sorted by relevance

123

/external/skia/tests/
DPathOpsDRectTest.cpp46 SkDRect rect, rect2; in DEF_TEST() local
53 rect2.setBounds(quad); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
56 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
58 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
67 rect2.setBounds(cubic); in DEF_TEST()
68 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
70 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
72 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
DPathOpsCubicIntersectionTest.cpp495 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
500 rect2.setBounds(c2); in CubicIntersection_RandTest()
501 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest()
502 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom; in CubicIntersection_RandTest()
DWriter32Test.cpp193 const SkRect rect2 = SkRect::MakeXYWH(5, 6, 7, 8); in testOverwriteT() local
213 writer->overwriteTAt(padding + sizeof(uint32_t), rect2); in testOverwriteT()
217 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect2); in testOverwriteT()
/external/skqp/tests/
DPathOpsDRectTest.cpp46 SkDRect rect, rect2; in DEF_TEST() local
53 rect2.setBounds(quad); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
56 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
58 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
67 rect2.setBounds(cubic); in DEF_TEST()
68 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
70 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
72 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
DPathOpsCubicIntersectionTest.cpp495 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
500 rect2.setBounds(c2); in CubicIntersection_RandTest()
501 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest()
502 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom; in CubicIntersection_RandTest()
DWriter32Test.cpp193 const SkRect rect2 = SkRect::MakeXYWH(5, 6, 7, 8); in testOverwriteT() local
213 writer->overwriteTAt(padding + sizeof(uint32_t), rect2); in testOverwriteT()
217 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect2); in testOverwriteT()
/external/skia/gm/
Ddaa.cpp59 SkPoint rect2[] = {{K*0.5f,0},{K*0.5f,K},{K,K},{K,0}}; variable
60 path.addPoly(rect2, SK_ARRAY_COUNT(rect2), false);
79 SkPoint rect2[] = {{K*0.5f,0},{K*0.5f,K},{K,K},{K,0}}; variable
82 path.addPoly(rect2, SK_ARRAY_COUNT(rect2), false);
101 SkPoint rect2[] = {{K*0.5f,0},{K,0},{K,K},{K*0.5f,K}}; variable
104 path.addPoly(rect2, SK_ARRAY_COUNT(rect2), false);
Dclip_strokerect.cpp54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw() local
57 canvas->clipRect(rect2, true); in onDraw()
63 canvas->drawRect(rect2, p); in onDraw()
Dclipdrawdraw.cpp45 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); variable
48 Draw(canvas, rect2);
Dthinstrokedrects.cpp36 constexpr SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
63 canvas->drawRect(rect2, paint); in onDraw()
/external/skqp/experimental/c-api-example/
Dskia-c-example.c62 sk_rect_t rect2; in draw() local
63 rect2.left = 120.0f; in draw()
64 rect2.top = 120.0f; in draw()
65 rect2.right = 520.0f; in draw()
66 rect2.bottom = 360.0f; in draw()
67 sk_canvas_draw_oval(canvas, &rect2, fill); in draw()
Dc.md83 sk_rect_t rect2;
84 rect2.left = 120.0f;
85 rect2.top = 120.0f;
86 rect2.right = 520.0f;
87 rect2.bottom = 360.0f;
88 sk_canvas_draw_oval(canvas, &rect2, fill);
/external/skia/experimental/c-api-example/
Dskia-c-example.c62 sk_rect_t rect2; in draw() local
63 rect2.left = 120.0f; in draw()
64 rect2.top = 120.0f; in draw()
65 rect2.right = 520.0f; in draw()
66 rect2.bottom = 360.0f; in draw()
67 sk_canvas_draw_oval(canvas, &rect2, fill); in draw()
Dc.md83 sk_rect_t rect2;
84 rect2.left = 120.0f;
85 rect2.top = 120.0f;
86 rect2.right = 520.0f;
87 rect2.bottom = 360.0f;
88 sk_canvas_draw_oval(canvas, &rect2, fill);
/external/skia/docs/
DSkRect_Reference.bmh84 SkRect rect2 = SkRect::MakeIWH(25, 35);
87 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
216 SkRect rect2 = SkRect::MakeIWH(2, 35);
217 SkDebugf("rect1 %c= rect2\n", rect1 == rect2 ? '=' : '!');
219 rect1 == rect2
821 SkRect rect2;
822 rect2.set(3, 4, 1, 2);
823 SkDebugf("rect2: {%g, %g, %g, %g}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
826 rect2: {3, 4, 1, 2}
845 SkRect rect2;
[all …]
DSkIRect_Reference.bmh80 SkIRect rect2 = SkIRect::MakeSize({25, 35});
83 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
573 SkIRect rect2;
574 rect2.set(3, 4, 1, 2);
575 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
578 rect2: {3, 4, 1, 2}
597 SkIRect rect2;
598 rect2.setLTRB(3, 4, 1, 2);
599 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
602 rect2: {3, 4, 1, 2}
/external/skqp/docs/
DSkRect_Reference.bmh84 SkRect rect2 = SkRect::MakeIWH(25, 35);
87 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
216 SkRect rect2 = SkRect::MakeIWH(2, 35);
217 SkDebugf("rect1 %c= rect2\n", rect1 == rect2 ? '=' : '!');
219 rect1 == rect2
821 SkRect rect2;
822 rect2.set(3, 4, 1, 2);
823 SkDebugf("rect2: {%g, %g, %g, %g}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
826 rect2: {3, 4, 1, 2}
845 SkRect rect2;
[all …]
DSkIRect_Reference.bmh80 SkIRect rect2 = SkIRect::MakeSize({25, 35});
83 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
573 SkIRect rect2;
574 rect2.set(3, 4, 1, 2);
575 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
578 rect2: {3, 4, 1, 2}
597 SkIRect rect2;
598 rect2.setLTRB(3, 4, 1, 2);
599 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
602 rect2: {3, 4, 1, 2}
/external/skqp/gm/
Dclip_strokerect.cpp54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw() local
57 canvas->clipRect(rect2, true); in onDraw()
63 canvas->drawRect(rect2, p); in onDraw()
Dclipdrawdraw.cpp45 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); variable
48 Draw(canvas, rect2);
Dthinstrokedrects.cpp36 constexpr SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
63 canvas->drawRect(rect2, paint); in onDraw()
/external/libchrome/mojo/public/cpp/bindings/tests/
Dtype_conversion_unittest.cc99 RectPtr rect2(Rect::From(rr)); in TEST() local
100 EXPECT_EQ(rect->x, rect2->x); in TEST()
101 EXPECT_EQ(rect->y, rect2->y); in TEST()
102 EXPECT_EQ(rect->width, rect2->width); in TEST()
103 EXPECT_EQ(rect->height, rect2->height); in TEST()
/external/fonttools/Lib/fontTools/misc/
DarrayTools.py84 def sectRect(rect1, rect2): argument
90 (xMin2, yMin2, xMax2, yMax2) = rect2
97 def unionRect(rect1, rect2): argument
103 (xMin2, yMin2, xMax2, yMax2) = rect2
/external/skqp/src/pathops/
DSkPathOpsOp.cpp255 SkRect rect1, rect2; in OpDebug() local
256 if (kIntersect_SkPathOp == op && one.isRect(&rect1) && two.isRect(&rect2)) { in OpDebug()
259 if (rect1.intersect(rect2)) { in OpDebug()
/external/skia/src/pathops/
DSkPathOpsOp.cpp255 SkRect rect1, rect2; in OpDebug() local
256 if (kIntersect_SkPathOp == op && one.isRect(&rect1) && two.isRect(&rect2)) { in OpDebug()
259 if (rect1.intersect(rect2)) { in OpDebug()

123