HomeSort by relevance Sort by last modified time
    Searched refs:radii (Results 1 - 25 of 65) sorted by null

1 2 3

  /external/skia/gm/
rrect.cpp 24 SkVector radii[4]; local
26 radii[i] = src.radii((SkRRect::Corner)i);
29 radii[i].fX -= dx;
30 radii[i].fY -= dy;
32 dst->setRectRadii(r, radii);
44 SkVector radii[4]; local
46 radii[i] = src.radii((SkRRect::Corner)i);
48 dst->setRectRadii(r, radii);
60 SkVector radii[4]; local
88 SkVector radii[4]; local
144 SkVector radii[4] = { local
    [all...]
blurroundrect.cpp 37 SkVector radii[4]; local
38 radii[0].set(SkIntToScalar(30), SkIntToScalar(30));
39 radii[1].set(SkIntToScalar(10), SkIntToScalar(10));
40 radii[2].set(SkIntToScalar(30), SkIntToScalar(30));
41 radii[3].set(SkIntToScalar(10), SkIntToScalar(10));
43 fRRect.setRectRadii(r, radii);
97 // Simpler blurred RR test cases where all the radii are the same.
150 // Rounded rect with two opposite corners with large radii, the other two
  /frameworks/base/graphics/java/android/graphics/drawable/
PaintDrawable.java 45 float[] radii = null; local
47 radii = new float[8];
49 radii[i] = radius;
52 setCornerRadii(radii);
56 * Specify radii for each of the 4 corners. For each corner, the array
59 * @param radii the x and y radii of the corners
61 public void setCornerRadii(float[] radii) {
62 if (radii == null) {
67 setShape(new RoundRectShape(radii, null, null))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
Shape.cpp 54 static PassOwnPtr<Shape> createRectangleShape(const FloatRect& bounds, const FloatSize& radii)
56 ASSERT(bounds.width() >= 0 && bounds.height() >= 0 && radii.width() >= 0 && radii.height() >= 0);
57 return adoptPtr(new RectangleShape(bounds, radii));
66 static PassOwnPtr<Shape> createEllipseShape(const FloatPoint& center, const FloatSize& radii)
68 ASSERT(radii.width() >= 0 && radii.height() >= 0);
69 return adoptPtr(new RectangleShape(FloatRect(center.x() - radii.width(), center.y() - radii.height(), radii.width()*2, radii.height()*2), radii))
    [all...]
RectangleShape.h 44 RectangleShape(const FloatRect& bounds, const FloatSize& radii)
47 , m_radii(radii)
  /external/chromium_org/third_party/WebKit/Source/platform/geometry/
FloatRoundedRectTest.cpp 56 void PrintTo(const FloatRoundedRect::Radii& radii, std::ostream* os)
58 *os << "FloatRoundedRect::Radii("
59 << ::testing::PrintToString(radii.topLeft()) << ", "
60 << ::testing::PrintToString(radii.topRight()) << ", "
61 << ::testing::PrintToString(radii.bottomRight()) << ", "
62 << ::testing::PrintToString(radii.bottomLeft()) << ")";
69 << ::testing::PrintToString(roundedRect.radii()) << ")";
90 EXPECT_EQ(FloatSize(), r.radii().topLeft());
91 EXPECT_EQ(FloatSize(), r.radii().topRight())
    [all...]
FloatRoundedRect.h 40 class PLATFORM_EXPORT Radii {
42 Radii() { }
43 Radii(const FloatSize& topLeft, const FloatSize& topRight, const FloatSize& bottomLeft, const FloatSize& bottomRight)
75 explicit FloatRoundedRect(const FloatRect&, const Radii& = Radii());
80 const Radii& radii() const { return m_radii; } function in class:WebCore::FloatRoundedRect
85 void setRadii(const Radii& radii) { m_radii = radii; }
    [all...]
RoundedRect.h 40 class PLATFORM_EXPORT Radii {
42 Radii() { }
43 Radii(const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight)
62 void includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge);
78 explicit RoundedRect(const IntRect&, const Radii& = Radii());
83 const Radii& radii() const { return m_radii; } function in class:WebCore::RoundedRect
91 void setRadii(const Radii& radii) { m_radii = radii;
    [all...]
FloatQuad.cpp 217 bool FloatQuad::intersectsEllipse(const FloatPoint& center, const FloatSize& radii) const
223 transformedQuad.scale(radii.height(), radii.width());
226 return transformedQuad.intersectsCircle(originPoint, radii.height() * radii.width());
FloatRoundedRect.cpp 42 FloatRoundedRect::FloatRoundedRect(const FloatRect& rect, const Radii& radii)
44 , m_radii(radii)
54 bool FloatRoundedRect::Radii::isZero() const
59 void FloatRoundedRect::Radii::scale(float factor)
64 // If either radius on a corner becomes zero, reset both radii on that corner.
80 void FloatRoundedRect::Radii::expand(float topWidth, float bottomWidth, float leftWidth, float rightWidth)
  /external/skia/tests/
RoundRectTest.cpp 49 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i));
62 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i));
75 rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint));
87 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i));
91 SkPoint radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; local
94 rr4.setRectRadii(rect, radii);
100 REPORTER_ASSERT(reporter, radii[i] == rr4.radii((SkRRect::Corner) i));
113 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i));
145 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } } local
185 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; local
199 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; local
548 SkVector radii[4] = { { 0, SkIntToScalar(1) }, local
    [all...]
PathOpsDQuadTest.cpp 60 SkVector radii[4] = {{8, 8}, {8, 8}, {0, 0}, {0, 0}}; local
61 rRect.setRectRadii(rect, radii);
  /external/chromium_org/ppapi/cpp/
touch_point.h 34 /// @return The elliptical radii, in screen pixels, in the x and y direction
36 FloatPoint radii() const { return pp::FloatPoint(touch_point_.radius); } function in class:pp::TouchPoint
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderMediaControls.cpp 134 IntSize radii(borderRadius, borderRadius);
137 context->fillRoundedRect(rect, radii, radii, radii, radii, sliderBackgroundColor);
146 IntSize radii(borderRadius, borderRadius);
186 context->fillRoundedRect(highlightRect, radii, radii, radii, radii, startColor)
    [all...]
RenderBoxModelObject.cpp 439 border.setRadii(segmentBorder.radii());
451 if (!clipRect.radii().topLeft().isEmpty() || !clipRect.radii().bottomRight().isEmpty()) {
453 RoundedRect::Radii topCornerRadii;
454 topCornerRadii.setTopLeft(clipRect.radii().topLeft());
458 RoundedRect::Radii bottomCornerRadii;
459 bottomCornerRadii.setBottomRight(clipRect.radii().bottomRight());
463 if (!clipRect.radii().topRight().isEmpty() || !clipRect.radii().bottomLeft().isEmpty()) {
465 RoundedRect::Radii topCornerRadii
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkRRect.cpp 40 // TODO: assert that all the x&y radii are already W/2 & H/2
46 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) {
53 memcpy(fRadii, radii, sizeof(fRadii));
57 // Clamp negative radii to zero
61 // the radii is 0 the corner is square. However, the other radii
76 // Proportionally scale down all radii to fit. Find the minimum ratio
77 // of a side and the radii on that side (for all four sides) and use
78 // that to scale down _all_ the radii. This algorithm is from the
82 // Si is the sum of the two corresponding radii of the corners on side i
    [all...]
  /external/skia/src/core/
SkRRect.cpp 40 // TODO: assert that all the x&y radii are already W/2 & H/2
46 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) {
53 memcpy(fRadii, radii, sizeof(fRadii));
57 // Clamp negative radii to zero
61 // the radii is 0 the corner is square. However, the other radii
76 // Proportionally scale down all radii to fit. Find the minimum ratio
77 // of a side and the radii on that side (for all four sides) and use
78 // that to scale down _all_ the radii. This algorithm is from the
82 // Si is the sum of the two corresponding radii of the corners on side i
    [all...]
  /external/chromium_org/third_party/skia/src/utils/
SkDumpCanvas.cpp 48 SkVector radii[4] = { local
49 rrect.radii(SkRRect::kUpperLeft_Corner),
50 rrect.radii(SkRRect::kUpperRight_Corner),
51 rrect.radii(SkRRect::kLowerRight_Corner),
52 rrect.radii(SkRRect::kLowerLeft_Corner),
55 radii[0].x(), radii[0].y(),
56 radii[1].x(), radii[1].y(),
57 radii[2].x(), radii[2].y()
    [all...]
  /external/skia/src/utils/
SkDumpCanvas.cpp 48 SkVector radii[4] = { local
49 rrect.radii(SkRRect::kUpperLeft_Corner),
50 rrect.radii(SkRRect::kUpperRight_Corner),
51 rrect.radii(SkRRect::kLowerRight_Corner),
52 rrect.radii(SkRRect::kLowerLeft_Corner),
55 radii[0].x(), radii[0].y(),
56 radii[1].x(), radii[1].y(),
57 radii[2].x(), radii[2].y()
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/
DragImage.cpp 172 const IntSize radii(DragLabelRadius, DragLabelRadius);
175 buffer->context()->fillRoundedRect(rect, radii, radii, radii, radii, backgroundColor);
  /external/chromium_org/third_party/skia/src/effects/
SkBlurMaskFilter.cpp 295 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner);
296 const SkVector& UR = rrect.radii(SkRRect::kUpperRight_Corner);
297 const SkVector& LR = rrect.radii(SkRRect::kLowerRight_Corner);
298 const SkVector& LL = rrect.radii(SkRRect::kLowerLeft_Corner);
325 SkVector radii[4]; local
326 radii[SkRRect::kUpperLeft_Corner] = UL;
327 radii[SkRRect::kUpperRight_Corner] = UR;
328 radii[SkRRect::kLowerRight_Corner] = LR;
329 radii[SkRRect::kLowerLeft_Corner] = LL;
330 smallRR.setRectRadii(smallR, radii);
    [all...]
  /external/skia/src/effects/
SkBlurMaskFilter.cpp 295 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner);
296 const SkVector& UR = rrect.radii(SkRRect::kUpperRight_Corner);
297 const SkVector& LR = rrect.radii(SkRRect::kLowerRight_Corner);
298 const SkVector& LL = rrect.radii(SkRRect::kLowerLeft_Corner);
325 SkVector radii[4]; local
326 radii[SkRRect::kUpperLeft_Corner] = UL;
327 radii[SkRRect::kUpperRight_Corner] = UR;
328 radii[SkRRect::kLowerRight_Corner] = LR;
329 radii[SkRRect::kLowerLeft_Corner] = LL;
330 smallRR.setRectRadii(smallR, radii);
    [all...]
  /external/chromium_org/third_party/skia/include/core/
SkRRect.h 19 // add validate method (all radii positive, all radii sums < rect size, etc.)
44 radii for each corner. It does not have a constructor so must be
50 If either of a corner's radii are 0 the corner will be square.
51 Negative radii are not allowed (they are clamped to zero).
71 //!< The RR is actually a (non-empty) oval (i.e., all x radii are equal
72 //!< and >= width/2 and all the y radii are equal and >= height/2
75 //!< The RR is non-empty and all the x radii are equal & all y radii
77 //!< the curves) nor a rect (i.e., both radii are non-zero
178 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect
    [all...]
  /external/skia/include/core/
SkRRect.h 19 // add validate method (all radii positive, all radii sums < rect size, etc.)
44 radii for each corner. It does not have a constructor so must be
50 If either of a corner's radii are 0 the corner will be square.
51 Negative radii are not allowed (they are clamped to zero).
71 //!< The RR is actually a (non-empty) oval (i.e., all x radii are equal
72 //!< and >= width/2 and all the y radii are equal and >= height/2
75 //!< The RR is non-empty and all the x radii are equal & all y radii
77 //!< the curves) nor a rect (i.e., both radii are non-zero
178 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect
    [all...]
  /external/chromium_org/third_party/WebKit/Source/web/tests/
GraphicsContextTest.cpp 663 IntSize radii(10, 10);
668 context.fillRoundedRect(IntRect(10, 10, 90, 90), radii, radii, radii, radii, opaque);
679 context.fillRoundedRect(IntRect(10, 10, 50, 30), radii, radii, radii, radii, opaque);
683 context.fillRoundedRect(IntRect(10, 10, 30, 50), radii, radii, radii, radii, alpha)
    [all...]

Completed in 607 milliseconds

1 2 3