/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/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/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...] |
FloatQuad.cpp | 215 bool FloatQuad::intersectsEllipse(const FloatPoint& center, const FloatSize& radii) const 221 transformedQuad.scale(radii.height(), radii.width()); 224 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/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/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/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/chromium_org/third_party/skia/src/utils/ |
SkDumpCanvas.cpp | 50 SkVector radii[4] = { local 51 rrect.radii(SkRRect::kUpperLeft_Corner), 52 rrect.radii(SkRRect::kUpperRight_Corner), 53 rrect.radii(SkRRect::kLowerRight_Corner), 54 rrect.radii(SkRRect::kLowerLeft_Corner), 57 radii[0].x(), radii[0].y(), 58 radii[1].x(), radii[1].y(), 59 radii[2].x(), radii[2].y() [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
DragImage.cpp | 171 const IntSize radii(DragLabelRadius, DragLabelRadius); 174 buffer->context()->fillRoundedRect(rect, radii, radii, radii, radii, backgroundColor);
|
/external/chromium_org/third_party/skia/tools/lua/ |
classify_rrect_clips.lua | 8 local x, y = rrect:radii(0) 21 local x, y = rrect:radii(i-1) 59 local x, y = rrect:radii(0)
|
/external/chromium_org/third_party/skia/include/core/ |
SkRRect.h | 19 // add validate method (all radii positive, all radii sums < rect size, etc.) 38 radii for each corner. It does not have a constructor so must be 44 If either of a corner's radii are 0 the corner will be square. 45 Negative radii are not allowed (they are clamped to zero). 65 //!< The RR is actually a (non-empty) oval (i.e., all x radii are equal 66 //!< and >= width/2 and all the y radii are equal and >= height/2 69 //!< The RR is non-empty and all the x radii are equal & all y radii 71 //!< the curves) nor a rect (i.e., both radii are non-zero 192 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect [all...] |
/external/chromium_org/third_party/WebKit/Source/core/paint/ |
BoxPainter.cpp | 224 border.setRadii(segmentBorder.radii()); 248 if (!clipRect.radii().topLeft().isEmpty() || !clipRect.radii().bottomRight().isEmpty()) { 250 RoundedRect::Radii topCornerRadii; 251 topCornerRadii.setTopLeft(clipRect.radii().topLeft()); 255 RoundedRect::Radii bottomCornerRadii; 256 bottomCornerRadii.setBottomRight(clipRect.radii().bottomRight()); 260 if (!clipRect.radii().topRight().isEmpty() || !clipRect.radii().bottomLeft().isEmpty()) { 262 RoundedRect::Radii topCornerRadii [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
GraphicsContextTest.cpp | 658 IntSize radii(10, 10); 663 context.fillRoundedRect(IntRect(10, 10, 90, 90), radii, radii, radii, radii, opaque); 674 context.fillRoundedRect(IntRect(10, 10, 50, 30), radii, radii, radii, radii, opaque); 678 context.fillRoundedRect(IntRect(10, 10, 30, 50), radii, radii, radii, radii, alpha) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSBasicShapes.cpp | 305 static bool buildInsetRadii(Vector<String> &radii, const String& topLeftRadius, const String& topRightRadius, const String& bottomRightRadius, const String& bottomLeftRadius) 311 radii.append(topLeftRadius); 313 radii.append(topRightRadius); 315 radii.append(bottomRightRadius); 317 radii.append(bottomLeftRadius); 319 return radii.size() == 1 && radii[0] == "0px";
|