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

1 2 3 4

  /external/chromium_org/third_party/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
148 SkVector radii[4] = { local
    [all...]
drrect.cpp 37 SkVector radii[4] = { variable
47 outers[3].setRectRadii(r, radii);
56 inners[4].setRectRadii(r, radii);
blurroundrect.cpp 36 SkVector radii[4]; local
37 radii[0].set(SkIntToScalar(30), SkIntToScalar(30));
38 radii[1].set(SkIntToScalar(10), SkIntToScalar(10));
39 radii[2].set(SkIntToScalar(30), SkIntToScalar(30));
40 radii[3].set(SkIntToScalar(10), SkIntToScalar(10));
42 fRRect.setRectRadii(r, radii);
95 // 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
  /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
148 SkVector radii[4] = { local
    [all...]
drrect.cpp 37 SkVector radii[4] = { variable
47 outers[3].setRectRadii(r, radii);
56 inners[4].setRectRadii(r, radii);
blurroundrect.cpp 36 SkVector radii[4]; local
37 radii[0].set(SkIntToScalar(30), SkIntToScalar(30));
38 radii[1].set(SkIntToScalar(10), SkIntToScalar(10));
39 radii[2].set(SkIntToScalar(30), SkIntToScalar(30));
40 radii[3].set(SkIntToScalar(10), SkIntToScalar(10));
42 fRRect.setRectRadii(r, radii);
99 // Simpler blurred RR test cases where all the radii are the same.
158 // Rounded rect with two opposite corners with large radii, the other two
  /external/chromium_org/third_party/skia/samplecode/
SampleClock.cpp 56 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; variable
57 rrect.setRectRadii(rect, radii);
79 radii[0] = SkPoint::Make(2.5f,2.5f);
80 radii[1] = SkPoint::Make(2.5f,2.5f);
81 radii[2] = SkPoint::Make(2.5f,2.5f);
82 radii[3] = SkPoint::Make(2.5f,2.5f);
83 rrect.setRectRadii(rect, radii);
119 radii[0] = SkPoint::Make(7,7);
120 radii[1] = SkPoint::Make(7,7);
121 radii[2] = SkPoint::Make(7,7)
    [all...]
  /external/skia/samplecode/
SampleClock.cpp 56 SkVector radii[4] = {{4,4}, {4,4}, {4,4}, {4,4}}; variable
57 rrect.setRectRadii(rect, radii);
79 radii[0] = SkPoint::Make(2.5f,2.5f);
80 radii[1] = SkPoint::Make(2.5f,2.5f);
81 radii[2] = SkPoint::Make(2.5f,2.5f);
82 radii[3] = SkPoint::Make(2.5f,2.5f);
83 rrect.setRectRadii(rect, radii);
119 radii[0] = SkPoint::Make(7,7);
120 radii[1] = SkPoint::Make(7,7);
121 radii[2] = SkPoint::Make(7,7)
    [all...]
  /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/
BoxShape.cpp 101 paths.shape.addRoundedRect(m_bounds.rect(), m_bounds.radii().topLeft(), m_bounds.radii().topRight(), m_bounds.radii().bottomLeft(), m_bounds.radii().bottomRight());
103 paths.marginShape.addRoundedRect(shapeMarginBounds().rect(), shapeMarginBounds().radii().topLeft(), shapeMarginBounds().radii().topRight(), shapeMarginBounds().radii().bottomLeft(), shapeMarginBounds().radii().bottomRight());
RectangleShape.h 43 RectangleShape(const FloatRect& bounds, const FloatSize& radii)
46 , m_radii(radii)
Shape.cpp 62 static PassOwnPtr<Shape> createEllipseShape(const FloatPoint& center, const FloatSize& radii)
64 ASSERT(radii.width() >= 0 && radii.height() >= 0);
65 return adoptPtr(new RectangleShape(FloatRect(center.x() - radii.width(), center.y() - radii.height(), radii.width()*2, radii.height()*2), radii));
160 FloatRoundedRect::Radii cornerRadii(topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius);
233 FloatRoundedRect bounds(rect, roundedRect.radii());
    [all...]
  /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 41 class PLATFORM_EXPORT Radii {
43 Radii() { }
44 Radii(const FloatSize& topLeft, const FloatSize& topRight, const FloatSize& bottomLeft, const FloatSize& bottomRight)
52 Radii(const RoundedRect::Radii& intRadii)
84 explicit FloatRoundedRect(const FloatRect&, const Radii& = Radii());
89 const Radii& radii() const { return m_radii; } function in class:blink::FloatRoundedRect
94 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:blink::RoundedRect
91 void setRadii(const Radii& radii) { m_radii = radii;
    [all...]
  /external/chromium_org/third_party/skia/tests/
PathOpsDQuadTest.cpp 60 SkVector radii[4] = {{8, 8}, {8, 8}, {0, 0}, {0, 0}}; local
61 rRect.setRectRadii(rect, radii);
RoundRectTest.cpp 48 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i));
61 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i));
81 rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint));
101 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i));
124 REPORTER_ASSERT(reporter, rquad[i] == rr4.radii((SkRRect::Corner) i));
141 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i));
173 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; local
176 rr2.setRectRadii(rect, radii);
213 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; local
216 rr2.setRectRadii(rect, radii);
227 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; local
576 SkVector radii[4] = { { 0, SkIntToScalar(1) }, local
    [all...]
  /external/skia/tests/
PathOpsDQuadTest.cpp 60 SkVector radii[4] = {{8, 8}, {8, 8}, {0, 0}, {0, 0}}; local
61 rRect.setRectRadii(rect, radii);
RoundRectTest.cpp 48 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i));
61 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i));
81 rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint));
101 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i));
124 REPORTER_ASSERT(reporter, rquad[i] == rr4.radii((SkRRect::Corner) i));
141 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i));
173 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }; local
176 rr2.setRectRadii(rect, radii);
213 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; local
216 rr2.setRectRadii(rect, radii);
227 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; local
576 SkVector radii[4] = { { 0, SkIntToScalar(1) }, local
    [all...]
  /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);
