Home
last modified time | relevance | path

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

12

/external/skqp/gm/
Dstroke_rect_shader.cpp17 constexpr SkRect kRect {0, 0, 100, 100}; variable
18 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}};
27 canvas->translate(kRect.centerX(), kRect.centerY());
37 canvas->drawRect(kRect, paint);
38 canvas->translate(kRect.width() + kPad, 0);
41 canvas->drawRect(kRect, paint);
42 canvas->translate(kRect.width() + kPad, 0);
46 canvas->drawRect(kRect, paint);
47 canvas->translate(kRect.width() + kPad, 0);
50 canvas->drawRect(kRect, paint);
[all …]
Ddstreadshuffle.cpp44 const SkRect kRect = SkRect::MakeXYWH(0, 0, 75.f, 85.f); in drawShape() local
47 canvas->drawCircle(kRect.centerX(), kRect.centerY(), kRect.width() / 2.f, *paint); in drawShape()
50 canvas->drawRoundRect(kRect, 15.f, 15.f, *paint); in drawShape()
53 canvas->drawRect(kRect, *paint); in drawShape()
58 kRect.toQuad(points); in drawShape()
Dcirculararcs.cpp16 constexpr SkRect kRect = {0.f, 0.f, kDiameter, kDiameter}; variable
43 canvas->drawArc(kRect, start, sweep, useCenter, p0); in draw_arcs()
44 canvas->drawArc(kRect, start, -(360.f - sweep), useCenter, p1); in draw_arcs()
45 canvas->translate(kRect.width() + kPad, 0.f); in draw_arcs()
48 canvas->translate(0, kRect.height() + kPad); in draw_arcs()
233 SkRect kRect = { 60, 0, 100, 40}; variable
234 canvas->drawArc(kRect, 45, 90, true, p0);
Dblurignorexform.cpp22 kRect, enumerator
35 : DrawType::kRect == fDrawType ? "rect" : "rrect"); in onShortName()
78 } else if (DrawType::kRect == fDrawType) { in onDraw()
142 DEF_GM(return new BlurIgnoreXformGM(BlurIgnoreXformGM::DrawType::kRect);)
Dgradients_no_texture.cpp98 SkRect kRect = { 0, 0, SkIntToScalar(50), SkIntToScalar(50) }; in onDraw() local
111 canvas->drawRect(kRect, paint); in onDraw()
112 canvas->translate(0, SkIntToScalar(kRect.height() + 20)); in onDraw()
115 canvas->translate(SkIntToScalar(kRect.width() + 20), 0); in onDraw()
/external/skia/gm/
Dstroke_rect_shader.cpp17 constexpr SkRect kRect {0, 0, 100, 100}; variable
18 constexpr SkPoint kPts[] {{kRect.fLeft, kRect.fTop}, {kRect.fRight, kRect.fBottom}};
27 canvas->translate(kRect.centerX(), kRect.centerY());
37 canvas->drawRect(kRect, paint);
38 canvas->translate(kRect.width() + kPad, 0);
41 canvas->drawRect(kRect, paint);
42 canvas->translate(kRect.width() + kPad, 0);
46 canvas->drawRect(kRect, paint);
47 canvas->translate(kRect.width() + kPad, 0);
50 canvas->drawRect(kRect, paint);
[all …]
Ddstreadshuffle.cpp44 const SkRect kRect = SkRect::MakeXYWH(0, 0, 75.f, 85.f); in drawShape() local
47 canvas->drawCircle(kRect.centerX(), kRect.centerY(), kRect.width() / 2.f, *paint); in drawShape()
50 canvas->drawRoundRect(kRect, 15.f, 15.f, *paint); in drawShape()
53 canvas->drawRect(kRect, *paint); in drawShape()
58 kRect.toQuad(points); in drawShape()
Dcirculararcs.cpp16 constexpr SkRect kRect = {0.f, 0.f, kDiameter, kDiameter}; variable
43 canvas->drawArc(kRect, start, sweep, useCenter, p0); in draw_arcs()
44 canvas->drawArc(kRect, start, -(360.f - sweep), useCenter, p1); in draw_arcs()
45 canvas->translate(kRect.width() + kPad, 0.f); in draw_arcs()
48 canvas->translate(0, kRect.height() + kPad); in draw_arcs()
233 SkRect kRect = { 60, 0, 100, 40}; variable
234 canvas->drawArc(kRect, 45, 90, true, p0);
Dblurignorexform.cpp22 kRect, enumerator
35 : DrawType::kRect == fDrawType ? "rect" : "rrect"); in onShortName()
78 } else if (DrawType::kRect == fDrawType) { in onDraw()
142 DEF_GM(return new BlurIgnoreXformGM(BlurIgnoreXformGM::DrawType::kRect);)
Dgradients_no_texture.cpp98 SkRect kRect = { 0, 0, SkIntToScalar(50), SkIntToScalar(50) }; in onDraw() local
111 canvas->drawRect(kRect, paint); in onDraw()
112 canvas->translate(0, SkIntToScalar(kRect.height() + 20)); in onDraw()
115 canvas->translate(SkIntToScalar(kRect.width() + 20), 0); in onDraw()
/external/skia/tests/
DGrQuadListTest.cpp58 list2D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
59 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
63 ASSERTF(list2D.quadType() == GrQuadType::kRect, "Unexpected quad type: %d", in TEST()
85 list3D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
86 list3D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
99 list2D.push_back(make_2d_quad(), GrQuadType::kRect, {1, 1.f}); in TEST()
100 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect, {2, 2.f}); in TEST()
104 ASSERTF(list2D.quadType() == GrQuadType::kRect, "Unexpected quad type: %d", in TEST()
136 list3D.push_back(make_2d_persp_quad(), GrQuadType::kRect, {2, 2.f}); in TEST()
137 list3D.push_back(make_2d_quad(), GrQuadType::kRect, {1, 1.f}); in TEST()
[all …]
DRoundRectTest.cpp757 static const SkRect kRect = {10.f, 10.f, 20.f, 20.f}; in test_read() local
763 test_read_rrect(reporter, SkRRect::MakeRect(kRect), true); in test_read()
768 rrect.setRect(kRect); in test_read()
770 SkASSERT(*innerRect == kRect); in test_read()
776 test_read_rrect(reporter, SkRRect::MakeOval(kRect), true); in test_read()
779 rrect.setOval(kRect); in test_read()
785 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 5.f), true); in test_read()
787 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 400.f), true); in test_read()
790 rrect.setRectRadii(kRect, kRadii); in test_read()
/external/skqp/tests/
DGrQuadListTest.cpp58 list2D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
59 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
63 ASSERTF(list2D.quadType() == GrQuadType::kRect, "Unexpected quad type: %d", in TEST()
85 list3D.push_back(make_2d_persp_quad(), GrQuadType::kRect); in TEST()
86 list3D.push_back(make_2d_quad(), GrQuadType::kRect); in TEST()
99 list2D.push_back(make_2d_quad(), GrQuadType::kRect, {1, 1.f}); in TEST()
100 list2D.push_back(make_2d_persp_quad(), GrQuadType::kRect, {2, 2.f}); in TEST()
104 ASSERTF(list2D.quadType() == GrQuadType::kRect, "Unexpected quad type: %d", in TEST()
136 list3D.push_back(make_2d_persp_quad(), GrQuadType::kRect, {2, 2.f}); in TEST()
137 list3D.push_back(make_2d_quad(), GrQuadType::kRect, {1, 1.f}); in TEST()
[all …]
DRoundRectTest.cpp757 static const SkRect kRect = {10.f, 10.f, 20.f, 20.f}; in test_read() local
763 test_read_rrect(reporter, SkRRect::MakeRect(kRect), true); in test_read()
768 rrect.setRect(kRect); in test_read()
770 SkASSERT(*innerRect == kRect); in test_read()
776 test_read_rrect(reporter, SkRRect::MakeOval(kRect), true); in test_read()
779 rrect.setOval(kRect); in test_read()
785 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 5.f), true); in test_read()
787 test_read_rrect(reporter, SkRRect::MakeRectXY(kRect, 5.f, 400.f), true); in test_read()
790 rrect.setRectRadii(kRect, kRadii); in test_read()
/external/skqp/src/gpu/effects/
DGrConfigConversionEffect.h79 static const SkRect kRect = SkRect::MakeIWH(kSize, kSize); in TestForPreservingPMConversions() local
97 readRTC->fillRectToRect(GrNoClip(), std::move(paint1), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
98 kRect); in TestForPreservingPMConversions()
111 tempRTC->fillRectToRect(GrNoClip(), std::move(paint2), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
112 kRect); in TestForPreservingPMConversions()
118 readRTC->fillRectToRect(GrNoClip(), std::move(paint3), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
119 kRect); in TestForPreservingPMConversions()
DGrConfigConversionEffect.fp79 static const SkRect kRect = SkRect::MakeIWH(kSize, kSize);
97 readRTC->fillRectToRect(GrNoClip(), std::move(paint1), GrAA::kNo, SkMatrix::I(), kRect,
98 kRect);
111 tempRTC->fillRectToRect(GrNoClip(), std::move(paint2), GrAA::kNo, SkMatrix::I(), kRect,
112 kRect);
118 readRTC->fillRectToRect(GrNoClip(), std::move(paint3), GrAA::kNo, SkMatrix::I(), kRect,
119 kRect);
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.h79 static const SkRect kRect = SkRect::MakeIWH(kSize, kSize); in TestForPreservingPMConversions() local
97 readRTC->fillRectToRect(GrNoClip(), std::move(paint1), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
98 kRect); in TestForPreservingPMConversions()
111 tempRTC->fillRectToRect(GrNoClip(), std::move(paint2), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
112 kRect); in TestForPreservingPMConversions()
118 readRTC->fillRectToRect(GrNoClip(), std::move(paint3), GrAA::kNo, SkMatrix::I(), kRect, in TestForPreservingPMConversions()
119 kRect); in TestForPreservingPMConversions()
DGrConfigConversionEffect.fp79 static const SkRect kRect = SkRect::MakeIWH(kSize, kSize);
97 readRTC->fillRectToRect(GrNoClip(), std::move(paint1), GrAA::kNo, SkMatrix::I(), kRect,
98 kRect);
111 tempRTC->fillRectToRect(GrNoClip(), std::move(paint2), GrAA::kNo, SkMatrix::I(), kRect,
112 kRect);
118 readRTC->fillRectToRect(GrNoClip(), std::move(paint3), GrAA::kNo, SkMatrix::I(), kRect,
119 kRect);
/external/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 …]
/external/skqp/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 …]
/external/skqp/src/gpu/
DGrQuad.cpp64 return GrQuadType::kRect; in quadType()
78 return GrQuadType::kRect; in quadType()
111 if (knownType == GrQuadType::kRect && !quad.aaHasEffectOnRect()) { in GrResolveAATypeForQuad()
139 return GrQuadType::kRect; in GrQuadTypeForTransformedRect()
187 SkASSERT(this->quadType() == GrQuadType::kRect); in aaHasEffectOnRect()
236 SkASSERT(this->quadType() == GrQuadType::kRect); in aaHasEffectOnRect()
DGrReducedClip.cpp498 case Element::DeviceSpaceType::kRect: in clipInsideElement()
536 case Element::DeviceSpaceType::kRect: in clipOutsideElement()
693 case SkClipStack::Element::DeviceSpaceType::kRect: in stencil_element()
725 case SkClipStack::Element::DeviceSpaceType::kRect: in draw_element()
843 if (Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()) { in drawStencilClipMask()
892 if (Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()) { in drawStencilClipMask()
933 if (Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()) { in drawStencilClipMask()
/external/skia/src/gpu/
DGrQuad.cpp64 return GrQuadType::kRect; in quadType()
78 return GrQuadType::kRect; in quadType()
165 if (knownType == GrQuadType::kRect && !quad.aaHasEffectOnRect()) { in GrResolveAATypeForQuad()
193 return GrQuadType::kRect; in GrQuadTypeForTransformedRect()
227 SkASSERT(this->quadType() == GrQuadType::kRect); in aaHasEffectOnRect()
263 SkASSERT(this->quadType() == GrQuadType::kRect); in aaHasEffectOnRect()
DGrReducedClip.cpp498 case Element::DeviceSpaceType::kRect: in clipInsideElement()
536 case Element::DeviceSpaceType::kRect: in clipOutsideElement()
693 case SkClipStack::Element::DeviceSpaceType::kRect: in stencil_element()
725 case SkClipStack::Element::DeviceSpaceType::kRect: in draw_element()
843 if (Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()) { in drawStencilClipMask()
892 if (Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()) { in drawStencilClipMask()
933 if (Element::DeviceSpaceType::kRect == element->getDeviceSpaceType()) { in drawStencilClipMask()
/external/skqp/experimental/svg/model/
DSkSVGNode.h34 kRect, enumerator

12