/external/chromium_org/third_party/skia/src/effects/gradients/ |
H A D | SkRadialGradient.cpp | 85 SkFixed dx = SkScalarToFixed(sdx) >> 1; local 97 fx += dx; 108 fx += dx; 118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, argument 127 fx += dx; 132 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, argument 135 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); 138 void shadeSpan16_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, argument 141 shadeSpan16_radial<repeat_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); 282 inline bool radial_completely_pinned(int fx, int dx, in argument 296 no_need_for_radial_pin(int fx, int dx, int fy, int dy, int count) argument 335 SkFixed dx = SkScalarToFixed(sdx) >> 1; local 390 shadeSpan_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int count, int toggle) argument 404 shadeSpan_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int count, int toggle) argument 410 shadeSpan_radial_repeat(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, SkPMColor* SK_RESTRICT dstC, const SkPMColor* SK_RESTRICT cache, int count, int toggle) argument [all...] |
H A D | SkSweepGradient.cpp | 106 SkScalar dx, fx = srcPt.fX; local 113 dx = SkFixedToScalar(storage[0]); 117 dx = matrix.getScaleX(); 123 fx += dx; 148 SkScalar dx, fx = srcPt.fX; local 155 dx = SkFixedToScalar(storage[0]); 159 dx = matrix.getScaleX(); 167 fx += dx;
|
H A D | SkTwoPointConicalGradient.cpp | 74 static float lerp(float x, float dx, float t) { argument 75 return x + t * dx; 268 SkScalar dx, fx = srcPt.fX; local 274 dx = SkFixedToScalar(fixedX); 278 dx = fDstToIndex.getScaleX(); 282 TwoPtRadialContext rec(twoPointConicalGradient.fRec, fx, fy, dx, dy);
|
H A D | SkTwoPointRadialGradient.cpp | 46 To simplify, let Dx = Sx - Ex, Dy = Sy - Ey, Dr = Er - Sr, dx = x - Sx, dy = y - Sy 49 + 2 * [Dx * dx + Dy * dy - Dr * Sr] * t 50 + [dx^2 + dy^2 - Sr^2] = 0 107 typedef void (* TwoPointRadialShadeProc)(SkScalar fx, SkScalar dx, 114 void shadeSpan_twopoint_clamp(SkScalar fx, SkScalar dx, argument 126 fx += dx; 131 void shadeSpan_twopoint_mirror(SkScalar fx, SkScalar dx, argument 143 fx += dx; 149 void shadeSpan_twopoint_repeat(SkScalar fx, SkScalar dx, argument 161 fx += dx; [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
H A D | GrAARectRenderer.cpp | 305 const SkRect& r, SkScalar dx, SkScalar dy) { 306 pts->setRectFan(r.fLeft + dx, r.fTop + dy, 307 r.fRight - dx, r.fBottom - dy, stride); 768 const SkScalar dx = devStrokeSize.fX; local 770 const SkScalar rx = SkScalarMul(dx, SK_ScalarHalf); 783 SkScalar w = devRect.width() - dx; 304 set_inset_fan(SkPoint* pts, size_t stride, const SkRect& r, SkScalar dx, SkScalar dy) argument
|
H A D | GrContext.cpp | 303 SkFixed dx = (srcW << 16) / dstW; local 310 SkFixed x = dx >> 1; 315 x += dx;
|
H A D | GrDistanceFieldTextContext.cpp | 388 SkScalar dx = SkIntToScalar(glyph->fBounds.fLeft + SK_DistanceFieldInset); local 394 dx *= scale; 396 sx += dx;
|
/external/chromium_org/third_party/skia/src/images/ |
H A D | SkScaledBitmapSampler.cpp | 605 int dx = SkMin32(sampleSize, width); local 608 fScaledWidth = width / dx; 614 fX0 = dx >> 1; 620 fDX = dx;
|
H A D | bmpdecoderhelper.cpp | 214 uint8 dx = GetByte(); local 216 x += dx;
|
/external/chromium_org/third_party/skia/src/opts/ |
H A D | SkBitmapProcState_matrixProcs_neon.cpp | 18 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 19 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count); 150 void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { argument 153 SkFixed dx8 = dx * 8; 159 lbase = vsetq_lane_s32(fx + dx, lbase, 1); 160 lbase = vsetq_lane_s32(fx + dx + dx, lbase, 2); 161 lbase = vsetq_lane_s32(fx + dx + dx + dx, lbas 185 decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) argument [all...] |
H A D | SkBitmapProcState_matrix_neon.h | 51 const SkFractionalInt dx = s.fInvSxFractionalInt; local 55 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { 57 SkFractionalIntToFixed(dx), count); 63 SkFractionalInt dx2 = dx+dx; 67 // now build fx/fx+dx/fx+2dx/fx+3dx 72 fx1 = fx+dx; 73 fx2 = fx1+dx; 123 SkFractionalInt dx = s.fInvSxFractionalInt; local 298 const SkFractionalInt dx = s.fInvSxFractionalInt; local 370 SkFixed dx = s.fInvSx; local [all...] |
H A D | SkBitmapProcState_opts_SSE2.cpp | 254 const SkFixed dx = s.fInvSx; local 268 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && 269 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { 275 fx += dx; 280 __m128i wide_dx4 = _mm_set1_epi32(dx * 4); 281 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, 282 fx + dx, fx); 294 fx += dx * 4; 303 fx += dx; 392 const SkFixed dx = s.fInvSx; local 501 SkFixed dx = s.fInvSx; local 575 SkFixed dx = s.fInvSx; local [all...] |
/external/chromium_org/third_party/skia/src/pathops/ |
H A D | SkDCubicLineIntersection.cpp | 326 double dx = fLine[1].fX - fLine[0].fX; local 328 if (fabs(dx) > fabs(dy)) { 329 return (xy.fX - fLine[0].fX) / dx;
|
H A D | SkDCubicToQuads.cpp | 68 double dx = c[3].fX - 3 * (c[2].fX - c[1].fX) - c[0].fX; local 70 double dist = sqrt(dx * dx + dy * dy);
|
H A D | SkDQuadIntersection.cpp | 508 double dx = pts2[ndex2].fX - pts1[index].fX; local 510 double distance = dx * dx + dy * dy;
|
H A D | SkDQuadLineIntersection.cpp | 304 double dx = fLine[1].fX - fLine[0].fX; local 306 if (fabs(dx) > fabs(dy)) { 307 return (xy.fX - fLine[0].fX) / dx;
|
H A D | SkLineParameters.h | 37 if (dx() == 0) { 43 if (dx() == 0) { 50 if (dx() < 0) { // only worry about y bias when breaking cw/ccw tie 96 if (dx() == 0) { 100 if (dx() < 0) { // only worry about y bias when breaking cw/ccw tie 167 double dx() const { function in class:SkLineParameters
|
H A D | SkOpAngle.cpp | 809 double leftX = fTangentHalf.dx(); 811 double rightX = rh.fTangentHalf.dx();
|
H A D | SkOpSegment.cpp | 1830 SkScalar dx = (*CurveSlopeAtT[SkPathOpsVerbToPoints(fVerb)])(fPts, foundT).fX; 1831 if (approximately_zero(dx)) { 3318 when we start with a vertical intersect, we try to use the dx to determine if the edge is to 3321 If the supplied sign (winding) is zero, then we didn't hit another vertical span, so dx is needed. 3323 from has the same x direction as this span, the winding should change. If the dx is opposite, then 3329 SkScalar dx = (*CurveSlopeAtT[SkPathOpsVerbToPoints(fVerb)])(fPts, tHit).fX; 3330 SkASSERT(dx); 3333 SkDebugf("%s id=%d oldWinding=%d hitDx=%c dx=%c windVal=%d", __FUNCTION__, debugID(), winding, 3334 hitDx ? hitDx > 0 ? '+' : '-' : '0', dx > 0 ? '+' : '-', windVal); 3336 int sideWind = winding + (dx < [all...] |
H A D | SkOpSegment.h | 354 int windingAtT(double tHit, int tIndex, bool crossOpp, SkScalar* dx) const;
|
H A D | SkPathOpsCommon.cpp | 564 double dx = iPt.fX - oPt.fX; local 566 double dist = dx * dx + dy * dy;
|
H A D | SkPathOpsCubic.cpp | 482 double dx = dst[3].fX = interp_cubic_coords(&fPts[0].fX, t2); local 484 double mx = ex * 27 - ax * 8 - dx; 486 double nx = fx * 27 - ax - dx * 8;
|
H A D | SkPathOpsQuad.cpp | 222 double dx = interp_quad_coords(&fPts[0].fX, (t1 + t2) / 2); local 226 /* bx = */ dst[1].fX = 2*dx - (ax + cx)/2; 245 double dx = interp_quad_coords(&fPts[0].fX, (t1 + t2) / 2); 247 b.fX = 2 * dx - (a.fX + c.fX) / 2;
|
/external/chromium_org/third_party/skia/src/pdf/ |
H A D | SkPDFDevice.cpp | 1074 SkScalar dx = 0, dy = 0; local 1076 dx = SkIntToScalar(srcIR.fLeft); 1081 if (dx || dy) { 1082 matrix.preTranslate(dx, dy);
|
H A D | SkPDFShader.cpp | 301 SkScalar dx = info.fPoint[0].fX - info.fPoint[1].fX; local 304 SkScalar a = SkScalarMul(dx, dx) + SkScalarMul(dy, dy) - SK_Scalar1; 318 function.appendScalar(dx); 352 SkScalar dx = info.fPoint[1].fX - info.fPoint[0].fX; local 356 SkScalar a = SkScalarMul(dx, dx) + SkScalarMul(dy, dy) - 370 // Calculate b and b^2; b = -2 * (y * dy + x * dx + r0 * dr). 373 function.appendScalar(dx);
|