/third_party/skia/gm/ |
H A D | stroke_rect_shader.cpp | 29 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 D | dstreadshuffle.cpp | 59 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 D | tessellation.cpp | 37 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 D | blurignorexform.cpp | 32 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 D | roundrects.cpp | 150 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 D | circulararcs.cpp | 33 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 D | blurrect.cpp | 510 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 D | gradients_no_texture.cpp | 113 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 D | windowrectangles.cpp | 70 case SkClipStack::Element::DeviceSpaceType::kRect: in coverClipStack()
|
/third_party/skia/tests/ |
H A D | RoundRectTest.cpp | 971 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 D | CanvasTest.cpp | 244 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 D | ClipStackTest.cpp | 168 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 D | Shape.cpp | 20 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 D | Shape.h | 30 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 D | GrShape.cpp | 21 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 D | GrShape.h | 53 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 D | SkClipStack.cpp | 28 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 D | SkClipStackDevice.cpp | 109 return ClipType::kRect; in onGetClipType() 119 return ClipType::kRect; in onGetClipType()
|
H A D | SkClipStack.h | 57 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 D | sorttoy.cpp | 95 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 D | Cmds.cpp | 70 if (s == Shape::kRect) { in shared_contains() 133 if (fShape == Shape::kRect) { in execute() 232 if (fShape == Shape::kRect) { in execute()
|
H A D | Cmds.h | 112 fShape == Shape::kRect ? "Rect" : "Oval", 150 fShape == Shape::kRect ? "Rect" : "Oval",
|
H A D | sorttypes.h | 10 kRect, member in Shape
|
/third_party/skia/bench/ |
H A D | BlendmodeBench.cpp | 21 kRect, enumerator 70 case kRect: { 114 DEF_BENCH( return new XfermodeBench(mode, kRect); ) \
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGRect.cpp | 16 SkSVGRect::SkSVGRect() : INHERITED(SkSVGTag::kRect) {} in SkSVGRect()
|