Home
last modified time | relevance | path

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

12

/third_party/skia/tests/graphite/
DRectTest.cpp26 const Rect rect2(l,t,r,b); in DEF_GRAPHITE_TEST() local
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()
36 CHECK((rect != rect2) == !(rect == rect2)); in DEF_GRAPHITE_TEST()
38 CHECK(rect2 == Rect::XYWH(l, t, r - l, b - t)); in DEF_GRAPHITE_TEST()
39 CHECK(rect2 == Rect::XYWH(float2(l, t), float2(r - l, b - t))); in DEF_GRAPHITE_TEST()
[all …]
/third_party/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.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()
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()
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()
/third_party/skia/docs/examples/
DIRect_setLTRB.cpp9 SkIRect rect2; in draw() local
10 rect2.setLTRB(3, 4, 1, 2); in draw()
11 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom); in draw()
DRect_setLTRB.cpp9 SkRect rect2; in draw() local
10 rect2.setLTRB(3, 4, 1, 2); in draw()
11 SkDebugf("rect2: {%g, %g, %g, %g}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom); in draw()
DRect_MakeWH.cpp8 SkRect rect2 = SkRect::MakeIWH(25, 35); in draw() local
11 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ? in draw()
DIRect_MakeWH.cpp8 SkIRect rect2 = SkIRect::MakeSize({25, 35}); in draw() local
11 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ? in draw()
DRect_Make.cpp8 SkRect rect2 = SkRect::MakeIWH(2, 35); in draw() local
9 SkDebugf("rect1 %c= rect2\n", rect1 == rect2 ? '=' : '!'); in draw()
Dskcanvas_paint.cpp36 SkRect rect2 = SkRect::MakeXYWH(0, 0, 40, 60); in draw() local
37 canvas->drawImageRect(image, rect2, SkSamplingOptions(), &paint); in draw()
/third_party/skia/experimental/c-api-example/
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()
Dc.md85 sk_rect_t rect2;
86 rect2.left = 120.0f;
87 rect2.top = 120.0f;
88 rect2.right = 520.0f;
89 rect2.bottom = 360.0f;
90 sk_canvas_draw_oval(canvas, &rect2, fill);
/third_party/lzma/CPP/Windows/Control/
DDialog.cpp292 RECT rect2 = workRect; in NormalizePosition() local
308 if (wnd.GetWindowRect(&rect2)) in NormalizePosition()
315 if (IsRect_Small_Inside_Big(rect2, workRect)) in NormalizePosition()
333 rect2 = workRect; in NormalizePosition()
339 const int xs2 = RECT_SIZE_X(rect2); in NormalizePosition()
340 const int ys2 = RECT_SIZE_Y(rect2); in NormalizePosition()
344 const int x = rect2.left + (xs2 - xs) / 2; in NormalizePosition()
345 const int y = rect2.top + (ys2 - ys) / 2; in NormalizePosition()
/third_party/typescript/tests/baselines/reference/
DnonnullAssertionPropegatesContextualType.symbols2 let rect2: SVGRectElement = document.querySelector('.svg-rectangle')!; // Error: Element
3 >rect2 : Symbol(rect2, Decl(nonnullAssertionPropegatesContextualType.ts, 0, 3))
DnonnullAssertionPropegatesContextualType.js2 let rect2: SVGRectElement = document.querySelector('.svg-rectangle')!; // Error: Element variable
6 var rect2 = document.querySelector('.svg-rectangle'); // Error: Element
DnonnullAssertionPropegatesContextualType.types2 let rect2: SVGRectElement = document.querySelector('.svg-rectangle')!; // Error: Element
3 >rect2 : SVGRectElement
/third_party/skia/gm/
Dclip_strokerect.cpp58 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw() local
61 canvas->clipRect(rect2, true); in onDraw()
67 canvas->drawRect(rect2, p); in onDraw()
Dclipdrawdraw.cpp49 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); variable
52 Draw(canvas, rect2);
Dthinstrokedrects.cpp44 constexpr SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
71 canvas->drawRect(rect2, paint); in onDraw()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dangletypes.cpp699 void GetEnclosingRectangle(const Rectangle &rect1, const Rectangle &rect2, Rectangle *rectUnion) in GetEnclosingRectangle() argument
704 ASSERT(!rect2.isReversedX() && !rect2.isReversedY()); in GetEnclosingRectangle()
707 ASSERT((angle::CheckedNumeric<int>(rect2.x) + rect2.width).IsValid()); in GetEnclosingRectangle()
708 ASSERT((angle::CheckedNumeric<int>(rect2.y) + rect2.height).IsValid()); in GetEnclosingRectangle()
732 int x0 = std::min(rect1.x0(), rect2.x0()); in GetEnclosingRectangle()
733 int y0 = std::min(rect1.y0(), rect2.y0()); in GetEnclosingRectangle()
735 int x1 = std::max(rect1.x1(), rect2.x1()); in GetEnclosingRectangle()
736 int y1 = std::max(rect1.y1(), rect2.y1()); in GetEnclosingRectangle()
/third_party/typescript/tests/cases/compiler/
DnonnullAssertionPropegatesContextualType.ts2 let rect2: SVGRectElement = document.querySelector('.svg-rectangle')!; // Error: Element variable
/third_party/skia/src/pathops/
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()
/third_party/gstreamer/gstplugins_base/gst/compositor/
Dcompositor.c428 const GstVideoRectangle rect2) in is_rectangle_contained() argument
430 if ((rect2.x <= rect1.x) && (rect2.y <= rect1.y) && in is_rectangle_contained()
431 ((rect2.x + rect2.w) >= (rect1.x + rect1.w)) && in is_rectangle_contained()
432 ((rect2.y + rect2.h) >= (rect1.y + rect1.h))) in is_rectangle_contained()

12