Home
last modified time | relevance | path

Searched refs:kRect (Results 1 – 25 of 60) sorted by relevance

123

/third_party/flutter/skia/gm/
Dstroke_rect_shader.cpp29 constexpr SkRect kRect {0, 0, 100, 100}; variable
30 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}};
39 canvas->translate(kRect.centerX(), kRect.centerY());
49 canvas->drawRect(kRect, paint);
50 canvas->translate(kRect.width() + kPad, 0);
53 canvas->drawRect(kRect, paint);
54 canvas->translate(kRect.width() + kPad, 0);
58 canvas->drawRect(kRect, paint);
59 canvas->translate(kRect.width() + kPad, 0);
62 canvas->drawRect(kRect, paint);
[all …]
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()
Dcirculararcs.cpp26 constexpr SkRect kRect = {0.f, 0.f, kDiameter, kDiameter}; variable
53 canvas->drawArc(kRect, start, sweep, useCenter, p0); in draw_arcs()
54 canvas->drawArc(kRect, start, -(360.f - sweep), useCenter, p1); in draw_arcs()
55 canvas->translate(kRect.width() + kPad, 0.f); in draw_arcs()
58 canvas->translate(0, kRect.height() + kPad); in draw_arcs()
243 SkRect kRect = { 60, 0, 100, 40}; variable
244 canvas->drawArc(kRect, 45, 90, true, p0);
Dblurignorexform.cpp32 kRect, enumerator
45 : DrawType::kRect == fDrawType ? "rect" : "rrect"); in onShortName()
88 } else if (DrawType::kRect == fDrawType) { in onDraw()
152 DEF_GM(return new BlurIgnoreXformGM(BlurIgnoreXformGM::DrawType::kRect);)
Dgradients_no_texture.cpp113 SkRect kRect = { 0, 0, SkIntToScalar(50), SkIntToScalar(50) }; in onDraw() local
126 canvas->drawRect(kRect, paint); in onDraw()
127 canvas->translate(0, SkIntToScalar(kRect.height() + 20)); in onDraw()
130 canvas->translate(SkIntToScalar(kRect.width() + 20), 0); in onDraw()
/third_party/skia/gm/
Dstroke_rect_shader.cpp29 constexpr SkRect kRect {0, 0, 100, 100}; variable
30 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}};
39 canvas->translate(kRect.centerX(), kRect.centerY());
49 canvas->drawRect(kRect, paint);
50 canvas->translate(kRect.width() + kPad, 0);
53 canvas->drawRect(kRect, paint);
54 canvas->translate(kRect.width() + kPad, 0);
58 canvas->drawRect(kRect, paint);
59 canvas->translate(kRect.width() + kPad, 0);
62 canvas->drawRect(kRect, paint);
[all …]
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()
Dtessellation.cpp37 constexpr static SkRect kRect = {20.5f, 340.5f, 640.5f, 480.5f}; variable
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()); in getTessEvaluationShaderGLSL()
403 canvas->drawRect(kRect.makeOutset(1.5f, 1.5f), borderPaint); in onDraw()
Dblurignorexform.cpp32 kRect, enumerator
45 : DrawType::kRect == fDrawType ? "rect" : "rrect"); in onShortName()
88 } else if (DrawType::kRect == fDrawType) { in onDraw()
152 DEF_GM(return new BlurIgnoreXformGM(BlurIgnoreXformGM::DrawType::kRect);)
Droundrects.cpp150 const SkRect kRect = SkRect::MakeLTRB(-20, -30, 20, 30); in onDraw() local
152 circleRRect.setRectXY(kRect, 5, 5); in onDraw()
181 canvas->drawRect(kRect, rectPaint); in onDraw()
286 canvas->drawRect(kRect, rectPaint); in onDraw()
309 circleRect.setRectXY(kRect, radii[i][0], radii[i][1]); in onDraw()
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()
Dgradients_no_texture.cpp113 SkRect kRect = { 0, 0, SkIntToScalar(50), SkIntToScalar(50) }; in onDraw() local
126 canvas->drawRect(kRect, paint); in onDraw()
127 canvas->translate(0, SkIntToScalar(kRect.height() + 20)); in onDraw()
130 canvas->translate(SkIntToScalar(kRect.width() + 20), 0); in onDraw()
/third_party/skia/tests/
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 enumerator
[all …]
/third_party/skia/experimental/graphite/src/geom/
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()
DShape.h30 kEmpty, kLine, kRect, kRRect, kPath enumerator
60 bool isRect() const { return fType == Type::kRect; } in isRect()
129 this->setType(Type::kRect); in setRect()
/third_party/flutter/skia/src/gpu/effects/generated/
DGrConfigConversionEffect.h77 static const SkRect kRect = SkRect::MakeIWH(kSize, kSize); in TestForPreservingPMConversions() local
95 readRTC->fillRectToRect(GrNoClip(), std::move(paint1), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
96 kRect); in TestForPreservingPMConversions()
109 tempRTC->fillRectToRect(GrNoClip(), std::move(paint2), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
110 kRect); in TestForPreservingPMConversions()
116 readRTC->fillRectToRect(GrNoClip(), std::move(paint3), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
117 kRect); in TestForPreservingPMConversions()
/third_party/skia/src/gpu/geometry/
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 …]
DGrShape.h53 kEmpty, kPoint, kRect, kRRect, kPath, kArc, kLine enumerator
85 bool isRect() const { return this->type() == Type::kRect; } in isRect()
159 this->reset(Type::kRect); in setRect()
/third_party/skia/src/core/
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 …]
DSkClipStackDevice.cpp109 return ClipType::kRect; in onGetClipType()
119 return ClipType::kRect; in onGetClipType()
/third_party/flutter/skia/src/core/
DSkClipStack.cpp26 case DeviceSpaceType::kRect: // Rect uses rrect in Element()
68 case DeviceSpaceType::kRect: in operator ==()
81 case DeviceSpaceType::kRect: // fallthrough in getBounds()
96 case DeviceSpaceType::kRect: in contains()
112 case DeviceSpaceType::kRect: in contains()
129 case DeviceSpaceType::kRect: in invertShapeFillType()
168 fDeviceSpaceType = DeviceSpaceType::kRect; in initRect()
183 fDeviceSpaceType = DeviceSpaceType::kRect; in initRRect()
228 case DeviceSpaceType::kRect: in asDeviceSpacePath()
276 SkASSERT(DeviceSpaceType::kRect == fDeviceSpaceType); in rectRectIntersectAllowed()
[all …]
DSkClipStackDevice.cpp93 return ClipType::kRect; in onGetClipType()
103 return ClipType::kRect; in onGetClipType()
/third_party/flutter/skia/src/gpu/effects/
DGrConfigConversionEffect.fp75 static const SkRect kRect = SkRect::MakeIWH(kSize, kSize);
93 readRTC->fillRectToRect(GrNoClip(), std::move(paint1), GrAA::kNo, SkMatrix::I(), kRect,
94 kRect);
107 tempRTC->fillRectToRect(GrNoClip(), std::move(paint2), GrAA::kNo, SkMatrix::I(), kRect,
108 kRect);
114 readRTC->fillRectToRect(GrNoClip(), std::move(paint3), GrAA::kNo, SkMatrix::I(), kRect,
115 kRect);
/third_party/skia/experimental/sorttoy/
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()
191 s.clip(sk_make_sp<ClipCmd>(ID(2), Shape::kRect, r)); in mcstack_test()
197 s.clip(sk_make_sp<ClipCmd>(ID(3), Shape::kRect, r)); in mcstack_test()
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()
/third_party/skia/bench/
DBlendmodeBench.cpp21 kRect, enumerator
70 case kRect: { in onDraw()
114 DEF_BENCH( return new XfermodeBench(mode, kRect); ) \

123