Home
last modified time | relevance | path

Searched refs:fBounds (Results 1 – 25 of 120) sorted by relevance

12345

/external/skia/src/core/
DSkMaskFilter.cpp43 SkASSERT(src.fBounds.contains(dst->fBounds)); in extractMaskSubset()
45 const int dx = dst->fBounds.left() - src.fBounds.left(); in extractMaskSubset()
46 const int dy = dst->fBounds.top() - src.fBounds.top(); in extractMaskSubset()
69 for (int y = mask.fBounds.top(); y < mask.fBounds.bottom(); ++y) {
70 for (int x = mask.fBounds.left(); x < mask.fBounds.right(); ++x) {
87 m.fBounds = mask.fBounds; in draw_nine_clipped()
88 m.fBounds.fRight = cx; in draw_nine_clipped()
89 m.fBounds.fBottom = cy; in draw_nine_clipped()
90 if (m.fBounds.width() > 0 && m.fBounds.height() > 0) { in draw_nine_clipped()
92 m.fBounds.offsetTo(outerR.left(), outerR.top()); in draw_nine_clipped()
[all …]
DSkRegion.cpp72 fBounds.set(0, 0, 0, 0); in SkRegion()
122 SkTSwap<SkIRect>(fBounds, other.fBounds); in swap()
137 fBounds.set(0, 0, 0, 0); in setEmpty()
148 fBounds.set(left, top, right, bottom); in setRect()
161 fBounds = src.fBounds; in setRegion()
223 *itop = fBounds.fTop; in count_runtype_values()
224 *ibot = fBounds.fBottom; in count_runtype_values()
278 if (SkRegion::RunsAreARect(runs, count, &fBounds)) { in setRuns()
279 return this->setRect(fBounds); in setRuns()
294 fRunHead->computeRunBounds(&fBounds); in setRuns()
[all …]
DSkAAClip.cpp137 fTop = fBottom = clip.fBounds.fBottom; in Iter()
150 fTop = clip.fBounds.fTop; in Iter()
151 fBottom = clip.fBounds.fTop + fCurrYOff->fY + 1; in Iter()
191 SkASSERT(fBounds.isEmpty()); in validate()
194 SkASSERT(!fBounds.isEmpty()); in validate()
202 const int lastY = fBounds.height() - 1; in validate()
214 size_t rowLength = compute_row_length(row, fBounds.width()); in validate()
248 const int width = fBounds.width(); in debug()
250 int y = fBounds.fTop; in debug()
445 const int width = fBounds.width(); in trimLeftRight()
[all …]
DSkRTree.cpp14 return fRoot.fBounds; in getRootBound()
33 b->fBounds = bounds; in insert()
45 fRoot.fBounds = branches[0].fBounds; in insert()
147 b.fBounds = (*branches)[currentBranch].fBounds; in bulkLoad()
151 b.fBounds.join((*branches)[currentBranch].fBounds); in bulkLoad()
165 if (fCount > 0 && SkRect::Intersects(fRoot.fBounds, query)) { in search()
172 if (SkRect::Intersects(node->fChildren[i].fBounds, query)) { in search()
DSkScalerContext.cpp34 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask()
143 glyph->fLeft = mask.fBounds.fLeft; in getMetrics()
144 glyph->fTop = mask.fBounds.fTop; in getMetrics()
145 glyph->fWidth = SkToU16(mask.fBounds.width()); in getMetrics()
146 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics()
194 if (dst.fBounds.isEmpty() || !dst.fBounds.is16Bit()) { in getMetrics()
198 glyph->fLeft = dst.fBounds.fLeft; in getMetrics()
199 glyph->fTop = dst.fBounds.fTop; in getMetrics()
200 glyph->fWidth = SkToU16(dst.fBounds.width()); in getMetrics()
201 glyph->fHeight = SkToU16(dst.fBounds.height()); in getMetrics()
[all …]
DSkRecordedDrawable.cpp40 return new SkBigPicture(fBounds, SkRef(fRecord.get()), pictList, SkSafeRef(fBBH.get()), in onNewPictureSnapshot()
46 buffer.writeRect(fBounds); in flatten()
50 SkPictureRecord pictureRecord(SkISize::Make(fBounds.width(), fBounds.height()), 0); in flatten()
54 if (pictureRecord.getLocalClipBounds().contains(fBounds)) { in flatten()
DSkMask.cpp26 return safeMul32(fBounds.height(), fRowBytes); in computeImageSize()
81 SkASSERT(fBounds.contains(x, y)); in getAddr()
85 addr += (y - fBounds.fTop) * fRowBytes; in getAddr()
86 addr += (x - fBounds.fLeft) << maskFormatToShift(fFormat); in getAddr()
DSkPathRef.cpp160 matrix.mapRect(&(*dst)->fBounds, src.fBounds); in CreateTransformedCopy()
161 if (!((*dst)->fIsFinite = (*dst)->fBounds.isFinite())) { in CreateTransformedCopy()
162 (*dst)->fBounds.setEmpty(); in CreateTransformedCopy()
166 (*dst)->fBounds.setEmpty(); in CreateTransformedCopy()
264 !buffer->read(&ref->fBounds, sizeof(SkRect))) { in CreateFromBuffer()
277 if (ComputePtBounds(&bounds, *ref) != SkToBool(ref->fIsFinite) || bounds != ref->fBounds) { in CreateFromBuffer()
411 fBounds = ref.fBounds; in copy()
752 if (!fBoundsIsDirty && !fBounds.isEmpty()) { in validate()
754 Sk2s leftTop = Sk2s(fBounds.fLeft, fBounds.fTop); in validate()
755 Sk2s rightBot = Sk2s(fBounds.fRight, fBounds.fBottom); in validate()
[all …]
/external/skia/include/core/
DSkMask.h35 SkIRect fBounds; member
41 bool isEmpty() const { return fBounds.isEmpty(); } in isEmpty()
61 SkASSERT(fBounds.contains(x, y)); in getAddr1()
63 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
72 SkASSERT(fBounds.contains(x, y)); in getAddr8()
74 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
84 SkASSERT(fBounds.contains(x, y)); in getAddrLCD16()
86 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
87 return row + (x - fBounds.fLeft); in getAddrLCD16()
97 SkASSERT(fBounds.contains(x, y)); in getAddr32()
[all …]
DSkRegion.h85 const SkIRect& getBounds() const { return fBounds; } in getBounds()
196 SkASSERT(this->isEmpty() == fBounds.isEmpty()); // valid region in quickContains()
201 fBounds.fLeft <= left && fBounds.fTop <= top && in quickContains()
202 fBounds.fRight >= right && fBounds.fBottom >= bottom; in quickContains()
212 !SkIRect::Intersects(fBounds, rect); in quickReject()
222 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
260 if (!fBounds.intersect(rect)) { in op()
420 SkIRect fBounds; variable
/external/dng_sdk/source/
Ddng_simple_image.cpp90 fBounds.t = 0; in Trim()
91 fBounds.l = 0; in Trim()
93 fBounds.b = r.H (); in Trim()
94 fBounds.r = r.W (); in Trim()
98 fBuffer.fArea = fBounds; in Trim()
107 int32 originH = fBounds.l; in Rotate()
108 int32 originV = fBounds.t; in Rotate()
113 uint32 width = fBounds.W (); in Rotate()
114 uint32 height = fBounds.H (); in Rotate()
142 width = fBounds.H (); in Rotate()
[all …]
Ddng_image.cpp94 : fBounds (bounds) in dng_image()
198 return fBounds; in RepeatingTile()
502 dng_rect overlap = buffer.fArea & fBounds; in Get()
531 areaT.b = Min_int32 (areaT.b, fBounds.t); in Get()
532 areaL.r = Min_int32 (areaL.r, fBounds.l); in Get()
533 areaB.t = Max_int32 (areaB.t, fBounds.b); in Get()
534 areaR.l = Max_int32 (areaR.l, fBounds.r); in Get()
539 areaH.l = Max_int32 (areaH.l, fBounds.l); in Get()
540 areaH.r = Min_int32 (areaH.r, fBounds.r); in Get()
542 areaV.t = Max_int32 (areaV.t, fBounds.t); in Get()
[all …]
/external/skia/tests/
DBlitMaskClip.cpp16 : fBounds(bounds) in TestBlitter()
21 REPORTER_ASSERT(fReporter, x >= fBounds.fLeft && x < fBounds.fRight); in blitH()
22 REPORTER_ASSERT(fReporter, y >= fBounds.fTop && y < fBounds.fBottom); in blitH()
24 REPORTER_ASSERT(fReporter, right > fBounds.fLeft && right <= fBounds.fRight); in blitH()
32 SkIRect fBounds; member in TestBlitter
51 mask.fBounds = b; in DEF_TEST()
55 TestBlitter tb(mask.fBounds, reporter); in DEF_TEST()
DMaskCacheTest.cpp48 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST()
61 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST()
86 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST()
99 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST()
/external/skia/src/gpu/ops/
DGrOp.h77 return fBounds; in bounds()
81 fBounds = clippedBounds; in setClippedBounds()
150 fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); in dumpInfo()
173 fBounds = newBounds; in setBounds()
178 m.mapRect(&fBounds, srcBounds); in setTransformedBounds()
189 return fBounds.joinPossiblyEmptyRect(that.fBounds); in joinBounds()
193 fBounds = that.fBounds; in replaceBounds()
237 SkRect fBounds; variable
/external/skia/src/effects/
DSkBlurMask.cpp527 dst->fBounds.set(src.fBounds.fLeft - padx, src.fBounds.fTop - pady, in BoxBlur()
528 src.fBounds.fRight + padx, src.fBounds.fBottom + pady); in BoxBlur()
530 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
540 int sw = src.fBounds.width(); in BoxBlur()
541 int sh = src.fBounds.height(); in BoxBlur()
606 dst->fBounds = src.fBounds; // restore trimmed bounds in BoxBlur()
749 dst->fBounds.set(SkScalarRoundToInt(src.fLeft - pad), in BlurRect()
754 dst->fRowBytes = dst->fBounds.width(); in BlurRect()
763 dst->fBounds.set(SkScalarRoundToInt(src.fLeft), in BlurRect()
783 int dstHeight = dst->fBounds.height(); in BlurRect()
[all …]
DSkLayerRasterizer.cpp85 bounds->join(mask.fBounds); in compute_bounds()
99 if (!compute_bounds(*fLayers, path, matrix, clipBounds, &mask->fBounds)) in onRasterize()
105 mask->fRowBytes = mask->fBounds.width(); in onRasterize()
124 rectClip.setRect(SkIRect::MakeWH(mask->fBounds.width(), mask->fBounds.height())); in onRasterize()
127 translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft), in onRasterize()
128 -SkIntToScalar(mask->fBounds.fTop)); in onRasterize()
DSkTableMaskFilter.cpp33 dst->fBounds = src.fBounds; in filterMask()
34 dst->fRowBytes = SkAlign4(dst->fBounds.width()); in filterMask()
44 int dstWidth = dst->fBounds.width(); in filterMask()
47 for (int y = dst->fBounds.height() - 1; y >= 0; --y) { in filterMask()
/external/skia/src/pathops/
DSkOpContour.h25 return fBounds.fTop == rh.fBounds.fTop
26 ? fBounds.fLeft < rh.fBounds.fLeft
27 : fBounds.fTop < rh.fBounds.fTop;
59 return fBounds; in bounds()
284 SkDEBUGCODE(fBounds.set(SK_ScalarMax, SK_ScalarMax, SK_ScalarMin, SK_ScalarMin)); in reset()
307 fBounds = segment->bounds(); in setBounds()
309 fBounds.add(segment->bounds()); in setBounds()
378 SkPathOpsBounds fBounds; variable
DSkOpSegment.h27 return fBounds.fTop < rh.fBounds.fTop;
48 curve.setConicBounds(pts, weight, 0, 1, &fBounds); in addConic()
56 curve.setCubicBounds(pts, 1, 0, 1, &fBounds); in addCubic()
74 fBounds.set(pts, 2); in addLine()
91 curve.setQuadBounds(pts, 1, 0, 1, &fBounds); in addQuad()
103 return fBounds; in bounds()
255 return fBounds.fTop == fBounds.fBottom; in isHorizontal()
263 return fBounds.fLeft == fBounds.fRight; in isVertical()
439 SkPathOpsBounds fBounds; // tight bounds variable
/external/skia/src/gpu/
DGrGlyph.h39 GrIRect16 fBounds; member
47 fBounds.set(bounds); in init()
60 int width() const { return fBounds.width(); } in width()
61 int height() const { return fBounds.height(); } in height()
62 bool isEmpty() const { return fBounds.isEmpty(); } in isEmpty()
DGrAuditTrail.cpp18 auditOp->fBounds = op->bounds(); in addOp()
48 opNode->fBounds = op->bounds(); in addOp()
79 consumerOp.fBounds = consumer->bounds(); in opsCombined()
91 outOpInfo->fBounds = bn->fBounds; in copyOutFromOpList()
96 outOp.fBounds = currentOp->fBounds; in copyOutFromOpList()
271 skrect_to_json(&json, "Bounds", fBounds); in toJson()
290 skrect_to_json(&json, "Bounds", fBounds); in toJson()
DGrPath.h26 , fBounds(SkRect::MakeEmpty()) in GrPath()
37 const SkRect& getBounds() const { return fBounds; } in getBounds()
46 SkRect fBounds;
/external/skia/samplecode/
DSampleStrokePath.cpp54 src.fBounds.set(0, 0, x, y);
55 src.fRowBytes = src.fBounds.width();
59 printf("src [%d %d %d %d] radius %g\n", src.fBounds.fLeft, src.fBounds.fTop,
60 src.fBounds.fRight, src.fBounds.fBottom, radius);
65 for (int y = 0; y < dst.fBounds.height(); y++) {
66 for (int x = 0; x < dst.fBounds.width(); x++) {
DSampleQuadStroker.cpp87 SkRect fBounds; member
110 SkRect fBounds; member in QuadStrokerView
226 fCubicButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
228 fConicButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
230 fQuadButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
232 fArcButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
234 fRRectButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
236 fCircleButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
238 fTextButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange()
264 fBounds.set(0, 0, SkIntToScalar(width * zoom), SkIntToScalar(height * zoom)); in setWHZ()
[all …]

12345