Home
last modified time | relevance | path

Searched refs:kRect (Results 1 - 25 of 37) sorted by relevance

12

/third_party/skia/gm/
H A Dstroke_rect_shader.cpp29 constexpr SkRect kRect {0, 0, 100, 100}; in DEF_SIMPLE_GM()
30 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}}; in DEF_SIMPLE_GM()
39 canvas->translate(kRect.centerX(), kRect.centerY()); in DEF_SIMPLE_GM()
49 canvas->drawRect(kRect, paint); in DEF_SIMPLE_GM()
50 canvas->translate(kRect.width() + kPad, 0); in DEF_SIMPLE_GM()
53 canvas->drawRect(kRect, pain in DEF_SIMPLE_GM()
[all...]
H A Ddstreadshuffle.cpp59 const SkRect kRect = SkRect::MakeXYWH(0, 0, 75.f, 85.f); in drawShape() local
62 canvas->drawCircle(kRect.centerX(), kRect.centerY(), kRect.width() / 2.f, *paint); in drawShape()
65 canvas->drawRoundRect(kRect, 15.f, 15.f, *paint); in drawShape()
68 canvas->drawRect(kRect, *paint); in drawShape()
73 kRect.toQuad(points); in drawShape()
H A Dtessellation.cpp37 constexpr static SkRect kRect = {20.5f, 340.5f, 640.5f, 480.5f}; member
39 constexpr static int kWidth = (int)kRect.fRight + 21;
40 constexpr static int kHeight = (int)kRect.fBottom + 21;
257 })", kRect.left(), kRect.top(), kRect.right(), kRect.bottom());
403 canvas->drawRect(kRect.makeOutset(1.5f, 1.5f), borderPaint); in onDraw()
H A Dblurignorexform.cpp32 kRect, member in BlurIgnoreXformGM::DrawType
45 : DrawType::kRect == fDrawType ? "rect" : "rrect");
88 } else if (DrawType::kRect == fDrawType) {
152 DEF_GM(return new BlurIgnoreXformGM(BlurIgnoreXformGM::DrawType::kRect);)
H A Droundrects.cpp150 const SkRect kRect = SkRect::MakeLTRB(-20, -30, 20, 30); variable
152 circleRRect.setRectXY(kRect, 5, 5);
181 canvas->drawRect(kRect, rectPaint);
286 canvas->drawRect(kRect, rectPaint);
309 circleRect.setRectXY(kRect, radii[i][0], radii[i][1]);
H A Dcirculararcs.cpp33 constexpr SkRect kRect = {0.f, 0.f, kDiameter, kDiameter}; variable
60 canvas->drawArc(kRect, start, sweep, useCenter, p0); in draw_arcs()
61 canvas->drawArc(kRect, start, -(360.f - sweep), useCenter, p1); in draw_arcs()
62 canvas->translate(kRect.width() + kPad, 0.f); in draw_arcs()
65 canvas->translate(0, kRect.height() + kPad); in draw_arcs()
H A Dblurrect.cpp510 static constexpr auto kRect = SkRect::MakeWH(14, 60); in DEF_SIMPLE_GM() local
514 const SkPoint c = {kRect.centerX(), kRect.centerY()}; in DEF_SIMPLE_GM()
540 m.mapRect(&mapped, kRect); in DEF_SIMPLE_GM()
553 canvas->drawRect(kRect, paint); in DEF_SIMPLE_GM()
H A Dgradients_no_texture.cpp113 SkRect kRect = { 0, 0, SkIntToScalar(50), SkIntToScalar(50) }; variable
126 canvas->drawRect(kRect, paint);
127 canvas->translate(0, SkIntToScalar(kRect.height() + 20));
130 canvas->translate(SkIntToScalar(kRect.width() + 20), 0);
H A Dwindowrectangles.cpp70 case SkClipStack::Element::DeviceSpaceType::kRect: in coverClipStack()
/third_party/skia/tests/
H A DRoundRectTest.cpp971 static const SkRect kRect = {10.f, 10.f, 20.f, 20.f}; in test_read() local
977 test_read_rrect(reporter, SkRRect::MakeRect(kRect), true); in test_read()
982 rrect.setRect(kRect); in test_read()
984 SkASSERT(*innerRect == kRect); in test_read()
990 test_read_rrect(reporter, SkRRect::MakeOval(kRect), true); in test_read()
993 rrect.setOval(kRect); in test_read()
999 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 5.f), true); in test_read()
1001 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 400.f), true); in test_read()
1004 rrect.setRectRadii(kRect, kRadii); in test_read()
1111 kA, kB, kRect
1116 static const SkRRect kRect = SkRRect::MakeEmpty(); // has (0,0) for all corners verify_success() local
[all...]
H A DCanvasTest.cpp244 static constexpr SkRect kRect = {0, 0, 2, 1}; variable
271 c->clipRect(kRect);
300 c->saveLayer(&kRect, nullptr);
316 c->clipRect(kRect);
338 testCanvas->clipRect(kRect);
339 testCanvas->drawRect(kRect, SkPaint());
385 c->drawRect(kRect, SkPaint());
H A DClipStackTest.cpp168 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
184 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
199 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
269 case SkClipStack::Element::DeviceSpaceType::kRect: in test_bounds()
289 if (SkClipStack::Element::DeviceSpaceType::kRect == primType) { in test_bounds()
876 SkClipStack::Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()); in DEF_TEST()
888 test_bounds(reporter, SkClipStack::Element::DeviceSpaceType::kRect); in DEF_TEST()
/third_party/skia/experimental/graphite/src/geom/
H A DShape.cpp20 case Type::kRect: this->setRect(shape.rect()); break; in operator =()
33 case Type::kRect: return fRect.contains(rect); in conservativeContains()
44 case Type::kRect: return fRect.contains(Rect::Point(point)); in conservativeContains()
55 case Type::kRect: return true; in closed()
76 case Type::kRect: return fRect; // assuming it's sorted in bounds()
93 case Type::kRect: builder.addRect(fRect.asSkRect()); break; in asPath()
H A DShape.h30 kEmpty, kLine, kRect, kRRect, kPath member in skgpu::Shape::Type
55 // corners is kRRect and not kRect).
60 bool isRect() const { return fType == Type::kRect; } in isRect()
129 this->setType(Type::kRect); in setRect()
/third_party/skia/src/gpu/geometry/
H A DGrShape.cpp21 case Type::kRect: in operator =()
189 this->setType(Type::kRect); in simplifyRect()
241 SkASSERT((fType == Type::kRect || fType == Type::kRRect) || in simplify()
257 case Type::kRect: in simplify()
276 if (((flags & kIgnoreWinding_Flag) || (fType != Type::kRect && fType != Type::kRRect))) { in simplify()
290 case Type::kRect: in conservativeContains()
315 case Type::kRect: in conservativeContains()
328 case Type::kRect: // fall through in closed()
346 case Type::kRect: // fall through in convex()
371 case Type::kRect in bounds()
[all...]
H A DGrShape.h53 kEmpty, kPoint, kRect, kRRect, kPath, kArc, kLine member in GrShape::Type
85 bool isRect() const { return this->type() == Type::kRect; } in isRect()
159 this->reset(Type::kRect); in setRect()
/third_party/skia/src/core/
H A DSkClipStack.cpp28 case DeviceSpaceType::kRect: // Rect uses rrect in Element()
80 case DeviceSpaceType::kRect: in operator ==()
94 case DeviceSpaceType::kRect: // fallthrough in getBounds()
114 case DeviceSpaceType::kRect: in contains()
131 case DeviceSpaceType::kRect: in contains()
149 case DeviceSpaceType::kRect: in invertShapeFillType()
192 fDeviceSpaceType = DeviceSpaceType::kRect; in initRect()
207 fDeviceSpaceType = DeviceSpaceType::kRect; in initRRect()
256 fDeviceSpaceType = DeviceSpaceType::kRect; in initReplaceRect()
266 case DeviceSpaceType::kRect in asDeviceSpacePath()
[all...]
H A DSkClipStackDevice.cpp109 return ClipType::kRect; in onGetClipType()
119 return ClipType::kRect; in onGetClipType()
H A DSkClipStack.h57 kRect, member in SkClipStack::Element::DeviceSpaceType
119 //!< Call if getDeviceSpaceType() is kRect to get the rect.
121 SkASSERT(DeviceSpaceType::kRect == fDeviceSpaceType && in getDeviceSpaceRect()
/third_party/skia/experimental/sorttoy/
H A Dsorttoy.cpp95 SkString path = SkOSPath::Join(dir, s == Shape::kRect ? "rect-expected" : "oval-expected"); in save_files()
106 path = SkOSPath::Join(dir, s == Shape::kRect ? "rect-actual" : "oval-actual"); in save_files()
183 s.clip(sk_make_sp<ClipCmd>(ID(1), Shape::kRect, r)); in mcstack_test() member in Shape
191 s.clip(sk_make_sp<ClipCmd>(ID(2), Shape::kRect, r)); in mcstack_test() member in Shape
197 s.clip(sk_make_sp<ClipCmd>(ID(3), Shape::kRect, r)); in mcstack_test() member in Shape
248 for (Shape s : { Shape::kRect, Shape::kOval }) { in sort_test()
408 Shape clipShape = shape == Shape::kRect ? Shape::kOval : Shape::kRect; in test6()
435 Shape clipShape = shape == Shape::kRect ? Shape::kOval : Shape::kRect; in test7()
[all...]
H A DCmds.cpp70 if (s == Shape::kRect) { in shared_contains()
133 if (fShape == Shape::kRect) { in execute()
232 if (fShape == Shape::kRect) { in execute()
H A DCmds.h112 fShape == Shape::kRect ? "Rect" : "Oval",
150 fShape == Shape::kRect ? "Rect" : "Oval",
H A Dsorttypes.h10 kRect, member in Shape
/third_party/skia/bench/
H A DBlendmodeBench.cpp21 kRect, enumerator
70 case kRect: {
114 DEF_BENCH( return new XfermodeBench(mode, kRect); ) \
/third_party/skia/modules/svg/src/
H A DSkSVGRect.cpp16 SkSVGRect::SkSVGRect() : INHERITED(SkSVGTag::kRect) {} in SkSVGRect()

Completed in 16 milliseconds

12