/external/chromium_org/ppapi/cpp/ |
H A D | 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/shapes/ |
H A D | RectangleShape.h | 44 RectangleShape(const FloatRect& bounds, const FloatSize& radii) argument 47 , m_radii(radii)
|
H A D | Shape.cpp | 54 static PassOwnPtr<Shape> createRectangleShape(const FloatRect& bounds, const FloatSize& radii) argument 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) argument 68 ASSERT(radii.width() >= 0 && radii.height() >= 0); 69 return adoptPtr(new RectangleShape(FloatRect(center.x() - radii.width(), center.y() - radii.height(), radii 102 ensureRadiiDoNotOverlap(FloatRect &bounds, FloatSize &radii) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
H A D | FloatRoundedRectTest.cpp | 56 void PrintTo(const FloatRoundedRect::Radii& radii, std::ostream* os) argument 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()); 92 EXPECT_EQ(FloatSize(), r.radii().bottomLeft()); 93 EXPECT_EQ(FloatSize(), r.radii() [all...] |
H A D | FloatRoundedRect.cpp | 42 FloatRoundedRect::FloatRoundedRect(const FloatRect& rect, const Radii& radii) argument 44 , m_radii(radii) 64 // If either radius on a corner becomes zero, reset both radii on that corner.
|
H A D | RoundedRect.h | 83 const Radii& radii() const { return m_radii; } function in class:WebCore::RoundedRect 91 void setRadii(const Radii& radii) { m_radii = radii; } argument 126 return a.rect() == b.rect() && a.radii() == b.radii();
|
H A D | FloatRoundedRect.h | 80 const Radii& radii() const { return m_radii; } function in class:WebCore::FloatRoundedRect 85 void setRadii(const Radii& radii) { m_radii = radii; } argument 123 return a.rect() == b.rect() && a.radii() == b.radii();
|
H A D | RoundedRect.cpp | 48 // If either radius on a corner becomes zero, reset both radii on that corner. 89 // Considering the inflation factor of shorter size to scale the radii seems appropriate here 142 RoundedRect::RoundedRect(const IntRect& rect, const Radii& radii) argument 144 , m_radii(radii)
|
/external/skia/tests/ |
H A D | PathOpsDQuadTest.cpp | 60 SkVector radii[4] = {{8, 8}, {8, 8}, {0, 0}, {0, 0}}; local 61 rRect.setRectRadii(rect, radii);
|
H A D | 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[ 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...] |
/external/skia/gm/ |
H A D | 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
|
H A D | 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...] |
H A D | roundrects.cpp | 289 // strokes and radii 291 SkScalar radii[][2] = { variable 304 circleRect.setRectXY(rect, radii[i][0], radii[i][1]);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | 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]) { argument 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 o [all...] |
/external/skia/src/core/ |
H A D | 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]) { argument 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 o [all...] |
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | native_theme_gtk2.cc | 114 SkScalar radii[8] = {radius, radius, radius, radius, local 116 path.addRoundRect(rect, radii);
|
/external/chromium_org/ui/native_theme/ |
H A D | native_theme_aura.cc | 54 SkScalar radii[8] = {radius, radius, radius, radius, local 56 path.addRoundRect(rect, radii);
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | 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 ar 178 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect [all...] |
/external/chromium_org/third_party/skia/src/utils/debugger/ |
H A D | SkObjectParser.cpp | 260 mRRect->append(") radii: ("); 262 const SkVector& radii = rrect.radii((SkRRect::Corner) i); local 263 mRRect->appendScalar(radii.fX); 265 mRRect->appendScalar(radii.fY);
|
/external/skia/include/core/ |
H A D | 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 ar 178 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect [all...] |
/external/skia/src/utils/debugger/ |
H A D | SkObjectParser.cpp | 260 mRRect->append(") radii: ("); 262 const SkVector& radii = rrect.radii((SkRRect::Corner) i); local 263 mRRect->appendScalar(radii.fX); 265 mRRect->appendScalar(radii.fY);
|
/external/chromium_org/ash/wm/ |
H A D | header_painter.cc | 77 SkScalar radii[8] = { local 83 path.addRoundRect(rect, radii, SkPath::kCW_Direction);
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | 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/ |
H A D | 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/src/gpu/ |
H A D | GrOvalRenderer.cpp | 165 * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii, 548 // The radii are outset for two reasons. First, it allows the shader to simply perform 587 // position + offset + 1/radii 689 // Compute the reciprocals of the radii here to save time in the shader 909 SkVector radii = rrect.getSimpleRadii(); local 910 SkScalar xRadius = SkScalarAbs(vm[SkMatrix::kMScaleX]*radii.fX + 911 vm[SkMatrix::kMSkewY]*radii.fY); 912 SkScalar yRadius = SkScalarAbs(vm[SkMatrix::kMSkewX]*radii.fX + 913 vm[SkMatrix::kMScaleY]*radii.fY); 983 // The radii ar [all...] |