/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/skia/gm/ |
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
|
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...] |
roundrects.cpp | 289 // strokes and radii 291 SkScalar radii[][2] = { variable 304 circleRect.setRectXY(rect, radii[i][0], radii[i][1]);
|
/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 | 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...] |
/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...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
PaintDrawableTest.java | 82 float[] radii = { local 98 paintDrawable.setCornerRadii(radii);
|
GradientDrawableTest.java | 48 float[] radii = new float[] {1.0f, 2.0f, 3.0f}; local 51 gradientDrawable.setCornerRadii(radii);
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
native_theme_gtk2.cc | 114 SkScalar radii[8] = {radius, radius, radius, radius, local 116 path.addRoundRect(rect, radii);
|
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
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...] |
/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/chromium_org/ui/native_theme/ |
native_theme_aura.cc | 54 SkScalar radii[8] = {radius, radius, radius, radius, local 56 path.addRoundRect(rect, radii);
|
/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/skia/src/utils/debugger/ |
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/src/utils/debugger/ |
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/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/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/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/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...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PathTest.java | 307 float[] radii = new float[8]; local 309 radii[i] = 10.0f + i * 5.0f; 311 path.addRoundRect(rect, radii, Path.Direction.CW);
|
/external/chromium_org/ash/wm/ |
header_painter.cc | 77 SkScalar radii[8] = { local 83 path.addRoundRect(rect, radii, SkPath::kCW_Direction);
|
/external/chromium_org/third_party/skia/src/gpu/ |
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 [all...] |
/external/skia/src/gpu/ |
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 [all...] |