Home
last modified time | relevance | path

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

12

/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.cpp494 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
499 rect2.setBounds(c2); in CubicIntersection_RandTest()
500 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest()
501 && 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()
DPathOpsBuilderTest.cpp54 SkPath rect2, rect3; in DEF_TEST() local
55 rect2.addRect(2, 1, 4, 3, SkPath::kCW_Direction); in DEF_TEST()
58 builder.add(rect2, kUnion_SkPathOp); in DEF_TEST()
DCanvasTest.cpp73 SkRect rect, rect2; in DEF_TEST() local
83 REPORTER_ASSERT(reporter, canvas.getLocalClipBounds(&rect2)); in DEF_TEST()
84 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST()
95 REPORTER_ASSERT(reporter, !canvas.getLocalClipBounds(&rect2)); in DEF_TEST()
96 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST()
DRRectInPathTest.cpp324 SkRect rect2 = SkRect::MakeLTRB(0.358211994f, 0.755430222f, 0.872866154f, in test_round_rect_basic() local
328 rect2, in test_round_rect_basic()
DRoundRectTest.cpp235 SkRect rect2 = SkRect::MakeLTRB(0.358211994f, 0.755430222f, 0.872866154f, 0.806214333f); in test_round_rect_basic() local
238 rect2, in test_round_rect_basic()
DPictureTest.cpp622 SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(7), SkIntToScalar(7), in test_clip_bound_opt() local
631 path.addOval(rect2); in test_clip_bound_opt()
DClipStackTest.cpp421 SkRect rect2 = SkRect::MakeXYWH(50, 50, 100, 100); in test_rect_replace() local
466 stack.clipRect(rect2, SkMatrix::I(), kIntersect_SkClipOp, false); in test_rect_replace()
486 stack.clipRect(rect2, SkMatrix::I(), kIntersect_SkClipOp, false); in test_rect_replace()
/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/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.cpp47 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); variable
50 Draw(canvas, rect2);
Dthinstrokedrects.cpp36 constexpr SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
63 canvas->drawRect(rect2, paint); in onDraw()
Dsavelayer.cpp92 SkRect rect1{40, 5, 80, 70}, rect2{5, 40, 70, 80}, rect3{10, 10, 70, 70}; local
98 canvas->saveLayer({ &rect2, &paint2, nullptr, flag});
/external/fonttools/Lib/fontTools/misc/
DarrayTools.py86 def sectRect(rect1, rect2): argument
92 (xMin2, yMin2, xMax2, yMax2) = rect2
99 def unionRect(rect1, rect2): argument
105 (xMin2, yMin2, xMax2, yMax2) = rect2
/external/libmojo/mojo/public/cpp/bindings/tests/
Dtype_conversion_unittest.cc150 RectPtr rect2(Rect::From(rr)); in TEST() local
151 EXPECT_EQ(rect->x, rect2->x); in TEST()
152 EXPECT_EQ(rect->y, rect2->y); in TEST()
153 EXPECT_EQ(rect->width, rect2->width); in TEST()
154 EXPECT_EQ(rect->height, rect2->height); in TEST()
Dstruct_unittest.cc141 RectPtr rect2; in TEST_F() local
142 mojo::internal::Deserialize<RectPtr>(data, &rect2, nullptr); in TEST_F()
144 CheckRect(*rect2); in TEST_F()
/external/opencv/cv/src/
Dcvgeometry.cpp45 cvMaxRect( const CvRect* rect1, const CvRect* rect2 ) in cvMaxRect() argument
47 if( rect1 && rect2 ) in cvMaxRect()
53 b = rect2->x; in cvMaxRect()
58 b += rect2->width; in cvMaxRect()
65 b = rect2->y; in cvMaxRect()
70 b += rect2->height; in cvMaxRect()
79 else if( rect2 ) in cvMaxRect()
80 return *rect2; in cvMaxRect()
/external/pdfium/xfa/fxbarcode/oned/
DBC_OnedUPCAWriter.cpp169 CFX_FloatRect rect2(0.0, (FX_FLOAT)(m_Height - iTextHeight), in ShowChars() local
172 matr2.TransformRect(rect2); in ShowChars()
173 re = rect2.GetOuterRect(); in ShowChars()
214 FX_RECT rect2(0, 0, (int)strWidth, iTextHeight); in ShowChars() local
215 ge.FillRect(&rect2, m_backgroundColor); in ShowChars()
DBC_OnedEAN13Writer.cpp216 CFX_FloatRect rect2(0.0f, (FX_FLOAT)(m_Height - iTextHeight), in ShowChars() local
219 matr2.TransformRect(rect2); in ShowChars()
220 re = rect2.GetOuterRect(); in ShowChars()
/external/skia/src/effects/
DSkRRectsGaussianEdgeMaskFilter.cpp517 SkRect rect1, rect2; in CreateProc() local
523 buf.readRect(&rect2); in CreateProc()
530 SkRRect::MakeRectXY(rect2, xRad2, yRad2), in CreateProc()
/external/pdfium/core/fpdftext/
Dcpdf_textpage.h112 const CFX_FloatRect& rect2);
Dcpdf_textpage.cpp1330 CFX_FloatRect rect2 = m_pPreTextObj->GetRect(); in ProcessInsertObject() local
1332 rect1.Intersect(rect2); in ProcessInsertObject()
1333 if ((rect1.IsEmpty() && rect2.Height() > 5 && rect3.Height() > 5) || in ProcessInsertObject()
1519 const CFX_FloatRect& rect2) { in IsRectIntersect() argument
1521 rect.Intersect(rect2); in IsRectIntersect()
/external/skia/samplecode/
DSampleAll.cpp334 SkRect rect2 = {0, 0, SkIntToScalar(65), SkIntToScalar(20) }; in drawPicture() local
445 canvas->drawRect(rect2, paint); in drawPicture()

12