Home
last modified time | relevance | path

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

1234567891011

/external/skqp/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 …]
DSkBlurMask.cpp120 dst->fBounds = SkIRect::MakeEmpty(); in BoxBlur()
121 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
145 dst->fBounds = src.fBounds; // restore trimmed bounds in BoxBlur()
146 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
161 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
167 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
174 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
181 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
194 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
200 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
[all …]
DSkMask.cpp26 return safeMul32(fBounds.height(), fRowBytes); in computeImageSize()
61 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination()
63 size_t dstH = safe.add(src.fBounds.height(), safe.add(radiusY, radiusY)); in PrepareDestination()
66 dst.fBounds.setEmpty(); in PrepareDestination()
69 dst.fBounds.set(0, 0, SkTo<int>(dstW), SkTo<int>(dstH)); in PrepareDestination()
70 dst.fBounds.offset(src.fBounds.x(), src.fBounds.y()); in PrepareDestination()
71 dst.fBounds.offset(-radiusX, -radiusY); in PrepareDestination()
107 SkASSERT(fBounds.contains(x, y)); in getAddr()
111 addr += (y - fBounds.fTop) * fRowBytes; in getAddr()
112 addr += (x - fBounds.fLeft) << maskFormatToShift(fFormat); in getAddr()
DSkAAClip.cpp142 fTop = fBottom = clip.fBounds.fBottom; in Iter()
155 fTop = clip.fBounds.fTop; in Iter()
156 fBottom = clip.fBounds.fTop + fCurrYOff->fY + 1; in Iter()
196 SkASSERT(fBounds.isEmpty()); in validate()
199 SkASSERT(!fBounds.isEmpty()); in validate()
207 const int lastY = fBounds.height() - 1; in validate()
219 size_t rowLength = compute_row_length(row, fBounds.width()); in validate()
253 const int width = fBounds.width(); in debug()
255 int y = fBounds.fTop; in debug()
363 const int width = fBounds.width(); in trimLeftRight()
[all …]
DSkCoverageDelta.cpp12 fBounds = bounds; in SkCoverageDeltaList()
66 fBounds = bounds; in SkCoverageDeltaMask()
69 fAntiRect.fY = fBounds.fBottom; in SkCoverageDeltaMask()
72 fExpandedWidth = ExpandWidth(fBounds.width()); in SkCoverageDeltaMask()
80 fDeltas = fDeltaStorage + PADDING - this->index(fBounds.fLeft, fBounds.fTop); in SkCoverageDeltaMask()
87 SkFixed* deltaRow = &this->delta(fBounds.fLeft, fBounds.fTop); in convertCoverageToAlpha()
89 for(int iy = 0; iy < fBounds.height(); ++iy) { in convertCoverageToAlpha()
91 if (fAntiRect.fHeight && iy == fAntiRect.fY - fBounds.fTop) { in convertCoverageToAlpha()
93 int L = fAntiRect.fX - fBounds.fLeft; in convertCoverageToAlpha()
95 sk_bzero(maskRow, fBounds.width()); in convertCoverageToAlpha()
[all …]
DSkCoverageDelta.h53 int top() const { return fBounds.fTop; } in top()
54 int bottom() const { return fBounds.fBottom; } in bottom()
55 int left() const { return fBounds.fLeft; } in left()
56 int right() const { return fBounds.fRight; } in right()
89 SkIRect fBounds; variable
93 void checkY(int y) const { SkASSERT(y >= fBounds.fTop && y < fBounds.fBottom); } in checkY()
130 int top() const { return fBounds.fTop; } in top()
131 int bottom() const { return fBounds.fBottom; } in bottom()
133 const SkIRect& getBounds() const { return fBounds; } in getBounds()
150 mask.fBounds = fBounds; in prepareSkMask()
[all …]
DSkRegion.cpp117 fBounds.set(0, 0, 0, 0); in SkRegion()
165 swap(fBounds, other.fBounds); in swap()
180 fBounds.set(0, 0, 0, 0); in setEmpty()
192 fBounds = r; in setRect()
201 fBounds = src.fBounds; in setRegion()
263 *itop = fBounds.fTop; in count_runtype_values()
264 *ibot = fBounds.fBottom; in count_runtype_values()
318 if (SkRegion::RunsAreARect(runs, count, &fBounds)) { in setRuns()
319 return this->setRect(fBounds); in setRuns()
334 fRunHead->computeRunBounds(&fBounds); in setRuns()
[all …]
DSkMask.h39 SkIRect fBounds; member
45 bool isEmpty() const { return fBounds.isEmpty(); } in isEmpty()
65 SkASSERT(fBounds.contains(x, y)); in getAddr1()
67 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
76 SkASSERT(fBounds.contains(x, y)); in getAddr8()
78 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
88 SkASSERT(fBounds.contains(x, y)); in getAddrLCD16()
90 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
91 return row + (x - fBounds.fLeft); in getAddrLCD16()
101 SkASSERT(fBounds.contains(x, y)); in getAddr32()
[all …]
DSkDraw_text.cpp57 SkRegion::Cliperator clipper(fRC->bwRgn(), mask.fBounds); in paintMasks()
62 bm.installPixels(SkImageInfo::MakeN32Premul(mask.fBounds.size()), in paintMasks()
65 this->drawSprite(bm, mask.fBounds.x(), mask.fBounds.y(), paint); in paintMasks()
80 const SkIRect* bounds = &mask.fBounds; in paintMasks()
84 if (!clipBounds.containsNoEmptyCheck(mask.fBounds)) { in paintMasks()
85 if (!storage.intersectNoEmptyCheck(mask.fBounds, clipBounds)) { in paintMasks()
93 bm.installPixels(SkImageInfo::MakeN32Premul(mask.fBounds.size()), in paintMasks()
96 this->drawSprite(bm, mask.fBounds.x(), mask.fBounds.y(), paint); in paintMasks()
/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 …]
DSkBlurMask.cpp120 dst->fBounds = SkIRect::MakeEmpty(); in BoxBlur()
121 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
145 dst->fBounds = src.fBounds; // restore trimmed bounds in BoxBlur()
146 dst->fRowBytes = dst->fBounds.width(); in BoxBlur()
161 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
167 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
174 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
181 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
194 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
200 src.fBounds.width(), src.fBounds.height()); in BoxBlur()
[all …]
DSkMask.cpp26 return safeMul32(fBounds.height(), fRowBytes); in computeImageSize()
61 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination()
63 size_t dstH = safe.add(src.fBounds.height(), safe.add(radiusY, radiusY)); in PrepareDestination()
66 dst.fBounds.setEmpty(); in PrepareDestination()
69 dst.fBounds.set(0, 0, SkTo<int>(dstW), SkTo<int>(dstH)); in PrepareDestination()
70 dst.fBounds.offset(src.fBounds.x(), src.fBounds.y()); in PrepareDestination()
71 dst.fBounds.offset(-radiusX, -radiusY); in PrepareDestination()
107 SkASSERT(fBounds.contains(x, y)); in getAddr()
111 addr += (y - fBounds.fTop) * fRowBytes; in getAddr()
112 addr += (x - fBounds.fLeft) << maskFormatToShift(fFormat); in getAddr()
DSkAAClip.cpp142 fTop = fBottom = clip.fBounds.fBottom; in Iter()
155 fTop = clip.fBounds.fTop; in Iter()
156 fBottom = clip.fBounds.fTop + fCurrYOff->fY + 1; in Iter()
196 SkASSERT(fBounds.isEmpty()); in validate()
199 SkASSERT(!fBounds.isEmpty()); in validate()
207 const int lastY = fBounds.height() - 1; in validate()
219 size_t rowLength = compute_row_length(row, fBounds.width()); in validate()
253 const int width = fBounds.width(); in debug()
255 int y = fBounds.fTop; in debug()
363 const int width = fBounds.width(); in trimLeftRight()
[all …]
DSkCoverageDelta.cpp12 fBounds = bounds; in SkCoverageDeltaList()
66 fBounds = bounds; in SkCoverageDeltaMask()
69 fAntiRect.fY = fBounds.fBottom; in SkCoverageDeltaMask()
72 fExpandedWidth = ExpandWidth(fBounds.width()); in SkCoverageDeltaMask()
80 fDeltas = fDeltaStorage + PADDING - this->index(fBounds.fLeft, fBounds.fTop); in SkCoverageDeltaMask()
87 SkFixed* deltaRow = &this->delta(fBounds.fLeft, fBounds.fTop); in convertCoverageToAlpha()
89 for(int iy = 0; iy < fBounds.height(); ++iy) { in convertCoverageToAlpha()
91 if (fAntiRect.fHeight && iy == fAntiRect.fY - fBounds.fTop) { in convertCoverageToAlpha()
93 int L = fAntiRect.fX - fBounds.fLeft; in convertCoverageToAlpha()
95 sk_bzero(maskRow, fBounds.width()); in convertCoverageToAlpha()
[all …]
DSkCoverageDelta.h53 int top() const { return fBounds.fTop; } in top()
54 int bottom() const { return fBounds.fBottom; } in bottom()
55 int left() const { return fBounds.fLeft; } in left()
56 int right() const { return fBounds.fRight; } in right()
89 SkIRect fBounds; variable
93 void checkY(int y) const { SkASSERT(y >= fBounds.fTop && y < fBounds.fBottom); } in checkY()
130 int top() const { return fBounds.fTop; } in top()
131 int bottom() const { return fBounds.fBottom; } in bottom()
133 const SkIRect& getBounds() const { return fBounds; } in getBounds()
150 mask.fBounds = fBounds; in prepareSkMask()
[all …]
DSkRegion.cpp117 fBounds.set(0, 0, 0, 0); in SkRegion()
165 swap(fBounds, other.fBounds); in swap()
180 fBounds.set(0, 0, 0, 0); in setEmpty()
192 fBounds = r; in setRect()
201 fBounds = src.fBounds; in setRegion()
263 *itop = fBounds.fTop; in count_runtype_values()
264 *ibot = fBounds.fBottom; in count_runtype_values()
318 if (SkRegion::RunsAreARect(runs, count, &fBounds)) { in setRuns()
319 return this->setRect(fBounds); in setRuns()
334 fRunHead->computeRunBounds(&fBounds); in setRuns()
[all …]
DSkMask.h39 SkIRect fBounds; member
45 bool isEmpty() const { return fBounds.isEmpty(); } in isEmpty()
65 SkASSERT(fBounds.contains(x, y)); in getAddr1()
67 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
76 SkASSERT(fBounds.contains(x, y)); in getAddr8()
78 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
88 SkASSERT(fBounds.contains(x, y)); in getAddrLCD16()
90 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
91 return row + (x - fBounds.fLeft); in getAddrLCD16()
101 SkASSERT(fBounds.contains(x, y)); in getAddr32()
[all …]
/external/skqp/src/gpu/
DGrGlyph.h62 , fBounds{BoundsFromSkGlyph(skGlyph)} {}
67 SkIntToScalar(fBounds.fLeft) + origin.x(), in destRect()
68 SkIntToScalar(fBounds.fTop) + origin.y(), in destRect()
69 SkIntToScalar(fBounds.width()), in destRect()
70 SkIntToScalar(fBounds.height())); in destRect()
76 SkIntToScalar(fBounds.fLeft) * textScale + origin.x(), in destRect()
77 SkIntToScalar(fBounds.fTop) * textScale + origin.y(), in destRect()
78 SkIntToScalar(fBounds.width()) * textScale, in destRect()
79 SkIntToScalar(fBounds.height()) * textScale); in destRect()
82 (SkIntToScalar(fBounds.fLeft) + SK_DistanceFieldInset) * textScale + origin.x(), in destRect()
[all …]
/external/skia/src/gpu/
DGrGlyph.h62 , fBounds{BoundsFromSkGlyph(skGlyph)} {}
67 SkIntToScalar(fBounds.fLeft) + origin.x(), in destRect()
68 SkIntToScalar(fBounds.fTop) + origin.y(), in destRect()
69 SkIntToScalar(fBounds.width()), in destRect()
70 SkIntToScalar(fBounds.height())); in destRect()
76 SkIntToScalar(fBounds.fLeft) * textScale + origin.x(), in destRect()
77 SkIntToScalar(fBounds.fTop) * textScale + origin.y(), in destRect()
78 SkIntToScalar(fBounds.width()) * textScale, in destRect()
79 SkIntToScalar(fBounds.height()) * textScale); in destRect()
82 (SkIntToScalar(fBounds.fLeft) + SK_DistanceFieldInset) * textScale + origin.x(), in destRect()
[all …]
/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/skqp/tests/
DBlitMaskClip.cpp20 : fBounds(bounds) in TestBlitter()
25 REPORTER_ASSERT(fReporter, x >= fBounds.fLeft && x < fBounds.fRight); in blitH()
26 REPORTER_ASSERT(fReporter, y >= fBounds.fTop && y < fBounds.fBottom); in blitH()
28 REPORTER_ASSERT(fReporter, right > fBounds.fLeft && right <= fBounds.fRight); in blitH()
36 SkIRect fBounds; member in TestBlitter
55 mask.fBounds = b; in DEF_TEST()
59 TestBlitter tb(mask.fBounds, reporter); in DEF_TEST()
/external/skia/tests/
DBlitMaskClip.cpp20 : fBounds(bounds) in TestBlitter()
25 REPORTER_ASSERT(fReporter, x >= fBounds.fLeft && x < fBounds.fRight); in blitH()
26 REPORTER_ASSERT(fReporter, y >= fBounds.fTop && y < fBounds.fBottom); in blitH()
28 REPORTER_ASSERT(fReporter, right > fBounds.fLeft && right <= fBounds.fRight); in blitH()
36 SkIRect fBounds; member in TestBlitter
55 mask.fBounds = b; in DEF_TEST()
59 TestBlitter tb(mask.fBounds, reporter); in DEF_TEST()
/external/skqp/src/ports/
DSkFontHost_FreeType_common.cpp105 SkASSERT(mask.fBounds.width() == static_cast<int>(bitmap.width)); in copyFT2LCD16()
108 SkASSERT(mask.fBounds.height() == static_cast<int>(bitmap.rows)); in copyFT2LCD16()
115 const int width = mask.fBounds.width(); in copyFT2LCD16()
116 const int height = mask.fBounds.height(); in copyFT2LCD16()
138 SkASSERT(3 * mask.fBounds.width() == static_cast<int>(bitmap.width)); in copyFT2LCD16()
161 SkASSERT(3 * mask.fBounds.height() == static_cast<int>(bitmap.rows)); in copyFT2LCD16()
203 SkASSERTF(dstMask.fBounds.width() == static_cast<int>(srcFTBitmap.width), in copyFTBitmap()
206 dstMask.fBounds.width(), in copyFTBitmap()
209 SkASSERTF(dstMask.fBounds.height() == static_cast<int>(srcFTBitmap.rows), in copyFTBitmap()
212 dstMask.fBounds.height(), in copyFTBitmap()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp105 SkASSERT(mask.fBounds.width() == static_cast<int>(bitmap.width)); in copyFT2LCD16()
108 SkASSERT(mask.fBounds.height() == static_cast<int>(bitmap.rows)); in copyFT2LCD16()
115 const int width = mask.fBounds.width(); in copyFT2LCD16()
116 const int height = mask.fBounds.height(); in copyFT2LCD16()
138 SkASSERT(3 * mask.fBounds.width() == static_cast<int>(bitmap.width)); in copyFT2LCD16()
161 SkASSERT(3 * mask.fBounds.height() == static_cast<int>(bitmap.rows)); in copyFT2LCD16()
203 SkASSERTF(dstMask.fBounds.width() == static_cast<int>(srcFTBitmap.width), in copyFTBitmap()
206 dstMask.fBounds.width(), in copyFTBitmap()
209 SkASSERTF(dstMask.fBounds.height() == static_cast<int>(srcFTBitmap.rows), in copyFTBitmap()
212 dstMask.fBounds.height(), in copyFTBitmap()
[all …]

1234567891011