Searched refs:bounds (Results 101 - 125 of 974) sorted by relevance

1234567891011>>

/external/skia/src/effects/
H A DSkOffsetImageFilter.cpp51 SkIRect bounds; local
54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
58 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size()));
71 canvas->translate(SkIntToScalar(srcOffset.fX - bounds.fLeft),
72 SkIntToScalar(srcOffset.fY - bounds.fTop));
76 offset->fX = bounds.fLeft;
77 offset->fY = bounds.fTop;
94 SkRect bounds = this->getInput(0) ? this->getInput(0)->computeFastBounds(src) : src; local
95 bounds.offset(fOffset.fX, fOffset.fY);
96 return bounds;
[all...]
H A DGrAlphaThresholdFragmentProcessor.fp17 const SkIRect& bounds
24 const SkIRect& bounds) {
26 mask, innerThreshold, outerThreshold, bounds));
31 SkMatrix::MakeTrans(SkIntToScalar(-bounds.x()), SkIntToScalar(-bounds.y()))
74 SkIRect bounds = SkIRect::MakeXYWH(x, y, width, height);
76 bounds);
/external/skqp/src/core/
H A DSkCoverageDelta.cpp48 bool SkCoverageDeltaMask::CanHandle(const SkIRect& bounds) { argument
50 return ExpandWidth(bounds.width()) * bounds.height() + PADDING * 2 < MAX_MASK_SIZE;
53 bool SkCoverageDeltaMask::Suitable(const SkIRect& bounds) { argument
54 return bounds.width() <= SUITABLE_WIDTH && CanHandle(bounds);
57 SkCoverageDeltaMask::SkCoverageDeltaMask(SkArenaAlloc* alloc, const SkIRect& bounds) { argument
58 SkASSERT(CanHandle(bounds));
60 fBounds = bounds;
68 int size = fExpandedWidth * bounds
[all...]
H A DSkRecordDraw.cpp25 // this canvas' clip bounds transformed back into identity space, which
79 DRAW(SaveLayer, saveLayer(SkCanvas::SaveLayerRec(r.bounds,
147 // The interesting part here is how to calculate bounds for ops which don't
148 // have intrinsic bounds. What is the bounds of a Save or a Translate?
150 // We answer this by thinking about a particular definition of bounds: if I
152 // the bounds of a Save, a Translate, a Restore, etc. are the union of the
153 // bounds of Draw* ops that they might have an effect on. For any given
154 // Save/Restore block, the bounds of the Save, the Restore, and any other
155 // non-drawing ("control") ops inside are exactly the union of the bounds o
165 FillBounds(const SkRect& cullRect, const SkRecord& record, SkRect bounds[]) argument
233 Bounds bounds; // Bounds of everything in the block. member in struct:SkRecords::FillBounds::SaveBounds
381 popControl(const Bounds& bounds) argument
386 updateSaveBounds(const Bounds& bounds) argument
393 Bounds bounds(const Flush&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds
396 Bounds bounds(const DrawText&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds
398 Bounds bounds(const DrawPaint&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds
399 Bounds bounds(const NoOp&) const { return Bounds::MakeEmpty(); } // NoOps don't draw. function in class:SkRecords::FillBounds
401 Bounds bounds(const DrawRect& op) const { return this->adjustAndMap(op.rect, &op.paint); } function in class:SkRecords::FillBounds
402 Bounds bounds(const DrawRegion& op) const { function in class:SkRecords::FillBounds
406 Bounds bounds(const DrawOval& op) const { return this->adjustAndMap(op.oval, &op.paint); } function in class:SkRecords::FillBounds
408 Bounds bounds(const DrawArc& op) const { return this->adjustAndMap(op.oval, &op.paint); } function in class:SkRecords::FillBounds
409 Bounds bounds(const DrawRRect& op) const { function in class:SkRecords::FillBounds
412 Bounds bounds(const DrawDRRect& op) const { function in class:SkRecords::FillBounds
415 Bounds bounds(const DrawImage& op) const { function in class:SkRecords::FillBounds
421 Bounds bounds(const DrawImageLattice& op) const { function in class:SkRecords::FillBounds
424 Bounds bounds(const DrawImageRect& op) const { function in class:SkRecords::FillBounds
427 Bounds bounds(const DrawImageNine& op) const { function in class:SkRecords::FillBounds
430 Bounds bounds(const DrawPath& op) const { function in class:SkRecords::FillBounds
434 Bounds bounds(const DrawPoints& op) const { function in class:SkRecords::FillBounds
444 Bounds bounds(const DrawPatch& op) const { function in class:SkRecords::FillBounds
449 Bounds bounds(const DrawVertices& op) const { function in class:SkRecords::FillBounds
453 Bounds bounds(const DrawAtlas& op) const { function in class:SkRecords::FillBounds
463 Bounds bounds(const DrawShadowRec& op) const { function in class:SkRecords::FillBounds
464 SkRect bounds; local
469 Bounds bounds(const DrawPicture& op) const { function in class:SkRecords::FillBounds
475 Bounds bounds(const DrawPosText& op) const { function in class:SkRecords::FillBounds
486 Bounds bounds(const DrawPosTextH& op) const { function in class:SkRecords::FillBounds
501 Bounds bounds(const DrawTextOnPath& op) const { function in class:SkRecords::FillBounds
517 Bounds bounds(const DrawTextRSXform& op) const { function in class:SkRecords::FillBounds
525 Bounds bounds(const DrawTextBlob& op) const { function in class:SkRecords::FillBounds
531 Bounds bounds(const DrawDrawable& op) const { function in class:SkRecords::FillBounds
535 Bounds bounds(const DrawAnnotation& op) const { function in class:SkRecords::FillBounds
613 SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, SkRect bounds[]) argument
[all...]
/external/skqp/src/effects/
H A DSkOffsetImageFilter.cpp51 SkIRect bounds; local
54 if (!this->applyCropRect(ctx, srcBounds, &bounds)) {
58 sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size()));
71 canvas->translate(SkIntToScalar(srcOffset.fX - bounds.fLeft),
72 SkIntToScalar(srcOffset.fY - bounds.fTop));
76 offset->fX = bounds.fLeft;
77 offset->fY = bounds.fTop;
94 SkRect bounds = this->getInput(0) ? this->getInput(0)->computeFastBounds(src) : src; local
95 bounds.offset(fOffset.fX, fOffset.fY);
96 return bounds;
[all...]
H A DGrAlphaThresholdFragmentProcessor.fp17 const SkIRect& bounds
24 const SkIRect& bounds) {
26 mask, innerThreshold, outerThreshold, bounds));
31 SkMatrix::MakeTrans(SkIntToScalar(-bounds.x()), SkIntToScalar(-bounds.y()))
74 SkIRect bounds = SkIRect::MakeXYWH(x, y, width, height);
76 bounds);
/external/skia/gm/
H A Dcolorfilters.cpp13 static sk_sp<SkShader> make_shader(const SkRect& bounds) { argument
15 { bounds.left(), bounds.top() },
16 { bounds.right(), bounds.bottom() },
H A Dpathmaskcache.cpp36 SkRect bounds = path.getBounds();
37 m.mapRect(&bounds);
38 bounds.roundOut();
40 canvas->translate(-bounds.fLeft, -bounds.fTop);
48 canvas->translate(bounds.width() + kPad, 0.f);
55 canvas->translate(bounds.width() + kPad + 0.15f, 0.f);
62 canvas->translate(bounds.width() + kPad + 0.002f, 0.f);
68 return bounds.fBottom + kPad;
H A Dtextblobrandomfont.cpp50 SkRect bounds; variable
51 paint.measureText(text, strlen(text), &bounds);
60 paint.measureText(bigtext1, strlen(bigtext1), &bounds);
61 SkScalar offset = bounds.height();
64 paint.measureText(bigtext2, strlen(bigtext2), &bounds);
65 offset += bounds.height();
71 paint.measureText(emojiText, strlen(emojiText), &bounds);
72 offset += bounds.height();
109 int stride = SkScalarCeilToInt(fBlob->bounds().height());
/external/skia/src/gpu/effects/
H A DGrMatrixConvolutionEffect.h20 const SkIRect& bounds,
29 new GrMatrixConvolutionEffect(std::move(proxy), bounds, kernelSize, kernel, gain,
34 const SkIRect& bounds,
44 const SkIRect& bounds() const { return fBounds; } function in class:GrMatrixConvolutionEffect
59 const SkIRect& bounds,
19 Make(sk_sp<GrTextureProxy> proxy, const SkIRect& bounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, GrTextureDomain::Mode tileMode, bool convolveAlpha) argument
/external/skqp/gm/
H A Dcolorfilters.cpp13 static sk_sp<SkShader> make_shader(const SkRect& bounds) { argument
15 { bounds.left(), bounds.top() },
16 { bounds.right(), bounds.bottom() },
H A Dpathmaskcache.cpp36 SkRect bounds = path.getBounds();
37 m.mapRect(&bounds);
38 bounds.roundOut();
40 canvas->translate(-bounds.fLeft, -bounds.fTop);
48 canvas->translate(bounds.width() + kPad, 0.f);
55 canvas->translate(bounds.width() + kPad + 0.15f, 0.f);
62 canvas->translate(bounds.width() + kPad + 0.002f, 0.f);
68 return bounds.fBottom + kPad;
H A Dtextblobrandomfont.cpp50 SkRect bounds; variable
51 paint.measureText(text, strlen(text), &bounds);
60 paint.measureText(bigtext1, strlen(bigtext1), &bounds);
61 SkScalar offset = bounds.height();
64 paint.measureText(bigtext2, strlen(bigtext2), &bounds);
65 offset += bounds.height();
71 paint.measureText(emojiText, strlen(emojiText), &bounds);
72 offset += bounds.height();
109 int stride = SkScalarCeilToInt(fBlob->bounds().height());
/external/skqp/src/gpu/effects/
H A DGrMatrixConvolutionEffect.h20 const SkIRect& bounds,
29 new GrMatrixConvolutionEffect(std::move(proxy), bounds, kernelSize, kernel, gain,
34 const SkIRect& bounds,
44 const SkIRect& bounds() const { return fBounds; } function in class:GrMatrixConvolutionEffect
59 const SkIRect& bounds,
19 Make(sk_sp<GrTextureProxy> proxy, const SkIRect& bounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, GrTextureDomain::Mode tileMode, bool convolveAlpha) argument
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowDrawable.java30 private Rect bounds = new Rect(0, 0, 0, 0); field in class:ShadowDrawable
76 return bounds;
81 this.bounds = rect;
86 bounds = new Rect(left, top, right, bottom);
91 Rect bounds = new Rect();
92 copyBounds(bounds);
93 return bounds;
97 public void copyBounds(Rect bounds) { argument
98 bounds.set(getBounds());
162 if (bounds !
[all...]
/external/ImageMagick/coders/
H A Dmvg.c170 bounds;
180 (void) sscanf(p,"viewbox %lf %lf %lf %lf",&bounds.x1,&bounds.y1,
181 &bounds.x2,&bounds.y2);
182 image->columns=(size_t) floor((bounds.x2-bounds.x1)+0.5);
183 image->rows=(size_t) floor((bounds.y2-bounds.y1)+0.5);
166 bounds; local
/external/annotation-tools/annotation-file-utilities/src/annotator/find/
H A DBoundLocationCriterion.java73 List<? extends Tree> bounds = ((TypeParameterTree) parent).getBounds();
75 if (!bounds.isEmpty() && isInterface((JCExpression) bounds.get(0))) {
78 if (ix < 0 || ix < bounds.size() && bounds.get(ix) == leaf) {
82 List<? extends Tree> bounds = ((TypeParameterTree) leaf).getBounds();
83 if (bounds.isEmpty() || isInterface((JCExpression) bounds.get(0))) {
88 Type type = ((JCExpression) bounds.get(0)).type;
/external/annotation-tools/scene-lib/src/annotations/el/
H A DAMethod.java12 * An annotated method; contains bounds, return, parameters, receiver, and throws.
15 /** The method's annotated type parameter bounds */
16 public final VivifyingMap<BoundLocation, ATypeElement> bounds = field in class:AMethod
49 copyMapContents(method.bounds, bounds);
52 copyMapContents(method.bounds, bounds);
75 && bounds.equals(o.bounds)
89 + bounds
[all...]
/external/skia/tests/
H A DPathOpsTightBoundsTest.cpp134 const SkRect& bounds = path.getBounds(); local
137 REPORTER_ASSERT(reporter, bounds == tight);
143 const SkRect& bounds = path.getBounds(); local
146 REPORTER_ASSERT(reporter, bounds == tight);
153 const SkRect& bounds = path.getBounds(); local
156 REPORTER_ASSERT(reporter, bounds == tight);
163 const SkRect& bounds = path.getBounds(); local
167 REPORTER_ASSERT(reporter, bounds != tight);
175 const SkRect& bounds = path.getBounds(); local
178 REPORTER_ASSERT(reporter, bounds
185 const SkRect& bounds = path.getBounds(); local
195 const SkRect& bounds = path.getBounds(); local
[all...]
/external/skqp/tests/
H A DPathOpsTightBoundsTest.cpp134 const SkRect& bounds = path.getBounds(); local
137 REPORTER_ASSERT(reporter, bounds == tight);
143 const SkRect& bounds = path.getBounds(); local
146 REPORTER_ASSERT(reporter, bounds == tight);
153 const SkRect& bounds = path.getBounds(); local
156 REPORTER_ASSERT(reporter, bounds == tight);
163 const SkRect& bounds = path.getBounds(); local
167 REPORTER_ASSERT(reporter, bounds != tight);
175 const SkRect& bounds = path.getBounds(); local
178 REPORTER_ASSERT(reporter, bounds
185 const SkRect& bounds = path.getBounds(); local
195 const SkRect& bounds = path.getBounds(); local
[all...]
/external/skia/samplecode/
H A DSamplePathClip.cpp74 static int clip_line(const SkRect& bounds, SkPoint p0, SkPoint p1, SkPoint edges[]) { argument
85 if (p1.fY <= bounds.top() || p0.fY >= bounds.bottom()) {
90 if (p0.fY < bounds.top()) {
91 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
92 p0.fY = bounds.top();
94 if (p1.fY > bounds.bottom()) {
95 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
96 p1.fY = bounds.bottom();
99 // Now p0...p1 is strictly inside bounds verticall
137 draw_clipped_line(SkCanvas* canvas, const SkRect& bounds, SkPoint p0, SkPoint p1, const SkPaint& paint) argument
[all...]
/external/skqp/samplecode/
H A DSamplePathClip.cpp74 static int clip_line(const SkRect& bounds, SkPoint p0, SkPoint p1, SkPoint edges[]) { argument
85 if (p1.fY <= bounds.top() || p0.fY >= bounds.bottom()) {
90 if (p0.fY < bounds.top()) {
91 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
92 p0.fY = bounds.top();
94 if (p1.fY > bounds.bottom()) {
95 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
96 p1.fY = bounds.bottom();
99 // Now p0...p1 is strictly inside bounds verticall
137 draw_clipped_line(SkCanvas* canvas, const SkRect& bounds, SkPoint p0, SkPoint p1, const SkPaint& paint) argument
[all...]
/external/skia/src/core/
H A DSkRecordDraw.cpp25 // this canvas' clip bounds transformed back into identity space, which
79 DRAW(SaveLayer, saveLayer(SkCanvas::SaveLayerRec(r.bounds,
147 // The interesting part here is how to calculate bounds for ops which don't
148 // have intrinsic bounds. What is the bounds of a Save or a Translate?
150 // We answer this by thinking about a particular definition of bounds: if I
152 // the bounds of a Save, a Translate, a Restore, etc. are the union of the
153 // bounds of Draw* ops that they might have an effect on. For any given
154 // Save/Restore block, the bounds of the Save, the Restore, and any other
155 // non-drawing ("control") ops inside are exactly the union of the bounds o
165 FillBounds(const SkRect& cullRect, const SkRecord& record, SkRect bounds[]) argument
233 Bounds bounds; // Bounds of everything in the block. member in struct:SkRecords::FillBounds::SaveBounds
381 popControl(const Bounds& bounds) argument
386 updateSaveBounds(const Bounds& bounds) argument
393 Bounds bounds(const Flush&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds
396 Bounds bounds(const DrawText&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds
398 Bounds bounds(const DrawPaint&) const { return fCurrentClipBounds; } function in class:SkRecords::FillBounds
399 Bounds bounds(const NoOp&) const { return Bounds::MakeEmpty(); } // NoOps don't draw. function in class:SkRecords::FillBounds
401 Bounds bounds(const DrawRect& op) const { return this->adjustAndMap(op.rect, &op.paint); } function in class:SkRecords::FillBounds
402 Bounds bounds(const DrawRegion& op) const { function in class:SkRecords::FillBounds
406 Bounds bounds(const DrawOval& op) const { return this->adjustAndMap(op.oval, &op.paint); } function in class:SkRecords::FillBounds
408 Bounds bounds(const DrawArc& op) const { return this->adjustAndMap(op.oval, &op.paint); } function in class:SkRecords::FillBounds
409 Bounds bounds(const DrawRRect& op) const { function in class:SkRecords::FillBounds
412 Bounds bounds(const DrawDRRect& op) const { function in class:SkRecords::FillBounds
415 Bounds bounds(const DrawImage& op) const { function in class:SkRecords::FillBounds
421 Bounds bounds(const DrawImageLattice& op) const { function in class:SkRecords::FillBounds
424 Bounds bounds(const DrawImageRect& op) const { function in class:SkRecords::FillBounds
427 Bounds bounds(const DrawImageNine& op) const { function in class:SkRecords::FillBounds
430 Bounds bounds(const DrawPath& op) const { function in class:SkRecords::FillBounds
434 Bounds bounds(const DrawPoints& op) const { function in class:SkRecords::FillBounds
444 Bounds bounds(const DrawPatch& op) const { function in class:SkRecords::FillBounds
449 Bounds bounds(const DrawVertices& op) const { function in class:SkRecords::FillBounds
453 Bounds bounds(const DrawAtlas& op) const { function in class:SkRecords::FillBounds
463 Bounds bounds(const DrawShadowRec& op) const { function in class:SkRecords::FillBounds
464 SkRect bounds; local
469 Bounds bounds(const DrawPicture& op) const { function in class:SkRecords::FillBounds
475 Bounds bounds(const DrawPosText& op) const { function in class:SkRecords::FillBounds
486 Bounds bounds(const DrawPosTextH& op) const { function in class:SkRecords::FillBounds
501 Bounds bounds(const DrawTextOnPath& op) const { function in class:SkRecords::FillBounds
517 Bounds bounds(const DrawTextRSXform& op) const { function in class:SkRecords::FillBounds
525 Bounds bounds(const DrawTextBlob& op) const { function in class:SkRecords::FillBounds
531 Bounds bounds(const DrawDrawable& op) const { function in class:SkRecords::FillBounds
535 Bounds bounds(const DrawAnnotation& op) const { function in class:SkRecords::FillBounds
613 SkRecordFillBounds(const SkRect& cullRect, const SkRecord& record, SkRect bounds[]) argument
[all...]
H A DSkMiniRecorder.cpp29 // Calculate conservative bounds for each type of draw op that can be its own mini picture.
31 static SkRect adjust_for_paint(SkRect bounds, const SkPaint& paint) { argument
32 return paint.canComputeFastBounds() ? paint.computeFastBounds(bounds, &bounds)
35 static SkRect bounds(const DrawRect& op) { function
38 static SkRect bounds(const DrawPath& op) { function
42 static SkRect bounds(const DrawTextBlob& op) { function
43 return adjust_for_paint(op.blob->bounds().makeOffset(op.x, op.y), op.paint);
49 SkMiniPicture(const SkRect* cull, T* op) : fCull(cull ? *cull : bounds(*op)) {
/external/tensorflow/tensorflow/compiler/xla/tests/
H A Dbatch_normalization_test.cc363 std::vector<int64> bounds; member in struct:xla::__anon25717::BatchNormTestParam
371 os << "bounds={" << tensorflow::str_util::Join(p.bounds, ", ") << "}, ";
399 auto add_testcase = [&](std::vector<int64> bounds, int64 feature_index,
401 BatchNormTestParam p{bounds, feature_index, random_value_mean,
443 const std::vector<int64>& bounds = GetParam().bounds; local
444 Array4D<float> input_array(bounds[0], bounds[1], bounds[
543 const std::vector<int64>& bounds = GetParam().bounds; local
651 const std::vector<int64>& bounds = GetParam().bounds; local
[all...]

Completed in 656 milliseconds

1234567891011>>