Home
last modified time | relevance | path

Searched refs:rect2 (Results 1 - 25 of 30) sorted by relevance

12

/third_party/skia/tests/graphite/
H A DRectTest.cpp26 const Rect rect2(l,t,r,b); in DEF_GRAPHITE_TEST()
29 CHECK(rect2 == rect2); in DEF_GRAPHITE_TEST()
30 CHECK(rect2 == Rect(float2(l,t), float2(r,b))); in DEF_GRAPHITE_TEST()
31 CHECK(rect2 == Rect(skRect2)); in DEF_GRAPHITE_TEST()
32 CHECK(rect2.asSkRect() == skRect2); in DEF_GRAPHITE_TEST()
34 CHECK((rect2 == rect) == (rect == rect2)); in DEF_GRAPHITE_TEST()
35 CHECK((rect2 != rect) == (rect != rect2)); in DEF_GRAPHITE_TEST()
[all...]
/third_party/skia/tests/
H A 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 in DEF_TEST()
[all...]
H A 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()
H A DWriter32Test.cpp131 const SkRect rect2 = SkRect::MakeXYWH(5, 6, 7, 8); in testOverwriteT() local
151 writer->overwriteTAt(padding + sizeof(uint32_t), rect2); in testOverwriteT()
155 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect2); in testOverwriteT()
H A DCanvasTest.cpp96 SkRect rect, rect2; in DEF_TEST() local
106 REPORTER_ASSERT(reporter, canvas.getLocalClipBounds(&rect2)); in DEF_TEST()
107 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST()
118 REPORTER_ASSERT(reporter, !canvas.getLocalClipBounds(&rect2)); in DEF_TEST()
119 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST()
H A DPathOpsBuilderTest.cpp54 SkPath rect2, rect3; in DEF_TEST() local
55 rect2.addRect(2, 1, 4, 3, SkPathDirection::kCW); in DEF_TEST()
58 builder.add(rect2, kUnion_SkPathOp); in DEF_TEST()
H A DMultiPictureDocumentTest.cpp61 SkRect rect2 = SkRect::MakeXYWH(0, 0, 40, 60); in draw_basic() local
62 canvas->drawImageRect(image, rect2, SkSamplingOptions(), &paint); in draw_basic()
H A DRRectInPathTest.cpp320 SkRect rect2 = SkRect::MakeLTRB(0.358211994f, 0.755430222f, 0.872866154f, in test_round_rect_basic() local
324 rect2, in test_round_rect_basic()
H A DClipStackTest.cpp390 SkRect rect2 = SkRect::MakeXYWH(50, 50, 100, 100);
435 stack.clipRect(rect2, SkMatrix::I(), SkClipOp::kIntersect, false);
455 stack.clipRect(rect2, SkMatrix::I(), SkClipOp::kIntersect, false);
/third_party/skia/docs/examples/
H A DRect_setLTRB.cpp9 SkRect rect2; in REG_FIDDLE() local
10 rect2.setLTRB(3, 4, 1, 2); in REG_FIDDLE()
11 SkDebugf("rect2: {%g, %g, %g, %g}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom); in REG_FIDDLE()
H A DIRect_setLTRB.cpp9 SkIRect rect2; in REG_FIDDLE() local
10 rect2.setLTRB(3, 4, 1, 2); in REG_FIDDLE()
11 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom); in REG_FIDDLE()
H A DRect_MakeWH.cpp8 SkRect rect2 = SkRect::MakeIWH(25, 35); in REG_FIDDLE() local
11 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ? in REG_FIDDLE()
H A DIRect_MakeWH.cpp8 SkIRect rect2 = SkIRect::MakeSize({25, 35}); in REG_FIDDLE() local
11 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ? in REG_FIDDLE()
H A DRect_Make.cpp8 SkRect rect2 = SkRect::MakeIWH(2, 35); in REG_FIDDLE() local
9 SkDebugf("rect1 %c= rect2\n", rect1 == rect2 ? '=' : '!'); in REG_FIDDLE()
H A Dskcanvas_paint.cpp36 SkRect rect2 = SkRect::MakeXYWH(0, 0, 40, 60); in REG_FIDDLE() local
37 canvas->drawImageRect(image, rect2, SkSamplingOptions(), &paint); in REG_FIDDLE()
/third_party/skia/experimental/c-api-example/
H A Dskia-c-example.c64 sk_rect_t rect2; in draw() local
65 rect2.left = 120.0f; in draw()
66 rect2.top = 120.0f; in draw()
67 rect2.right = 520.0f; in draw()
68 rect2.bottom = 360.0f; in draw()
69 sk_canvas_draw_oval(canvas, &rect2, fill); in draw()
/third_party/lzma/CPP/Windows/Control/
H A DDialog.cpp323 RECT rect2 = workRect; in NormalizePosition()
339 if (wnd.GetWindowRect(&rect2)) in NormalizePosition()
346 if (IsRect_Small_Inside_Big(rect2, workRect)) in NormalizePosition()
364 rect2 = workRect; in NormalizePosition()
370 const int xs2 = RECT_SIZE_X(rect2); in NormalizePosition()
371 const int ys2 = RECT_SIZE_Y(rect2); in NormalizePosition()
375 const int x = rect2.left + (xs2 - xs) / 2; in NormalizePosition()
376 const int y = rect2.top + (ys2 - ys) / 2; in NormalizePosition()
/third_party/skia/gm/
H A Dclip_strokerect.cpp58 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); variable
61 canvas->clipRect(rect2, true);
67 canvas->drawRect(rect2, p);
H A Dclipdrawdraw.cpp49 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); in DEF_SIMPLE_GM_BG() local
52 Draw(canvas, rect2); in DEF_SIMPLE_GM_BG()
H A Dthinstrokedrects.cpp44 constexpr SkRect rect2 = { 0, 0, 20, 20 }; variable
71 canvas->drawRect(rect2, paint);
/third_party/typescript/tests/baselines/reference/
H A DnonnullAssertionPropegatesContextualType.js2 let rect2: SVGRectElement = document.querySelector('.svg-rectangle')!; // Error: Element
6 var rect2 = document.querySelector('.svg-rectangle'); // Error: Element variable
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A Dangletypes.cpp699 void GetEnclosingRectangle(const Rectangle &rect1, const Rectangle &rect2, Rectangle *rectUnion)
704 ASSERT(!rect2.isReversedX() && !rect2.isReversedY());
707 ASSERT((angle::CheckedNumeric<int>(rect2.x) + rect2.width).IsValid());
708 ASSERT((angle::CheckedNumeric<int>(rect2.y) + rect2.height).IsValid());
715 // | | | | <-- rect2
720 // xy0 = min(rect1.xy0, rect2.xy0)
730 // xy1 = max(rect1.xy1, rect2
[all...]
H A Dangletypes_unittest.cpp294 const gl::Rectangle rect2(0, 0, 50, 100); in TEST()
297 gl::GetEnclosingRectangle(rect1, rect2, &result); in TEST()
/third_party/skia/src/pathops/
H A DSkPathOpsOp.cpp253 SkRect rect1, rect2; in OpDebug() local
254 if (kIntersect_SkPathOp == op && one.isRect(&rect1) && two.isRect(&rect2)) { in OpDebug()
257 if (rect1.intersect(rect2)) { in OpDebug()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/tde/driver/src/adp/tde_v2_0/
H A Dtde_osictl_k.c324 static hi_s32 tde_osi_get_inter_rect(hi_tde_rect *rect1, hi_tde_rect *rect2, hi_tde_rect *inter_rect);
1706 rect2 input rectangle2
1710 static hi_bool tde_osi_is_rect1_in_rect2(hi_tde_rect *rect1, hi_tde_rect *rect2) in tde_osi_is_rect1_in_rect2() argument
1713 hi_s32 right2 = rect2->pos_x + rect2->width - 1; in tde_osi_is_rect1_in_rect2()
1716 hi_s32 bottom2 = rect2->pos_y + rect2->height - 1; in tde_osi_is_rect1_in_rect2()
1718 if ((rect1->pos_x >= rect2->pos_x) && in tde_osi_is_rect1_in_rect2()
1719 (rect1->pos_y >= rect2->pos_y) && in tde_osi_is_rect1_in_rect2()
6056 hi_tde_rect *rect2) in tde_osi_check_overlap()
6055 tde_osi_check_overlap(hi_tde_surface *sur1, hi_tde_rect *rect1, hi_tde_surface *sur2, hi_tde_rect *rect2) tde_osi_check_overlap() argument
[all...]

Completed in 21 milliseconds

12