/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...] |
rrects.cpp | 105 // Radii for the various test cases. Order is UL, UR, LR, LL 135 // over-sized radii
|
/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/webkit/Source/WebCore/platform/graphics/ |
RoundedIntRect.h | 37 class Radii { 39 Radii() {} 40 Radii(const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight) 59 void includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); 75 explicit RoundedIntRect(const IntRect&, const Radii& = Radii()); 80 const Radii& radii() const { return m_radii; } function in class:WebCore::RoundedIntRect 85 void setRadii(const Radii& radii) { m_radii = radii; [all...] |
ShadowBlur.cpp | 82 void setLastShadowValues(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii) 89 m_lastRadii = radii; 92 void setLastInsetShadowValues(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii) 100 m_lastRadii = radii; 103 bool matchesLastShadow(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii) const 107 return m_lastRadius == radius && m_lastColor == color && m_lastColorSpace == colorSpace && shadowRect == m_lastShadowRect && radii == m_lastRadii; 110 bool matchesLastInsetShadow(float radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const RoundedIntRect::Radii& radii) cons [all...] |
ShadowBlur.h | 52 void drawRectShadow(GraphicsContext*, const FloatRect&, const RoundedIntRect::Radii&); 53 void drawInsetShadow(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedIntRect::Radii& holeRadii); 67 IntSize templateSize(const RoundedIntRect::Radii&) const; 69 void drawRectShadowWithoutTiling(GraphicsContext*, const FloatRect&, const RoundedIntRect::Radii&, const IntRect& layerRect); 70 void drawRectShadowWithTiling(GraphicsContext*, const FloatRect&, const RoundedIntRect::Radii&, const IntSize& shadowTemplateSize); 72 void drawInsetShadowWithoutTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedIntRect::Radii&, const IntRect& layerRect); 73 void drawInsetShadowWithTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedIntRect::Radii&, const IntSize& shadowTemplateSize); 75 void drawLayerPieces(GraphicsContext*, const FloatRect& shadowBounds, const RoundedIntRect::Radii&, float roundedRadius, const IntSize& templateSize, ShadowDirection);
|
RoundedIntRect.cpp | 37 bool RoundedIntRect::Radii::isZero() const 42 void RoundedIntRect::Radii::scale(float factor) 47 // If either radius on a corner becomes zero, reset both radii on that corner. 63 void RoundedIntRect::Radii::expand(int topWidth, int bottomWidth, int leftWidth, int rightWidth) 78 void RoundedIntRect::Radii::includeLogicalEdges(const RoundedIntRect::Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) 97 void RoundedIntRect::Radii::excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge) 121 RoundedIntRect::RoundedIntRect(const IntRect& rect, const Radii& radii) 123 , m_radii(radii) [all...] |
Path.cpp | 164 // If all the radii cannot be accommodated, return a rect. 193 addRoundedRect(r.rect(), r.radii().topLeft(), r.radii().topRight(), r.radii().bottomLeft(), r.radii().bottomRight());
|
GraphicsContext.cpp | 623 fillRoundedRect(rect.rect(), rect.radii().topLeft(), rect.radii().topRight(), rect.radii().bottomLeft(), rect.radii().bottomRight(), color, colorSpace); 635 if (!roundedHoleRect.radii().isZero())
|
/external/skia/include/core/ |
SkRRect.h | 18 // add validate method (all radii positive, all radii sums < rect size, etc.) 43 radii for each corner. It does not have a constructor so must be 49 If either of a corner's radii are 0 the corner will be square. 50 Negative radii are not allowed (they are clamped to zero). 70 //!< The RR is actually a (non-empty) oval (i.e., all x radii are equal 71 //!< and >= width/2 and all the y radii are equal and >= height/2 74 //!< The RR is non-empty and all the x radii are equal & all y radii 76 //!< the curves) nor a rect (i.e., both radii are non-zero 177 const SkVector& radii(Corner corner) const { return fRadii[corner]; } function in class:SkRRect [all...] |
/external/skia/src/core/ |
SkRRect.cpp | 39 // TODO: assert that all the x&y radii are already W/2 & H/2 45 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { 52 memcpy(fRadii, radii, sizeof(fRadii)); 56 // Clamp negative radii to zero 60 // the radii is 0 the corner is square. However, the other radii 75 // Proportionally scale down all radii to fit. Find the minimum ratio 76 // of a side and the radii on that side (for all four sides) and use 77 // that to scale down _all_ the radii. This algorithm is from the 81 // Si is the sum of the two corresponding radii of the corners on side i 239 SkVector radii[4]; local [all...] |
/external/skia/tests/ |
RoundRectTest.cpp | 47 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i)); 60 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i)); 73 rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint)); 85 REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i)); 89 SkPoint radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; local 92 rr4.setRectRadii(rect, radii); 98 REPORTER_ASSERT(reporter, radii[i] == rr4.radii((SkRRect::Corner) i)); 111 REPORTER_ASSERT(reporter, radii2[i] == rr5.radii((SkRRect::Corner) i)); 165 SkPoint radii[4] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } } local 279 SkPoint radii[4] = { { 0, 0 }, { 20, 20 }, { 50, 50 }, { 20, 50 } }; local 296 SkPoint radii[4] = { { 50, 100 }, { 100, 50 }, { 50, 100 }, { 100, 50 } }; local [all...] |
/external/webkit/Source/WebCore/rendering/ |
RenderBoxModelObject.cpp | 568 border.setRadii(segmentBorder.radii()); [all...] |
/external/skia/src/utils/ |
SkDumpCanvas.cpp | 49 SkVector radii[4] = { local 50 rrect.radii(SkRRect::kUpperLeft_Corner), 51 rrect.radii(SkRRect::kUpperRight_Corner), 52 rrect.radii(SkRRect::kLowerRight_Corner), 53 rrect.radii(SkRRect::kLowerLeft_Corner), 56 radii[0].x(), radii[0].y(), 57 radii[1].x(), radii[1].y(), 58 radii[2].x(), radii[2].y() [all...] |
/external/webkit/Source/WebCore/platform/win/ |
DragImageWin.cpp | 204 static const IntSize radii(DragLabelRadius, DragLabelRadius); 206 context.fillRoundedRect(rect, radii, radii, radii, radii, backgroundColor, ColorSpaceDeviceRGB);
|
/external/webkit/Source/WebCore/platform/graphics/android/context/ |
PlatformGraphicsContextSkia.cpp | 550 SkScalar radii[8]; local 552 radii[0] = SkIntToScalar(topLeft.width()); 553 radii[1] = SkIntToScalar(topLeft.height()); 554 radii[2] = SkIntToScalar(topRight.width()); 555 radii[3] = SkIntToScalar(topRight.height()); 556 radii[4] = SkIntToScalar(bottomRight.width()); 557 radii[5] = SkIntToScalar(bottomRight.height()); 558 radii[6] = SkIntToScalar(bottomLeft.width()); 559 radii[7] = SkIntToScalar(bottomLeft.height()); 560 path.addRoundRect(rect, radii); [all...] |
/external/webkit/Source/WebCore/rendering/style/ |
RenderStyle.cpp | 758 static RoundedIntRect::Radii calcRadiiFor(const BorderData& border, int width, int height) 760 return RoundedIntRect::Radii(IntSize(border.topLeft().width().calcValue(width), 770 static float calcConstraintScaleFor(const IntRect& rect, const RoundedIntRect::Radii& radii) 772 // Constrain corner radii using CSS3 rules: 779 radiiSum = static_cast<unsigned>(radii.topLeft().width()) + static_cast<unsigned>(radii.topRight().width()); // Casts to avoid integer overflow. 784 radiiSum = static_cast<unsigned>(radii.bottomLeft().width()) + static_cast<unsigned>(radii.bottomRight().width()); 806 RoundedIntRect::Radii radii = calcRadiiFor(surround->border, borderRect.width(), borderRect.height()); local 836 RoundedIntRect::Radii radii = getRoundedBorderFor(borderRect).radii(); local [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
RoundRectShape.java | 61 throw new ArrayIndexOutOfBoundsException("outer radii must have >= 8 values"); 64 throw new ArrayIndexOutOfBoundsException("inner radii must have >= 8 values");
|
/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/webkit/Source/WebCore/css/ |
CSSGradientValue.h | 82 // Resolve points/radii to front end values. 156 // Resolve points/radii to front end values.
|
/frameworks/base/graphics/java/android/graphics/ |
Path.java | 494 * @param radii Array of 8 values, 4 pairs of [X,Y] radii 497 public void addRoundRect(RectF rect, float[] radii, Direction dir) { 501 if (radii.length < 8) { 502 throw new ArrayIndexOutOfBoundsException("radii[] needs 8 values"); 505 native_addRoundRect(mNativePath, rect, radii, dir.nativeInt); 654 float[] radii, int dir);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Path_Delegate.java | 385 /*package*/ static void native_addRoundRect(int nPath, RectF rect, float[] radii, int dir) { 388 native_addRoundRect(nPath, rect, radii[0], radii[1], dir); 394 if (radii[i * 2] != radii[(i + 1) * 2] || radii[i * 2 + 1] != radii[(i + 1) * 2 + 1]) {
|
/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/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
FaultHeightMap.java | 83 private float minRadius; // radii for circular fault
90 * be provided. For faultshape circle, min and max radii can be provided.
|