Searched refs:fBounds (Results 1 - 25 of 86) sorted by relevance

1234

/external/skia/src/animator/
H A DSkBoundable.cpp16 fBounds.fTop = 0;
17 fBounds.fRight = 0;
18 fBounds.fBottom = 0;
22 fBounds.fLeft = 0x7fff;
27 if (fBounds.fLeft == (int16_t)0x8000U) {
31 rect->fLeft = SkIntToScalar(fBounds.fLeft);
32 rect->fTop = SkIntToScalar(fBounds.fTop);
33 rect->fRight = SkIntToScalar(fBounds.fRight);
34 rect->fBottom = SkIntToScalar(fBounds.fBottom);
38 fBounds
[all...]
H A DSkBoundable.h22 bool hasBounds() { return fBounds.fLeft != (int16_t)0x8000U; }
23 void setBounds(SkIRect& bounds) { fBounds = bounds; }
25 void clearBounds() { fBounds.fLeft = (int16_t) SkToU16(0x8000); }; // mark bounds as unset
26 SkIRect fBounds; member in class:SkBoundable
H A DSkDisplayBounds.cpp30 fBounds.setEmpty();
34 if (inval && fBounds.isEmpty() == false) {
38 rect = fBounds;
40 rect.join(fBounds);
/external/skia/include/core/
H A DSkMask.h33 SkIRect fBounds; member in struct:SkMask
39 bool isEmpty() const { return fBounds.isEmpty(); }
55 x,y are in the same coordiate space as fBounds.
59 SkASSERT(fBounds.contains(x, y));
61 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes;
66 x,y are in the same coordiate space as fBounds.
70 SkASSERT(fBounds.contains(x, y));
72 return fImage + x - fBounds.fLeft + (y - fBounds
[all...]
H A DSkRegion.h85 const SkIRect& getBounds() const { return fBounds; }
196 SkASSERT(this->isEmpty() == fBounds.isEmpty()); // valid region
200 /* fBounds.contains(left, top, right, bottom); */
201 fBounds.fLeft <= left && fBounds.fTop <= top &&
202 fBounds.fRight >= right && fBounds.fBottom >= bottom;
212 !SkIRect::Intersects(fBounds, rect);
222 !SkIRect::Intersects(fBounds, rgn.fBounds);
412 SkIRect fBounds; member in class:SkRegion
[all...]
H A DSkTextBlob.h28 const SkRect& bounds() const { return fBounds; }
103 const SkRect fBounds; member in class:SkTextBlob
202 SkRect fBounds; member in class:SkTextBlobBuilder
/external/skia/src/core/
H A DSkMaskFilter.cpp43 SkASSERT(src.fBounds.contains(dst->fBounds));
45 const int dx = dst->fBounds.left() - src.fBounds.left();
46 const int dy = dst->fBounds.top() - src.fBounds.top();
69 for (int y = mask.fBounds.top(); y < mask.fBounds.bottom(); ++y) {
70 for (int x = mask.fBounds.left(); x < mask.fBounds
[all...]
H A DSkMask.cpp24 return safeMul32(fBounds.height(), fRowBytes);
79 SkASSERT(fBounds.contains(x, y));
83 addr += (y - fBounds.fTop) * fRowBytes;
84 addr += (x - fBounds.fLeft) << maskFormatToShift(fFormat);
H A DSkRegion.cpp73 fBounds.set(0, 0, 0, 0);
123 SkTSwap<SkIRect>(fBounds, other.fBounds);
138 fBounds.set(0, 0, 0, 0);
149 fBounds.set(left, top, right, bottom);
162 fBounds = src.fBounds;
223 *itop = fBounds.fTop;
224 *ibot = fBounds.fBottom;
278 if (SkRegion::RunsAreARect(runs, count, &fBounds)) {
[all...]
H A DSkRTree.cpp14 return fRoot.fBounds;
33 b->fBounds = bounds;
45 fRoot.fBounds = branches[0].fBounds;
147 b.fBounds = (*branches)[currentBranch].fBounds;
151 b.fBounds.join((*branches)[currentBranch].fBounds);
165 if (fCount > 0 && SkRect::Intersects(fRoot.fBounds, query)) {
172 if (SkRect::Intersects(node->fChildren[i].fBounds, quer
[all...]
H A DSkAAClip.cpp138 fTop = fBottom = clip.fBounds.fBottom;
151 fTop = clip.fBounds.fTop;
152 fBottom = clip.fBounds.fTop + fCurrYOff->fY + 1;
192 SkASSERT(fBounds.isEmpty());
202 const int lastY = fBounds.height() - 1;
214 size_t rowLength = compute_row_length(row, fBounds.width());
248 const int width = fBounds.width();
250 int y = fBounds.fTop;
445 const int width = fBounds.width();
481 fBounds
947 SkIRect fBounds; member in class:SkAAClip::Builder
[all...]
H A DSkPathRef.cpp90 matrix.mapRect(&(*dst)->fBounds, src.fBounds);
91 if (!((*dst)->fIsFinite = (*dst)->fBounds.isFinite())) {
92 (*dst)->fBounds.setEmpty();
96 (*dst)->fBounds.setEmpty();
142 !buffer->read(&ref->fBounds, sizeof(SkRect))) {
232 // Call getBounds() to ensure (as a side-effect) that fBounds
277 fBounds = ref.fBounds;
452 if (!fBoundsIsDirty && !fBounds
[all...]
H A DSkBlitBWMaskTemplate.h28 SkASSERT(clip.fRight <= srcMask.fBounds.fRight);
32 int maskLeft = srcMask.fBounds.fLeft;
44 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight)
/external/skia/src/gpu/
H A DGrPath.h27 fBounds(skPath.getBounds()) {
37 const SkRect& getBounds() const { return fBounds; }
44 SkRect fBounds; member in class:GrPath
H A DGrGlyph.h40 GrIRect16 fBounds; member in struct:GrGlyph
49 fBounds.set(bounds);
62 int width() const { return fBounds.width(); }
63 int height() const { return fBounds.height(); }
64 bool isEmpty() const { return fBounds.isEmpty(); }
H A DGrBatch.h68 const SkRect& bounds() const { return fBounds; }
107 void setBounds(const SkRect& newBounds) { fBounds = newBounds; }
110 return fBounds.joinPossiblyEmptyRect(otherBounds);
151 SkRect fBounds; member in class:GrBatch
/external/skia/tests/
H A DMaskCacheTest.cpp48 mask.fBounds.setXYWH(0, 0, 100, 100);
61 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100);
86 mask.fBounds.setXYWH(0, 0, 100, 100);
99 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100);
H A DParsePathTest.cpp32 const SkRect fBounds; member in struct:__anon14146
49 const SkRect& expectedBounds = gRec[i].fBounds;
/external/skia/src/pathops/
H A DSkOpContour.h32 return fBounds.fTop == rh.fBounds.fTop
33 ? fBounds.fLeft < rh.fBounds.fLeft
34 : fBounds.fTop < rh.fBounds.fTop;
87 return fBounds;
287 SkDEBUGCODE(fBounds.set(SK_ScalarMax, SK_ScalarMax, SK_ScalarMin, SK_ScalarMin));
295 fBounds = segment->bounds();
297 fBounds
358 SkPathOpsBounds fBounds; member in class:SkOpContour
[all...]
/external/skia/samplecode/
H A DSampleStrokePath.cpp55 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++) {
/external/skia/src/gpu/effects/
H A DGrConvolutionEffect.h57 const float* bounds() const { return fBounds; }
81 float fBounds[2]; member in class:GrConvolutionEffect
H A DGrConvolutionEffect.cpp165 memcpy(fBounds, bounds, sizeof(fBounds));
193 memcpy(fBounds, bounds, sizeof(fBounds));
213 0 == memcmp(fBounds, s.fBounds, sizeof(fBounds)) &&
/external/skia/src/effects/
H A DSkTableMaskFilter.cpp33 dst->fBounds = src.fBounds;
34 dst->fRowBytes = SkAlign4(dst->fBounds.width());
44 int dstWidth = dst->fBounds.width();
47 for (int y = dst->fBounds.height() - 1; y >= 0; --y) {
H A DSkLayerRasterizer.cpp89 bounds->join(mask.fBounds);
103 if (!compute_bounds(*fLayers, path, matrix, clipBounds, &mask->fBounds))
109 mask->fRowBytes = mask->fBounds.width();
125 rectClip.setRect(SkIRect::MakeWH(mask->fBounds.width(), mask->fBounds.height()));
128 translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft),
129 -SkIntToScalar(mask->fBounds.fTop));
/external/skia/gm/
H A Dblurrect.cpp313 center_x = (canvas_size.fWidth - mask.fBounds.width())/2;
314 center_y = (canvas_size.fHeight - mask.fBounds.height())/2;
350 r.roundOut(&src.fBounds);
351 src.fBounds.offset(-src.fBounds.fLeft, -src.fBounds.fTop); // move to origin
353 src.fRowBytes = src.fBounds.width();
396 r.roundOut(&src.fBounds);
397 src.fBounds.offset(-src.fBounds
[all...]

Completed in 367 milliseconds

1234