Home
last modified time | relevance | path

Searched refs:inset (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dshadow-handler.js19 inset: false, property
26 shadow.inset = true;
59 if (left.inset != right.inset || !!left.color != !!right.color) {
79 var result = left.inset ? 'inset ' : ' ';
93 function defaultShadow(inset) { argument
94 return {inset: inset, color: [0, 0, 0, 0], lengths: [{px: 0}, {px: 0}, {px: 0}, {px: 0}]};
97 var l = left[i] || defaultShadow(right[i].inset);
98 var r = right[i] || defaultShadow(left[i].inset);
/external/setupdesign/main/src/com/google/android/setupdesign/widget/
DCardBackgroundDrawable.java34 private final float inset; field in CardBackgroundDrawable
48 public CardBackgroundDrawable(@ColorInt int color, float radius, float inset) { in CardBackgroundDrawable() argument
52 this.inset = inset; in CardBackgroundDrawable()
98 cardBounds.inset(inset, inset); in buildComponents()
/external/skia/docs/examples/
DImageInfo_makeWH.cpp13 SkBitmap inset; in draw() local
14 inset.allocPixels(insetImageInfo); in draw()
15 SkCanvas offscreen(inset); in draw()
16 offscreen.drawImageRect(image, SkRect::Make(source.bounds()), SkRect::Make(inset.bounds()), in draw()
18 canvas->drawImage(inset.asImage(), canvasBounds.width() / 4, canvasBounds.height() / 4); in draw()
DPixmap_addr.cpp13 SkPixmap inset; in draw() local
14 if (pixmap.extractSubset(&inset, {128, 128, 512, 512})) { in draw()
15 SkDebugf("inset address: 0x%llx\n", inset.addr()); in draw()
DPixmap_extractSubset.cpp12 SkPixmap inset; in draw() local
13 if (pixmap.extractSubset(&inset, {128, 128, 512, 512})) { in draw()
15 bitmap.installPixels(inset); in draw()
DPixmap_info.cpp12 SkPixmap inset; in draw() local
13 if (pixmap.extractSubset(&inset, {128, 128, 512, 512})) { in draw()
14 const SkImageInfo& info = inset.info(); in draw()
/external/doclava/res/assets/templates/
Dtodo.cs17 border-style: inset inset inset inset;
24 border-style: inset inset inset inset;
/external/skqp/src/gpu/ops/
DGrStrokeRectOp.cpp269 devInside->inset(rx, ry); in compute_aa_rects()
291 devOutside->inset(0, ry); in compute_aa_rects()
623 static void setup_scale(int* scale, SkScalar inset) { in setup_scale() argument
624 if (inset < SK_ScalarHalf) { in setup_scale()
625 *scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf)); in setup_scale()
646 SkScalar inset; in generateAAStrokeRectGeometry() local
648 inset = SkMinScalar(SK_Scalar1, devOutside.fRight - devInside.fRight); in generateAAStrokeRectGeometry()
649 inset = SkMinScalar(inset, devInside.fLeft - devOutside.fLeft); in generateAAStrokeRectGeometry()
650 inset = SkMinScalar(inset, devInside.fTop - devOutside.fTop); in generateAAStrokeRectGeometry()
652 inset = SK_ScalarHalf * SkMinScalar(inset, devOutside.fBottom - devInside.fBottom); in generateAAStrokeRectGeometry()
[all …]
/external/skqp/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp32 sk_sp<SkImageFilter> SkMagnifierImageFilter::Make(const SkRect& srcRect, SkScalar inset, in Make() argument
35 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) { in Make()
38 if (inset < 0) { in Make()
45 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset, in Make()
53 SkScalar inset, in SkMagnifierImageFilter() argument
58 , fInset(inset) { in SkMagnifierImageFilter()
59 SkASSERT(srcRect.left() >= 0 && srcRect.top() >= 0 && inset >= 0); in SkMagnifierImageFilter()
/external/skia/src/effects/imagefilters/
DSkMagnifierImageFilter.cpp33 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, in SkMagnifierImageFilter() argument
37 , fInset(inset) { in SkMagnifierImageFilter()
38 SkASSERT(srcRect.left() >= 0 && srcRect.top() >= 0 && inset >= 0); in SkMagnifierImageFilter()
59 const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, in Magnifier() argument
61 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) { in Magnifier()
64 if (inset < 0) { in Magnifier()
71 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset, std::move(input), in Magnifier()
/external/skqp/fuzz/
DFuzzPolyUtils.cpp25 SkScalar inset; in DEF_FUZZ() local
26 fuzz->next(&inset); in DEF_FUZZ()
28 ignoreResult(SkInsetConvexPolygon(polygon, count, inset, &output)); in DEF_FUZZ()
/external/skia/gm/
Dpathinterior.cpp19 static SkRect inset(const SkRect& r) { in inset() function
21 rect.inset(r.width() / 8, r.height() / 8); in inset()
82 SkRect r = insetFirst ? inset(rect) : rect; in onDraw()
88 r = insetFirst ? rect : inset(rect); in onDraw()
Daddarc.cpp44 const SkScalar inset = paint.getStrokeWidth() + 4; in onDraw() local
60 r.inset(inset, inset); in onDraw()
144 r.inset(delta, delta); in onDraw()
197 r.inset(delta, delta); in onDraw()
Drrect.cpp26 r.inset(dx, dy); in inset0()
46 r.inset(dx, dy); in inset1()
62 r.inset(dx, dy); in inset2()
90 r.inset(dx, dy); in inset3()
/external/skqp/gm/
Dpathinterior.cpp17 static SkRect inset(const SkRect& r) { in inset() function
19 rect.inset(r.width() / 8, r.height() / 8); in inset()
80 SkRect r = insetFirst ? inset(rect) : rect; in onDraw()
86 r = insetFirst ? rect : inset(rect); in onDraw()
Daddarc.cpp34 const SkScalar inset = paint.getStrokeWidth() + 4; in onDraw() local
50 r.inset(inset, inset); in onDraw()
136 r.inset(delta, delta); in onDraw()
189 r.inset(delta, delta); in onDraw()
Drrect.cpp19 r.inset(dx, dy); in inset0()
39 r.inset(dx, dy); in inset1()
55 r.inset(dx, dy); in inset2()
83 r.inset(dx, dy); in inset3()
/external/skia/fuzz/
DFuzzPolyUtils.cpp29 SkScalar inset; in DEF_FUZZ() local
30 fuzz->next(&inset); in DEF_FUZZ()
32 ignoreResult(SkInsetConvexPolygon(polygon, count, inset, &output)); in DEF_FUZZ()
/external/skia/include/core/
DSkRRect.h321 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
337 void inset(SkScalar dx, SkScalar dy) { in inset() function
338 this->inset(dx, dy, this); in inset()
357 this->inset(-dx, -dy, dst); in outset()
375 this->inset(-dx, -dy, this); in outset()
/external/skqp/include/core/
DSkRRect.h352 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const;
368 void inset(SkScalar dx, SkScalar dy) { in inset() function
369 this->inset(dx, dy, this); in inset()
388 this->inset(-dx, -dy, dst); in outset()
406 this->inset(-dx, -dy, this); in outset()
/external/skia/src/utils/
DSkShadowTessellator.cpp55 bool computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip);
65 bool computeConcaveShadow(SkScalar inset, SkScalar outset);
250 bool SkBaseShadowTessellator::computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip) { in computeConvexShadow() argument
277 if (inset > SK_ScalarNearlyZero) { in computeConvexShadow()
279 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow()
282 auto ratio = 128 * (newInset / inset + 1); in computeConvexShadow()
286 inset = newInset; in computeConvexShadow()
290 if (!SkInsetConvexPolygon(&fPathPolygon[0], fPathPolygon.count(), inset, in computeConvexShadow()
296 const SkTDArray<SkPoint>& umbraPolygon = (inset > SK_ScalarNearlyZero) ? insetPolygon in computeConvexShadow()
557 bool SkBaseShadowTessellator::computeConcaveShadow(SkScalar inset, SkScalar outset) { in computeConcaveShadow() argument
[all …]
/external/skqp/src/utils/
DSkShadowTessellator.cpp54 bool computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip);
64 bool computeConcaveShadow(SkScalar inset, SkScalar outset);
246 bool SkBaseShadowTessellator::computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip) { in computeConvexShadow() argument
273 if (inset > SK_ScalarNearlyZero) { in computeConvexShadow()
275 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow()
278 auto ratio = 128 * (newInset / inset + 1); in computeConvexShadow()
282 inset = newInset; in computeConvexShadow()
286 if (!SkInsetConvexPolygon(&fPathPolygon[0], fPathPolygon.count(), inset, in computeConvexShadow()
292 const SkTDArray<SkPoint>& umbraPolygon = (inset > SK_ScalarNearlyZero) ? insetPolygon in computeConvexShadow()
553 bool SkBaseShadowTessellator::computeConcaveShadow(SkScalar inset, SkScalar outset) { in computeConcaveShadow() argument
[all …]
/external/skqp/include/effects/
DSkMagnifierImageFilter.h17 static sk_sp<SkImageFilter> Make(const SkRect& srcRect, SkScalar inset,
23 SkScalar inset,
/external/skia/src/gpu/effects/
DGrMagnifierEffect.fp50 SkScalar inset = d->fRandom->nextRangeScalar(1.0f, kMaxInset);
61 bounds.width() / inset,
62 bounds.height() / inset);
/external/skia/tests/
DDefaultPathRendererTest.cpp54 static SkPath make_path(const SkRect& outer, int inset, SkPathFillType fill) { in make_path() argument
58 p.addRect(outer.makeInset(inset, inset), SkPathDirection::kCCW); in make_path()

12345678910>>...12