/external/skqp/gm/ |
D | stroke_rect_shader.cpp | 17 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 …]
|
D | dstreadshuffle.cpp | 44 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()
|
D | circulararcs.cpp | 16 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);
|
D | blurignorexform.cpp | 22 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);)
|
D | gradients_no_texture.cpp | 98 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/ |
D | stroke_rect_shader.cpp | 17 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 …]
|
D | dstreadshuffle.cpp | 44 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()
|
D | circulararcs.cpp | 16 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);
|
D | blurignorexform.cpp | 22 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);)
|
D | gradients_no_texture.cpp | 98 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/ |
D | GrQuadListTest.cpp | 58 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 …]
|
D | RoundRectTest.cpp | 757 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/ |
D | GrQuadListTest.cpp | 58 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 …]
|
D | RoundRectTest.cpp | 757 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/ |
D | GrConfigConversionEffect.h | 79 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()
|
D | GrConfigConversionEffect.fp | 79 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/ |
D | GrConfigConversionEffect.h | 79 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()
|
D | GrConfigConversionEffect.fp | 79 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/ |
D | SkClipStack.cpp | 26 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/ |
D | SkClipStack.cpp | 26 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/ |
D | GrQuad.cpp | 64 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()
|
D | GrReducedClip.cpp | 498 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/ |
D | GrQuad.cpp | 64 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()
|
D | GrReducedClip.cpp | 498 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/ |
D | SkSVGNode.h | 34 kRect, enumerator
|