Home
last modified time | relevance | path

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

123456

/external/skia/src/core/
DSkMaskFilter.cpp41 SkASSERT(src.fBounds.contains(dst->fBounds)); in extractMaskSubset()
43 const int dx = dst->fBounds.left() - src.fBounds.left(); in extractMaskSubset()
44 const int dy = dst->fBounds.top() - src.fBounds.top(); in extractMaskSubset()
67 for (int y = mask.fBounds.top(); y < mask.fBounds.bottom(); ++y) {
68 for (int x = mask.fBounds.left(); x < mask.fBounds.right(); ++x) {
85 m.fBounds = mask.fBounds; in draw_nine_clipped()
86 m.fBounds.fRight = cx; in draw_nine_clipped()
87 m.fBounds.fBottom = cy; in draw_nine_clipped()
88 if (m.fBounds.width() > 0 && m.fBounds.height() > 0) { in draw_nine_clipped()
90 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.cpp15 return fRoot.fBounds; in getRootBound()
34 b->fBounds = bounds; in insert()
46 fRoot.fBounds = branches[0].fBounds; in insert()
148 b.fBounds = (*branches)[currentBranch].fBounds; in bulkLoad()
152 b.fBounds.join((*branches)[currentBranch].fBounds); in bulkLoad()
166 if (fCount > 0 && SkRect::Intersects(fRoot.fBounds, query)) { in search()
173 if (SkRect::Intersects(node->fChildren[i].fBounds, query)) { in search()
DSkScalerContext.cpp35 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask()
144 glyph->fLeft = mask.fBounds.fLeft; in getMetrics()
145 glyph->fTop = mask.fBounds.fTop; in getMetrics()
146 glyph->fWidth = SkToU16(mask.fBounds.width()); in getMetrics()
147 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics()
195 if (dst.fBounds.isEmpty() || !dst.fBounds.is16Bit()) { in getMetrics()
199 glyph->fLeft = dst.fBounds.fLeft; in getMetrics()
200 glyph->fTop = dst.fBounds.fTop; in getMetrics()
201 glyph->fWidth = SkToU16(dst.fBounds.width()); in getMetrics()
202 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()
269 !buffer->read(&ref->fBounds, sizeof(SkRect))) { in CreateFromBuffer()
282 if (ComputePtBounds(&bounds, *ref) != SkToBool(ref->fIsFinite) || bounds != ref->fBounds) { in CreateFromBuffer()
416 fBounds = ref.fBounds; in copy()
757 if (!fBoundsIsDirty && !fBounds.isEmpty()) { in validate()
759 Sk2s leftTop = Sk2s(fBounds.fLeft, fBounds.fTop); in validate()
760 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.h78 return fBounds; in bounds()
82 fBounds = clippedBounds; in setClippedBounds()
151 fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); in dumpInfo()
176 fBounds = newBounds; in setBounds()
181 m.mapRect(&fBounds, srcBounds); in setTransformedBounds()
192 return fBounds.joinPossiblyEmptyRect(that.fBounds); in joinBounds()
196 fBounds = that.fBounds; in replaceBounds()
240 SkRect fBounds; variable
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp85 SkASSERT(mask.fBounds.width() == static_cast<int>(bitmap.width)); in copyFT2LCD16()
88 SkASSERT(mask.fBounds.height() == static_cast<int>(bitmap.rows)); in copyFT2LCD16()
95 const int width = mask.fBounds.width(); in copyFT2LCD16()
96 const int height = mask.fBounds.height(); in copyFT2LCD16()
118 SkASSERT(3 * mask.fBounds.width() == static_cast<int>(bitmap.width)); in copyFT2LCD16()
141 SkASSERT(3 * mask.fBounds.height() == static_cast<int>(bitmap.rows)); in copyFT2LCD16()
182 SkASSERTF(dstMask.fBounds.width() == static_cast<int>(srcFTBitmap.width), in copyFTBitmap()
185 dstMask.fBounds.width(), in copyFTBitmap()
188 SkASSERTF(dstMask.fBounds.height() == static_cast<int>(srcFTBitmap.rows), in copyFTBitmap()
191 dstMask.fBounds.height(), in copyFTBitmap()
[all …]
/external/skia/src/effects/
DSkBlurMask.cpp533 dst->fBounds.set(src.fBounds.fLeft - padx, src.fBounds.fTop - pady, in BoxBlur()
534 src.fBounds.fRight + padx, src.fBounds.fBottom + pady); in BoxBlur()
536 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
546 int sw = src.fBounds.width(); in BoxBlur()
547 int sh = src.fBounds.height(); in BoxBlur()
612 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
618 src.fBounds.width(), src.fBounds.height(), style); in BoxBlur()
623 dst->fBounds = src.fBounds; // restore trimmed bounds in BoxBlur()
770 dst->fBounds.set(SkScalarRoundToInt(src.fLeft - pad), in BlurRect()
775 dst->fRowBytes = dst->fBounds.width(); 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/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/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()
99 return fBounds; in bounds()
251 return fBounds.fTop == fBounds.fBottom; in isHorizontal()
259 return fBounds.fLeft == fBounds.fRight; in isVertical()
435 SkPathOpsBounds fBounds; // tight bounds variable
/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++) {

123456