Searched refs:inset (Results 1 - 25 of 104) sorted by relevance

12345

/external/skia/src/utils/
H A DSkInsetConvexPolygon.h17 * Generates a polygon that is inset a given distance from the boundary of a given convex polygon.
22 * @param insetDistanceFunc How far we wish to inset the polygon for a given index in the array.
24 * @param insetPolygon The resulting inset polygon, if any.
25 * @return true if an inset polygon exists, false otherwise.
32 SkScalar inset,
35 [inset](int) { return inset; },
31 SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize, SkScalar inset, SkTDArray<SkPoint>* insetPolygon) argument
/external/skia/include/effects/
H A DSkMagnifierImageFilter.h17 static sk_sp<SkImageFilter> Make(const SkRect& srcRect, SkScalar inset,
26 SkScalar inset,
/external/skia/gm/
H A Ddraw_bitmap_rect_skbug4374.cpp14 rect.inset(0.5, 1.5);
H A Dgaussianedge.cpp134 rrects[1].inset(blurRad/2.0f, blurRad/2.0f);
137 SkScalar inset = kRRRad - 0.5f; local
138 rrects[1].inset(inset, inset);
139 SkScalar pad = blurRad/2.0f - inset;
151 rrects[2].inset(blurRad/2.0f, blurRad/2.0f);
154 SkScalar inset = kRRRad - 0.5f; local
155 rrects[2].inset(inset, inse
[all...]
H A Dpathinterior.cpp17 static SkRect inset(const SkRect& r) { function
19 rect.inset(r.width() / 8, r.height() / 8);
80 SkRect r = insetFirst ? inset(rect) : rect;
86 r = insetFirst ? rect : inset(rect);
H A Dreveal.cpp35 virtual SkPath asPath(SkScalar inset) const = 0;
71 SkPath asPath(SkScalar inset) const override {
73 tmp.inset(inset, inset);
114 SkPath asPath(SkScalar inset) const override {
116 tmp.inset(inset, inset);
177 SkPath asPath(SkScalar inset) cons
[all...]
H A Ddrrect.cpp47 r.inset(25, 25);
H A Drrect.cpp19 r.inset(dx, dy);
39 r.inset(dx, dy);
55 r.inset(dx, dy);
83 r.inset(dx, dy);
H A Daddarc.cpp34 const SkScalar inset = paint.getStrokeWidth() + 4; variable
50 r.inset(inset, inset);
150 r.inset(delta, delta);
203 r.inset(delta, delta);
H A Dresizeimagefilter.cpp51 ovalRect.inset(SkIntToScalar(4), SkIntToScalar(4));
101 ovalRect.inset(SkIntToScalar(2)/3, SkIntToScalar(2)/3);
H A Dsimple_magnification.cpp60 * SkMagnifierImageFilter is then used to blow it up with different inset border widths.
64 * BottomLeft origin + 1-wide inset | TopLeft origin + 1-wide inset
66 * BottomLeft origin + 7-wide inset | TopLeft origin + 7-wide inset
85 void draw(SkCanvas* canvas, sk_sp<SkImage> image, const SkIPoint& offset, int inset) { argument
89 sk_sp<SkImageFilter> magFilter(SkMagnifierImageFilter::Make(srcRect, inset, imgSrc));
H A Dstrokes.cpp326 static SkRect inset(const SkRect& r) { function
328 rr.inset(r.width()/10, r.height()/10);
335 path->addRect(inset(bounds), SkPath::kCW_Direction);
341 path->addRect(inset(bounds), SkPath::kCCW_Direction);
347 path->addOval(inset(bounds), SkPath::kCW_Direction);
353 path->addOval(inset(bounds), SkPath::kCCW_Direction);
360 r.inset(bounds.width() / 10, -bounds.height() / 10);
368 r.inset(bounds.width() / 10, -bounds.height() / 10);
H A Dspritebitmap.cpp36 clipR.inset(5, 5);
H A Dblurrect.cpp30 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
46 rect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
157 clipRect.inset(STROKE_WIDTH/2, STROKE_WIDTH/2);
/external/skia/src/gpu/ops/
H A DGrAAStrokeRectOp.cpp69 devInside->inset(rx, ry);
91 devOutside->inset(0, ry);
417 static void setup_scale(int* scale, SkScalar inset) { argument
418 if (inset < SK_ScalarHalf) {
419 *scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf));
452 SkScalar inset; local
454 inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight);
455 inset = SkMinScalar(inset, devInsid
471 SkScalar inset; local
[all...]
H A DGrAAFillRectOp.cpp60 SkScalar inset; local
63 inset = SkMinScalar(devRect.width(), SK_Scalar1);
64 inset = SK_ScalarHalf * SkMinScalar(inset, devRect.height());
67 set_inset_fan(fan1Pos, vertexStride, devRect, inset, inset);
78 inset = SkMinScalar(len1 * rect.width(), SK_Scalar1);
79 inset = SK_ScalarHalf * SkMinScalar(inset, len2 * rect.height());
85 // Now create the inset point
[all...]
/external/doclava/res/assets/templates/
H A Dtodo.cs17 border-style: inset inset inset inset;
24 border-style: inset inset inset inset;
/external/skia/src/gpu/effects/
H A DGrTextureDomain.h70 // For Clamp mode, inset by half a texel.
71 SkScalar inset = (mode == kClamp_Mode && !texelRect.isEmpty()) ? SK_ScalarHalf : 0; local
72 return SkRect::MakeLTRB(texelRect.fLeft + inset, texelRect.fTop + inset,
73 texelRect.fRight - inset, texelRect.fBottom - inset);
/external/skia/include/core/
H A DSkRRect.h245 * Call inset on the bounds, and adjust the radii to reflect what happens
247 * otherwise we grow/shrink the radii by the amount of the inset. If a
252 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
254 void inset(SkScalar dx, SkScalar dy) { function in class:SkRRect
255 this->inset(dx, dy, this);
261 * otherwise we grow/shrink the radii by the amount of the inset. If a
267 this->inset(-dx, -dy, dst);
270 this->inset(-dx, -dy, this);
/external/skia/bench/
H A DRegionBench.cpp39 r.inset(r.width()/4, r.height()/4);
43 r.inset(r.width()/4, r.height()/4);
53 r.inset(r.width()/4, r.height()/4);
/external/skia/samplecode/
H A DSampleAAClip.cpp81 bounds.inset(SK_ScalarHalf, SK_ScalarHalf);
106 r.inset(20, 20);
H A DSampleColorFilter.cpp94 r.inset(SK_Scalar1, SK_Scalar1);
102 r.inset(SK_Scalar1*n/4, SK_Scalar1*n/4);
/external/skia/tools/
H A Dskpmaker.cpp42 r.inset(border, border);
/external/skia/src/effects/
H A DSkMagnifierImageFilter.cpp30 sk_sp<SkImageFilter> SkMagnifierImageFilter::Make(const SkRect& srcRect, SkScalar inset, argument
33 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) {
36 if (inset < 0) {
43 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset,
79 // 1/radius over which to transition from unzoomed to zoomed pixels (bounds size / inset).
266 SkScalar inset = d->fRandom->nextRangeScalar(1.0f, kMaxInset); local
280 bounds.width() / inset,
281 bounds.height() / inset));
304 SkScalar inset,
309 , fInset(inset) {
303 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, const CropRect* cropRect) argument
[all...]
/external/autotest/frontend/client/src/autotest/public/
H A Dstandard.css115 border: 1px inset #ccc;
120 border: 1px inset;
126 border: 1px inset #ccc;

Completed in 439 milliseconds

12345