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

12

/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.h34 SkIRect fBounds; member in struct:SkMask
40 bool isEmpty() const { return fBounds.isEmpty(); }
56 x,y are in the same coordiate space as fBounds.
60 SkASSERT(fBounds.contains(x, y));
62 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes;
67 x,y are in the same coordiate space as fBounds.
71 SkASSERT(fBounds.contains(x, y));
73 return fImage + x - fBounds.fLeft + (y - fBounds
[all...]
H A DSkRegion.h86 const SkIRect& getBounds() const { return fBounds; }
187 SkASSERT(this->isEmpty() == fBounds.isEmpty()); // valid region
191 /* fBounds.contains(left, top, right, bottom); */
192 fBounds.fLeft <= left && fBounds.fTop <= top &&
193 fBounds.fRight >= right && fBounds.fBottom >= bottom;
203 !SkIRect::Intersects(fBounds, rect);
213 !SkIRect::Intersects(fBounds, rgn.fBounds);
389 SkIRect fBounds; member in class:SkRegion
[all...]
/external/skia/src/effects/
H A DSkRectShape.cpp18 fBounds.setEmpty();
23 fBounds = bounds;
28 fBounds = bounds;
33 fBounds.set(cx - radius, cy - radius, cx + radius, cy + radius);
45 fBounds = bounds;
55 canvas->drawOval(fBounds, paint);
57 canvas->drawRect(fBounds, paint);
59 canvas->drawRoundRect(fBounds, fRadii.fWidth, fRadii.fHeight, paint);
70 buffer.writeRect(fBounds);
75 buffer.read(&fBounds, sizeo
[all...]
H A DSkKernel33MaskFilter.cpp19 dst->fBounds = src.fBounds;
20 dst->fBounds.inset(-1, -1);
27 dst->fRowBytes = dst->fBounds.width();
34 const int h = src.fBounds.height();
35 const int w = src.fBounds.width();
H A DSkLayerRasterizer.cpp81 bounds->join(mask.fBounds);
94 if (!compute_bounds(fLayers, path, matrix, clipBounds, &mask->fBounds))
100 mask->fRowBytes = mask->fBounds.width();
116 rectClip.setRect(SkIRect::MakeWH(mask->fBounds.width(), mask->fBounds.height()));
119 translatedMatrix.postTranslate(-SkIntToScalar(mask->fBounds.fLeft),
120 -SkIntToScalar(mask->fBounds.fTop));
122 device.setConfig(SkBitmap::kA8_Config, mask->fBounds.width(), mask->fBounds.height(), mask->fRowBytes);
H A DSkTableMaskFilter.cpp34 dst->fBounds = src.fBounds;
35 dst->fRowBytes = SkAlign4(dst->fBounds.width());
45 int dstWidth = dst->fBounds.width();
48 for (int y = dst->fBounds.height() - 1; y >= 0; --y) {
/external/skia/include/gpu/
H A DGrGlyph.h31 GrIRect16 fBounds; member in struct:GrGlyph
38 fBounds.set(bounds);
49 int width() const { return fBounds.width(); }
50 int height() const { return fBounds.height(); }
51 bool isEmpty() const { return fBounds.isEmpty(); }
/external/skia/src/core/
H A DSkMaskFilter.cpp42 SkRegion::Cliperator clipper(wrapper.getRgn(), dstM.fBounds);
44 if (!clipper.done() && (bounder == NULL || bounder->doIRect(dstM.fBounds))) {
63 src.roundOut(&srcM.fBounds);
69 dst->set(dstM.fBounds);
71 dst->set(srcM.fBounds);
H A DSkMask.cpp25 return safeMul32(fBounds.height(), fRowBytes);
69 SkASSERT(fBounds.contains(x, y));
73 addr += (y - fBounds.fTop) * fRowBytes;
74 addr += (x - fBounds.fLeft) << maskFormatToShift(fFormat);
H A DSkRegion.cpp77 fBounds.set(0, 0, 0, 0);
117 SkTSwap<SkIRect>(fBounds, other.fBounds);
123 fBounds.set(0, 0, 0, 0);
134 fBounds.set(left, top, right, bottom);
147 fBounds = src.fBounds;
228 *itop = fBounds.fTop;
229 *ibot = fBounds.fBottom;
280 if (ComputeRunBounds(runs, count, &fBounds))
[all...]
H A DSkAAClip.cpp136 fTop = fBottom = clip.fBounds.fBottom;
147 fTop = clip.fBounds.fTop;
148 fBottom = clip.fBounds.fTop + fCurrYOff->fY + 1;
188 SkASSERT(fBounds.isEmpty());
199 const int lastY = fBounds.height() - 1;
211 size_t rowLength = compute_row_length(row, fBounds.width());
394 const int width = fBounds.width();
425 fBounds.fLeft += leftZeros;
426 fBounds.fRight -= riteZeros;
427 SkASSERT(!fBounds
861 SkIRect fBounds; member in class:SkAAClip::Builder
[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)
H A DSkScalerContext.cpp28 mask->fBounds.set(fLeft, fTop, fLeft + fWidth, fTop + fHeight);
305 glyph->fLeft = mask.fBounds.fLeft;
306 glyph->fTop = mask.fBounds.fTop;
307 glyph->fWidth = SkToU16(mask.fBounds.width());
308 glyph->fHeight = SkToU16(mask.fBounds.height());
341 glyph->fLeft = dst.fBounds.fLeft;
342 glyph->fTop = dst.fBounds.fTop;
343 glyph->fWidth = SkToU16(dst.fBounds.width());
344 glyph->fHeight = SkToU16(dst.fBounds.height());
374 const int width = dst.fBounds
[all...]
/external/skia/samplecode/
H A DSampleAAClip.cpp49 bm.setConfig(SkBitmap::kA8_Config, mask.fBounds.width(),
50 mask.fBounds.height(), mask.fRowBytes);
55 SK_Scalar1 * mask.fBounds.fLeft,
56 SK_Scalar1 * mask.fBounds.fTop,
H A DSampleAAClip2.cpp31 bm.setConfig(SkBitmap::kA8_Config, mask.fBounds.width(),
32 mask.fBounds.height(), mask.fRowBytes);
37 SK_Scalar1 * mask.fBounds.fLeft,
38 SK_Scalar1 * mask.fBounds.fTop,
50 bm.setConfig(SkBitmap::kA8_Config, mask.fBounds.width(),
51 mask.fBounds.height(), mask.fRowBytes);
55 SK_Scalar1 * mask.fBounds.fLeft,
56 SK_Scalar1 * mask.fBounds.fTop,
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/text/
H A DSkTextLayout.cpp23 fBounds.setEmpty();
38 fBounds = bounds;
/external/skia/tests/
H A DParsePathTest.cpp33 SkRect fBounds; member in struct:__anon12135
46 const SkRect& expectedBounds = gRec[i].fBounds;
H A DAAClipTest.cpp16 if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) {
26 size_t wbytes = a.fBounds.width();
46 const int h = a.fBounds.height();
63 mask->fBounds.setEmpty();
69 mask->fBounds = rgn.getBounds();
70 mask->fRowBytes = mask->fBounds.width();
75 bitmap.setConfig(SkBitmap::kA8_Config, mask->fBounds.width(),
76 mask->fBounds.height(), mask->fRowBytes);
232 REPORTER_ASSERT(reporter, mask.fBounds
[all...]
/external/skia/include/effects/
H A DSkRectShape.h59 SkRect fBounds; member in class:SkRectShape
/external/skia/include/text/
H A DSkTextLayout.h48 SkRect fBounds; member in class:SkTextLayout
/external/skia/src/gpu/
H A DGrTextContext.cpp183 if (NULL == glyph || glyph->fBounds.isEmpty()) {
187 vx += GrIntToFixed(glyph->fBounds.fLeft);
188 vy += GrIntToFixed(glyph->fBounds.fTop);
191 GrFixed width = glyph->fBounds.width();
192 GrFixed height = glyph->fBounds.height();
230 translate.set(GrFixedToScalar(vx - GrIntToFixed(glyph->fBounds.fLeft)),
231 GrFixedToScalar(vy - GrIntToFixed(glyph->fBounds.fTop)));

Completed in 684 milliseconds

12