/external/skia/src/core/ |
SkRect.cpp | 26 if (fLeft >= fRight || fTop >= fBottom) { 30 if (top < fTop) fTop = top; 40 if (fTop > fBottom) { 41 SkTSwap<int32_t>(fTop, fBottom); 49 SkScalarIsFinite(fTop) && 58 if (fTop > fBottom) { 59 SkTSwap<SkScalar>(fTop, fBottom); 66 quad[0].set(fLeft, fTop); 67 quad[1].set(fRight, fTop); [all...] |
SkRegion_rects.cpp | 13 SkRegion::RunType fTop; 41 edges[0].fTop = r.fTop; 46 edges[1].fTop = r.fTop; 70 SkRegion::RunType fTop; 78 fTop = top; 96 if (edge->fTop > currY) { 97 nextY = SkMin32(nextY, edge->fTop); 105 if (edge->fTop > currY) [all...] |
SkLineClipper.cpp | 57 return outer.fLeft <= inner.fLeft && outer.fTop <= inner.fTop && 76 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || 77 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { 95 if (tmp[index0].fY < clip.fTop) { 96 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); 158 if (pts[index1].fY <= clip.fTop) { // we're above the clip 171 if (pts[index0].fY < clip.fTop) { 172 tmp[index0].set(sect_with_horizontal(pts, clip.fTop), clip.fTop) [all...] |
SkEdgeClipper.cpp | 21 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; 88 if (pts[0].fY < clip.fTop) { 89 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { 92 clamp_ge(tmp[2].fY, clip.fTop); 93 clamp_ge(tmp[3].fY, clip.fTop); 100 if (pts[i].fY < clip.fTop) { 101 pts[i].fY = clip.fTop; 133 if (pts[2].fY <= clip.fTop || pts[0].fY >= clip.fBottom) { 280 if (pts[0].fY < clip.fTop) { [all...] |
SkScan_Hairline.cpp | 71 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), 137 SkScalarToFixed(rect.fTop) >> 16, 157 blitter->blitRect(r.fLeft, r.fTop, width, height); 161 blitter->blitH(r.fLeft, r.fTop, width); // top 162 blitter->blitRect(r.fLeft, r.fTop + 1, 1, height - 2); // left 163 blitter->blitRect(r.fRight - 1, r.fTop + 1, 1, height - 2); // right 333 outer.set(r.fLeft - rx, r.fTop - ry, 341 tmp.set(outer.fLeft, outer.fTop, outer.fRight, outer.fTop + dy); 343 tmp.fTop = outer.fBottom - dy [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/ |
ScrollableLayerAndroid.cpp | 18 if (newX == scrollBounds.fLeft && newY == scrollBounds.fTop) 21 setPosition(m_scrollLimits.fLeft - newX, m_scrollLimits.fTop - newY); 29 out->fTop = m_scrollLimits.fTop - pos.fY; 54 int y = m_scrollLimits.fTop; 55 if (transformedRect.fTop < m_scrollLimits.fTop) 56 y = transformedRect.fTop;
|
GLExtras.cpp | 82 if (srcRect.fRight <= srcRect.fLeft || srcRect.fBottom <= srcRect.fTop) { 86 XLOG("drawQuad [%fx%f, %f, %f]", srcRect.fLeft, srcRect.fTop, 101 r.set(ir.fLeft, ir.fTop, ir.fRight, ir.fBottom); 129 line.fTop = r.fTop - borderWidth; 145 r.set(line.fLeft, line.fTop, line.fRight, line.fBottom); 151 startRect.set(line.fLeft, line.fTop, line.fRight, line.fBottom); 187 if (rect.intersect(viewport.fLeft, viewport.fTop, 192 XLOG("Quick rejecting [%dx%d, %d, %d", rect.fLeft, rect.fTop,
|
/external/skia/gpu/include/ |
GrRect.h | 28 int16_t fLeft, fTop, fRight, fBottom; 31 int height() const { return fBottom - fTop; } 33 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } 37 fTop = SkToS16(r.fTop);
|
/external/skia/include/core/ |
SkRect.h | 28 int32_t fLeft, fTop, fRight, fBottom; 62 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } 72 int height() const { return fBottom - fTop; } 83 return SkIsS16(fLeft) && SkIsS16(fTop) && 93 fTop = top; 104 fTop = y; 113 fLeft = fTop = SK_MinS32; 122 fLeft = fTop = SK_MaxS32; 131 fTop += dy; 146 fTop += dy [all...] |
SkScan.h | 93 xr->fTop = SkIntToFixed(src.fTop); 104 xr->fTop = SkScalarToFixed(src.fTop); 113 dst->fTop = SkFixedRound(xr.fTop); 123 dst->fTop = SkFixedFloor(xr.fTop);
|
/external/webkit/Source/WebKit/android/nav/ |
SelectText.cpp | 397 localRgn.translate(-mArea.fLeft, -mArea.fTop, &localRgn); 399 localRgn.getBounds().fLeft, localRgn.getBounds().fTop, 404 DBG_NAV_LOGD("[%d] rect=(%d,%d,%d,%d)", index, rect.fLeft, rect.fTop, 418 if (mY < rect.fTop) { 462 if (bounds.fTop != mLast.fTop || bounds.fBottom != mLast.fBottom 505 , mFocusY(y - area.fTop) 514 *base = mBestBase + mArea.fTop; 515 mBestBounds.offset(mArea.fLeft, mArea.fTop); 517 mBestBounds.fLeft, mBestBounds.fTop, mBestBounds.fRight, [all...] |
/external/skia/src/animator/ |
SkBoundable.cpp | 24 fBounds.fTop = 0; 40 rect->fTop = SkIntToScalar(fBounds.fTop);
|
SkDrawRectangle.cpp | 39 SK_MEMBER_ALIAS(top, fRect.fTop, Float), 66 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), 108 fRect.fBottom = scalar + fRect.fTop; 147 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight),
|
/external/skia/src/views/ |
SkBorderView.cpp | 10 fTop(SkIntToScalar(0)), 68 evt.findScalar("topMargin", &fTop); 74 fMargin.set(fLeft, fTop, fRight, fBottom);
|
SkStackViewLayout.cpp | 109 crossStartM = fMargin.fTop; 110 crossLimit = -fMargin.fTop - fMargin.fBottom; 124 startM = fMargin.fTop; 251 child->setLoc(fMargin.fLeft, fMargin.fTop); 253 parent->height() - fMargin.fBottom - fMargin.fTop);
|
/external/skia/src/svg/ |
SkSVGSVG.cpp | 56 box.fTop = SkScalarDiv(viewBox[1], height); 59 if (box.fLeft == 0 && box.fTop == 0 && 68 if (box.fTop != 0) { 70 y.appendScalar(box.fTop);
|
/frameworks/base/core/jni/android/graphics/ |
NinePatchImpl.cpp | 80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) { 206 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), 211 src.fTop = 0; 212 dst.fTop = bounds.fTop; 230 j <= numYDivs && src.fTop < bitmapHeight; 239 const int srcYSize = src.fBottom - src.fTop; 241 dst.fBottom = dst.fTop + calculateStretch(bounds.fBottom, dst.fTop, 247 dst.fBottom = dst.fTop + SkIntToScalar(srcYSize) [all...] |
NinePatch.cpp | 86 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), 93 canvas->translate(bounds.fLeft, bounds.fTop); 97 bounds.fBottom = SkScalarDiv(bounds.fBottom-bounds.fTop, scale); 98 bounds.fLeft = bounds.fTop = 0; 101 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop),
|
/external/skia/include/views/ |
SkBorderView.h | 31 SkScalar getTop() const { return fTop; } 41 SkScalar fLeft, fRight, fTop, fBottom; //margin on each side
|
/external/skia/samplecode/ |
SampleLayerMask.cpp | 37 bounds.offset(-bounds.fLeft, -bounds.fTop); 41 canvas->drawBitmap(mask, r.fLeft, r.fTop, &paint);
|
SampleStrokeText.cpp | 35 path.offset(-bounds.fLeft, -bounds.fTop); 36 bounds.offset(-bounds.fLeft, -bounds.fTop); 81 path.offset(-bounds.fLeft, -bounds.fTop); 82 bounds.offset(-bounds.fLeft, -bounds.fTop);
|
SampleAnimator.cpp | 109 dom.findScalar(node, "top", &r.fTop); 111 dom.findScalar(node, "height", &r.fBottom); r.fBottom += r.fTop; 113 r.fLeft, r.fTop, r.fRight, r.fBottom);
|
SampleNinePatch.cpp | 81 margins.fTop = fBM.height()/2 - 1; 83 margins.fBottom = fBM.height() - margins.fTop - 1;
|
/external/skia/src/utils/ |
SkNinePatch.cpp | 218 SkScalar vy = bounds.fTop; 260 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() 267 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), 278 dstY[1] = dstY[0] + (dstY[3] - dstY[0]) * SkIntToScalar(margins.fTop) / 279 (SkIntToScalar(margins.fTop) + SkIntToScalar(margins.fBottom)); 286 s.fTop = srcY[y]; 288 d.fTop = dstY[y]; 315 yDivs[0] = margins.fTop; [all...] |
/external/chromium/chrome/common/extensions/ |
extension_action.cc | 146 rect.fTop = rect.fBottom - SkIntToScalar(kBadgeHeight); 174 canvas->AsCanvasSkia()->drawBitmap(*gradient_left, rect.fLeft, rect.fTop); 177 SkScalarFloor(rect.fTop), 182 rect.fRight - SkIntToScalar(gradient_right->width()), rect.fTop); 191 rect.fTop + kTextSize + kTopTextPadding,
|