136 context->fillRoundedRect(rect, radii, radii, radii, radii, sliderBackgroundColor);
144 IntSize radii(borderRadius, borderRadius);
182 context->fillRoundedRect(highlightRect, radii, radii, radii, radii, startColor)
    [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
77 // If the left and (by equality check above) right radii are zero then it is a rect.
101 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) {
108 memcpy(fRadii, radii, sizeof(fRadii));
112 // Clamp negative radii to zero
116 // the radii is 0 the corner is square. However, the other radii
131 // Proportionally scale down all radii to fit. Find the minimum ratio
132 // of a side and the radii on that side (for all four sides) and use
133 // that to scale down _all_ the radii. This algorithm is from th
    [all...]
  /external/skia/src/core/
SkRRect.cpp 40 // TODO: assert that all the x&y radii are already W/2 & H/2
77 // If the left and (by equality check above) right radii are zero then it is a rect.
101 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) {
108 memcpy(fRadii, radii, sizeof(fRadii));
112 // Clamp negative radii to zero
116 // the radii is 0 the corner is square. However, the other radii
131 // Proportionally scale down all radii to fit. Find the minimum ratio
132 // of a side and the radii on that side (for all four sides) and use
133 // that to scale down _all_ the radii. This algorithm is from th
    [all...]
  /external/chromium_org/third_party/skia/src/gpu/effects/
GrRRectEffect.cpp 19 // The effects defined here only handle rrect radii >= kRadiusMin.
320 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX;
327 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX;
334 radius = rrect.radii(SkRRect::kLowerRight_Corner).fX;
341 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX;
348 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX;
355 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX;
362 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX;
369 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX;
465 // half the time create a four-radii rrect
    [all...]
  /external/skia/src/gpu/effects/
GrRRectEffect.cpp 18 // The effects defined here only handle rrect radii >= kRadiusMin.
316 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX;
323 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX;
330 radius = rrect.radii(SkRRect::kLowerRight_Corner).fX;
337 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX;
344 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX;
351 radius = rrect.radii(SkRRect::kUpperLeft_Corner).fX;
358 radius = rrect.radii(SkRRect::kUpperRight_Corner).fX;
365 radius = rrect.radii(SkRRect::kLowerLeft_Corner).fX;
460 // half the time create a four-radii rrect
    [all...]

Completed in 1940 milliseconds

1 2 3 4