/external/skia/src/core/ |
D | SkMaskFilter.cpp | 43 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 …]
|
D | SkRegion.cpp | 73 fBounds.set(0, 0, 0, 0); in SkRegion() 123 SkTSwap<SkIRect>(fBounds, other.fBounds); in swap() 138 fBounds.set(0, 0, 0, 0); in setEmpty() 149 fBounds.set(left, top, right, bottom); in setRect() 162 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() 293 fRunHead->computeRunBounds(&fBounds); in setRuns() [all …]
|
D | SkAAClip.cpp | 138 fTop = fBottom = clip.fBounds.fBottom; in Iter() 151 fTop = clip.fBounds.fTop; in Iter() 152 fBottom = clip.fBounds.fTop + fCurrYOff->fY + 1; in Iter() 192 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() 481 fBounds.fLeft += leftZeros; in trimLeftRight() [all …]
|
D | SkPathRef.cpp | 90 matrix.mapRect(&(*dst)->fBounds, src.fBounds); in CreateTransformedCopy() 91 if (!((*dst)->fIsFinite = (*dst)->fBounds.isFinite())) { in CreateTransformedCopy() 92 (*dst)->fBounds.setEmpty(); in CreateTransformedCopy() 96 (*dst)->fBounds.setEmpty(); in CreateTransformedCopy() 142 !buffer->read(&ref->fBounds, sizeof(SkRect))) { in CreateFromBuffer() 277 fBounds = ref.fBounds; in copy() 452 if (!fBoundsIsDirty && !fBounds.isEmpty()) { in validate() 457 (fPoints[i].fX < fBounds.fLeft || fPoints[i].fX > fBounds.fRight || in validate() 458 fPoints[i].fY < fBounds.fTop || fPoints[i].fY > fBounds.fBottom)) { in validate() 460 fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); in validate() [all …]
|
D | SkRTree.cpp | 14 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()
|
D | SkScalerContext.cpp | 32 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight); in toMask() 161 glyph->fLeft = mask.fBounds.fLeft; in getMetrics() 162 glyph->fTop = mask.fBounds.fTop; in getMetrics() 163 glyph->fWidth = SkToU16(mask.fBounds.width()); in getMetrics() 164 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics() 212 if (dst.fBounds.isEmpty() || !dst.fBounds.is16Bit()) { in getMetrics() 216 glyph->fLeft = dst.fBounds.fLeft; in getMetrics() 217 glyph->fTop = dst.fBounds.fTop; in getMetrics() 218 glyph->fWidth = SkToU16(dst.fBounds.width()); in getMetrics() 219 glyph->fHeight = SkToU16(dst.fBounds.height()); in getMetrics() [all …]
|
D | SkMask.cpp | 24 return safeMul32(fBounds.height(), fRowBytes); in computeImageSize() 79 SkASSERT(fBounds.contains(x, y)); in getAddr() 83 addr += (y - fBounds.fTop) * fRowBytes; in getAddr() 84 addr += (x - fBounds.fLeft) << maskFormatToShift(fFormat); in getAddr()
|
/external/skia/src/animator/ |
D | SkBoundable.cpp | 16 fBounds.fTop = 0; in SkBoundable() 17 fBounds.fRight = 0; in SkBoundable() 18 fBounds.fBottom = 0; in SkBoundable() 22 fBounds.fLeft = 0x7fff; in clearBounder() 27 if (fBounds.fLeft == (int16_t)0x8000U) { in getBounds() 31 rect->fLeft = SkIntToScalar(fBounds.fLeft); in getBounds() 32 rect->fTop = SkIntToScalar(fBounds.fTop); in getBounds() 33 rect->fRight = SkIntToScalar(fBounds.fRight); in getBounds() 34 rect->fBottom = SkIntToScalar(fBounds.fBottom); in getBounds() 38 fBounds.fLeft = 0; in enableBounder() [all …]
|
D | SkBoundable.h | 22 bool hasBounds() { return fBounds.fLeft != (int16_t)0x8000U; } in hasBounds() 23 void setBounds(SkIRect& bounds) { fBounds = bounds; } in setBounds() 25 void clearBounds() { fBounds.fLeft = (int16_t) SkToU16(0x8000); }; // mark bounds as unset in clearBounds() 26 SkIRect fBounds; variable
|
D | SkDisplayBounds.cpp | 30 fBounds.setEmpty(); in draw() 34 if (inval && fBounds.isEmpty() == false) { in draw() 38 rect = fBounds; in draw() 40 rect.join(fBounds); in draw()
|
/external/skia/include/core/ |
D | SkMask.h | 33 SkIRect fBounds; member 39 bool isEmpty() const { return fBounds.isEmpty(); } in isEmpty() 59 SkASSERT(fBounds.contains(x, y)); in getAddr1() 61 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1() 70 SkASSERT(fBounds.contains(x, y)); in getAddr8() 72 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8() 82 SkASSERT(fBounds.contains(x, y)); in getAddrLCD16() 84 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16() 85 return row + (x - fBounds.fLeft); in getAddrLCD16() 95 SkASSERT(fBounds.contains(x, y)); in getAddr32() [all …]
|
D | SkRegion.h | 85 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() 412 SkIRect fBounds; variable
|
/external/skia/src/pathops/ |
D | SkOpContour.h | 32 return fBounds.fTop == rh.fBounds.fTop 33 ? fBounds.fLeft < rh.fBounds.fLeft 34 : fBounds.fTop < rh.fBounds.fTop; 87 return fBounds; in bounds() 287 SkDEBUGCODE(fBounds.set(SK_ScalarMax, SK_ScalarMax, SK_ScalarMin, SK_ScalarMin)); in reset() 295 fBounds = segment->bounds(); in setBounds() 297 fBounds.add(segment->bounds()); in setBounds() 358 SkPathOpsBounds fBounds; variable
|
D | SkOpSegment.h | 32 return fBounds.fTop < rh.fBounds.fTop; 53 curve.setConicBounds(pts, weight, 0, 1, &fBounds); in addConic() 61 curve.setCubicBounds(pts, 1, 0, 1, &fBounds); in addCubic() 77 fBounds.set(pts, 2); in addLine() 94 curve.setQuadBounds(pts, 1, 0, 1, &fBounds); in addQuad() 103 return fBounds; in bounds() 213 return fBounds.fTop == fBounds.fBottom; in isHorizontal() 221 return fBounds.fLeft == fBounds.fRight; in isVertical() 389 SkPathOpsBounds fBounds; // tight bounds variable
|
/external/skia/src/effects/ |
D | SkBlurMask.cpp | 528 dst->fBounds.set(src.fBounds.fLeft - padx, src.fBounds.fTop - pady, in BoxBlur() 529 src.fBounds.fRight + padx, src.fBounds.fBottom + pady); in BoxBlur() 531 dst->fRowBytes = dst->fBounds.width(); in BoxBlur() 541 int sw = src.fBounds.width(); in BoxBlur() 542 int sh = src.fBounds.height(); in BoxBlur() 607 dst->fBounds = src.fBounds; // restore trimmed bounds in BoxBlur() 750 dst->fBounds.set(SkScalarRoundToInt(src.fLeft - pad), in BlurRect() 755 dst->fRowBytes = dst->fBounds.width(); in BlurRect() 764 dst->fBounds.set(SkScalarRoundToInt(src.fLeft), in BlurRect() 786 int dstHeight = dst->fBounds.height(); in BlurRect() [all …]
|
D | SkTableMaskFilter.cpp | 33 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()
|
D | SkLayerRasterizer.cpp | 89 bounds->join(mask.fBounds); in compute_bounds() 103 if (!compute_bounds(*fLayers, path, matrix, clipBounds, &mask->fBounds)) in onRasterize() 109 mask->fRowBytes = mask->fBounds.width(); in onRasterize() 125 rectClip.setRect(SkIRect::MakeWH(mask->fBounds.width(), mask->fBounds.height())); in onRasterize() 128 translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft), in onRasterize() 129 -SkIntToScalar(mask->fBounds.fTop)); in onRasterize()
|
/external/skia/src/gpu/ |
D | GrGlyph.h | 40 GrIRect16 fBounds; member 49 fBounds.set(bounds); in init() 62 int width() const { return fBounds.width(); } in width() 63 int height() const { return fBounds.height(); } in height() 64 bool isEmpty() const { return fBounds.isEmpty(); } in isEmpty()
|
D | GrPath.h | 27 fBounds(skPath.getBounds()) { in GrPath() 37 const SkRect& getBounds() const { return fBounds; } in getBounds() 44 SkRect fBounds; variable
|
/external/skia/samplecode/ |
D | SampleStrokePath.cpp | 55 src.fBounds.set(0, 0, x, y); 56 src.fRowBytes = src.fBounds.width(); 60 printf("src [%d %d %d %d] radius %g\n", src.fBounds.fLeft, src.fBounds.fTop, 61 src.fBounds.fRight, src.fBounds.fBottom, radius); 66 for (int y = 0; y < dst.fBounds.height(); y++) { 67 for (int x = 0; x < dst.fBounds.width(); x++) {
|
D | SampleQuadStroker.cpp | 83 SkRect fBounds; member 105 SkRect fBounds; member in QuadStrokerView 210 fCubicButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange() 212 fConicButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange() 214 fQuadButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange() 216 fRRectButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange() 218 fCircleButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange() 220 fTextButton.fBounds.setXYWH(this->width() - 50, SkIntToScalar(buttonOffset), 30, 30); in onSizeChange() 246 fBounds.set(0, 0, SkIntToScalar(width * zoom), SkIntToScalar(height * zoom)); in setWHZ() 399 canvas->drawRect(button.fBounds, paint); in draw_button() [all …]
|
/external/skia/gm/ |
D | blurrect.cpp | 313 center_x = (canvas_size.fWidth - mask.fBounds.width())/2; in onDraw() 314 center_y = (canvas_size.fHeight - mask.fBounds.height())/2; in onDraw() 350 r.roundOut(&src.fBounds); in makeMask() 351 src.fBounds.offset(-src.fBounds.fLeft, -src.fBounds.fTop); // move to origin in makeMask() 353 src.fRowBytes = src.fBounds.width(); in makeMask() 396 r.roundOut(&src.fBounds); in makeMask() 397 src.fBounds.offset(-src.fBounds.fLeft, -src.fBounds.fTop); // move to origin in makeMask() 399 src.fRowBytes = src.fBounds.width(); in makeMask()
|
D | beziereffects.cpp | 35 SkRect fBounds; member 48 : INHERITED(gp, geo.fBounds) { in BezierCubicOrConicTestBatch() 81 verts[0].fPosition.setRectFan(fGeometry.fBounds.fLeft, fGeometry.fBounds.fTop, in onGenerateGeometry() 82 fGeometry.fBounds.fRight, fGeometry.fBounds.fBottom, in onGenerateGeometry() 227 geometry.fBounds = bounds; in onDraw() 372 geometry.fBounds = bounds; in onDraw() 434 SkRect fBounds; member 447 : INHERITED(gp, geo.fBounds) in BezierQuadTestBatch() 475 verts[0].fPosition.setRectFan(fGeometry.fBounds.fLeft, fGeometry.fBounds.fTop, in onGenerateGeometry() 476 fGeometry.fBounds.fRight, fGeometry.fBounds.fBottom, in onGenerateGeometry() [all …]
|
/external/skia/tests/ |
D | MaskCacheTest.cpp | 48 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()
|
D | PictureTest.cpp | 390 REPORTER_ASSERT(reporter, kWidth == info0.fBounds.width() && in test_savelayer_extraction() 391 kHeight == info0.fBounds.height()); in test_savelayer_extraction() 394 REPORTER_ASSERT(reporter, 0 == info0.fBounds.fLeft && 0 == info0.fBounds.fTop); in test_savelayer_extraction() 399 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.width() && in test_savelayer_extraction() 400 kHeight/2.0 == info1.fBounds.height()); in test_savelayer_extraction() 403 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.fLeft && in test_savelayer_extraction() 404 kHeight/2.0 == info1.fBounds.fTop); in test_savelayer_extraction() 410 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.width() && in test_savelayer_extraction() 411 kHeight / 2 == info2.fBounds.height()); // bound reduces size in test_savelayer_extraction() 414 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.fLeft && // translated in test_savelayer_extraction() [all …]
|