Home
last modified time | relevance | path

Searched refs:fx (Results 1 – 25 of 167) sorted by relevance

1234567

/external/chromium_org/third_party/skia/src/opts/
DSkBitmapProcState_matrixProcs_neon.cpp16 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
17 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
20 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
22 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
28 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) argument
30 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
36 void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { in decal_nofilter_scale_neon() argument
44 lbase = vdupq_n_s32(fx); in decal_nofilter_scale_neon()
45 lbase = vsetq_lane_s32(fx + dx, lbase, 1); in decal_nofilter_scale_neon()
46 lbase = vsetq_lane_s32(fx + dx + dx, lbase, 2); in decal_nofilter_scale_neon()
[all …]
DSkBitmapProcState_opts_SSE2.cpp256 SkFixed fx; in ClampX_ClampY_filter_scale_SSE2() local
266 fx = SkScalarToFixed(pt.fX) - (one >> 1); in ClampX_ClampY_filter_scale_SSE2()
269 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_filter_scale_SSE2()
270 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { in ClampX_ClampY_filter_scale_SSE2()
274 SkASSERT((fx >> (16 + 14)) == 0); in ClampX_ClampY_filter_scale_SSE2()
275 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); in ClampX_ClampY_filter_scale_SSE2()
276 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
282 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_filter_scale_SSE2()
283 fx + dx, fx); in ClampX_ClampY_filter_scale_SSE2()
295 fx += dx * 4; in ClampX_ClampY_filter_scale_SSE2()
[all …]
DSkBitmapProcState_matrix_clamp_neon.h67 SkFixed fx; in SCALE_NOFILTER_NAME() local
72 fx = SkScalarToFixed(pt.fY); in SCALE_NOFILTER_NAME()
74 *xy++ = TILEY_PROCF(fx, maxY); in SCALE_NOFILTER_NAME()
75 fx = SkScalarToFixed(pt.fX); in SCALE_NOFILTER_NAME()
88 if ((unsigned)(fx >> 16) <= maxX && in SCALE_NOFILTER_NAME()
89 (unsigned)((fx + dx * (count - 1)) >> 16) <= maxX) { in SCALE_NOFILTER_NAME()
90 decal_nofilter_scale_neon(xy, fx, dx, count); in SCALE_NOFILTER_NAME()
112 fx1 = fx+dx; in SCALE_NOFILTER_NAME()
118 lbase = vdupq_n_s32(fx); in SCALE_NOFILTER_NAME()
148 fx += dx8; in SCALE_NOFILTER_NAME()
[all …]
DSkBitmapProcState_matrix_repeat_neon.h65 SkFixed fx; in SCALE_NOFILTER_NAME() local
70 fx = SkScalarToFixed(pt.fY); in SCALE_NOFILTER_NAME()
72 *xy++ = TILEY_PROCF(fx, maxY); in SCALE_NOFILTER_NAME()
73 fx = SkScalarToFixed(pt.fX); in SCALE_NOFILTER_NAME()
86 if ((unsigned)(fx >> 16) <= maxX && in SCALE_NOFILTER_NAME()
87 (unsigned)((fx + dx * (count - 1)) >> 16) <= maxX) { in SCALE_NOFILTER_NAME()
88 decal_nofilter_scale_neon(xy, fx, dx, count); in SCALE_NOFILTER_NAME()
109 fx1 = fx+dx; in SCALE_NOFILTER_NAME()
113 lbase = vdupq_n_s32(fx); in SCALE_NOFILTER_NAME()
145 fx += dx8; in SCALE_NOFILTER_NAME()
[all …]
/external/skia/src/opts/
DSkBitmapProcState_matrixProcs_neon.cpp16 static void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
17 static void decal_filter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
20 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
22 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
28 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) argument
30 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
36 void decal_nofilter_scale_neon(uint32_t dst[], SkFixed fx, SkFixed dx, int count) { in decal_nofilter_scale_neon() argument
44 lbase = vdupq_n_s32(fx); in decal_nofilter_scale_neon()
45 lbase = vsetq_lane_s32(fx + dx, lbase, 1); in decal_nofilter_scale_neon()
46 lbase = vsetq_lane_s32(fx + dx + dx, lbase, 2); in decal_nofilter_scale_neon()
[all …]
DSkBitmapProcState_opts_SSE2.cpp256 SkFixed fx; in ClampX_ClampY_filter_scale_SSE2() local
266 fx = SkScalarToFixed(pt.fX) - (one >> 1); in ClampX_ClampY_filter_scale_SSE2()
269 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_filter_scale_SSE2()
270 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { in ClampX_ClampY_filter_scale_SSE2()
274 SkASSERT((fx >> (16 + 14)) == 0); in ClampX_ClampY_filter_scale_SSE2()
275 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); in ClampX_ClampY_filter_scale_SSE2()
276 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
282 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_filter_scale_SSE2()
283 fx + dx, fx); in ClampX_ClampY_filter_scale_SSE2()
295 fx += dx * 4; in ClampX_ClampY_filter_scale_SSE2()
[all …]
DSkBitmapProcState_matrix_clamp_neon.h67 SkFixed fx; in SCALE_NOFILTER_NAME() local
72 fx = SkScalarToFixed(pt.fY); in SCALE_NOFILTER_NAME()
74 *xy++ = TILEY_PROCF(fx, maxY); in SCALE_NOFILTER_NAME()
75 fx = SkScalarToFixed(pt.fX); in SCALE_NOFILTER_NAME()
88 if ((unsigned)(fx >> 16) <= maxX && in SCALE_NOFILTER_NAME()
89 (unsigned)((fx + dx * (count - 1)) >> 16) <= maxX) { in SCALE_NOFILTER_NAME()
90 decal_nofilter_scale_neon(xy, fx, dx, count); in SCALE_NOFILTER_NAME()
112 fx1 = fx+dx; in SCALE_NOFILTER_NAME()
118 lbase = vdupq_n_s32(fx); in SCALE_NOFILTER_NAME()
148 fx += dx8; in SCALE_NOFILTER_NAME()
[all …]
DSkBitmapProcState_matrix_repeat_neon.h65 SkFixed fx; in SCALE_NOFILTER_NAME() local
70 fx = SkScalarToFixed(pt.fY); in SCALE_NOFILTER_NAME()
72 *xy++ = TILEY_PROCF(fx, maxY); in SCALE_NOFILTER_NAME()
73 fx = SkScalarToFixed(pt.fX); in SCALE_NOFILTER_NAME()
86 if ((unsigned)(fx >> 16) <= maxX && in SCALE_NOFILTER_NAME()
87 (unsigned)((fx + dx * (count - 1)) >> 16) <= maxX) { in SCALE_NOFILTER_NAME()
88 decal_nofilter_scale_neon(xy, fx, dx, count); in SCALE_NOFILTER_NAME()
109 fx1 = fx+dx; in SCALE_NOFILTER_NAME()
113 lbase = vdupq_n_s32(fx); in SCALE_NOFILTER_NAME()
145 fx += dx8; in SCALE_NOFILTER_NAME()
[all …]
/external/chromium_org/third_party/skia/src/effects/gradients/
DSkClampRange.cpp36 void SkClampRange::initFor1(SkFixed fx) { in initFor1() argument
38 if (fx <= 0) { in initFor1()
40 } else if (fx < 0xFFFF) { in initFor1()
42 fFx1 = fx; in initFor1()
62 int64_t fx = fx0; in init() local
65 int64_t ex = fx + (count - 1) * dx; in init()
68 if ((uint64_t)(fx | ex) <= 0xFFFF) { in init()
74 if (fx <= 0 && ex <= 0) { in init()
79 if (fx >= 0xFFFF && ex >= 0xFFFF) { in init()
97 fx = -fx; in init()
[all …]
DSkRadialGradient.cpp84 SkFixed fx = SkScalarToFixed(sfx) >> 1; in shadeSpan16_radial_clamp() local
94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
97 fx += dx; in shadeSpan16_radial_clamp()
104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
108 fx += dx; in shadeSpan16_radial_clamp()
118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial() argument
122 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); in shadeSpan16_radial()
127 fx += dx; in shadeSpan16_radial()
132 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_mirror() argument
135 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_mirror()
[all …]
DSkLinearGradient.cpp95 unsigned fi = fx >> SkGradientShaderBase::kCache32Shift; \
97 fx += dx; \
104 typedef void (*LinearShadeProc)(TileProc proc, SkFixed dx, SkFixed fx,
111 void shadeSpan_linear_vertical_lerp(TileProc proc, SkFixed dx, SkFixed fx, in shadeSpan_linear_vertical_lerp() argument
118 unsigned fullIndex = proc(fx); in shadeSpan_linear_vertical_lerp()
134 void shadeSpan_linear_clamp(TileProc proc, SkFixed dx, SkFixed fx, in shadeSpan_linear_clamp() argument
139 range.init(fx, dx, count, 0, SkGradientShaderBase::kCache32Count - 1); in shadeSpan_linear_clamp()
150 fx = range.fFx1; in shadeSpan_linear_clamp()
171 void shadeSpan_linear_mirror(TileProc proc, SkFixed dx, SkFixed fx, in shadeSpan_linear_mirror() argument
176 unsigned fi = mirror_8bits(fx >> 8); in shadeSpan_linear_mirror()
[all …]
/external/skia/src/effects/gradients/
DSkClampRange.cpp36 void SkClampRange::initFor1(SkFixed fx) { in initFor1() argument
38 if (fx <= 0) { in initFor1()
40 } else if (fx < 0xFFFF) { in initFor1()
42 fFx1 = fx; in initFor1()
62 int64_t fx = fx0; in init() local
65 int64_t ex = fx + (count - 1) * dx; in init()
68 if ((uint64_t)(fx | ex) <= 0xFFFF) { in init()
74 if (fx <= 0 && ex <= 0) { in init()
79 if (fx >= 0xFFFF && ex >= 0xFFFF) { in init()
97 fx = -fx; in init()
[all …]
DSkRadialGradient.cpp84 SkFixed fx = SkScalarToFixed(sfx) >> 1; in shadeSpan16_radial_clamp() local
94 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
97 fx += dx; in shadeSpan16_radial_clamp()
104 unsigned xx = SkPin32(fx, -0xFFFF >> 1, 0xFFFF >> 1); in shadeSpan16_radial_clamp()
108 fx += dx; in shadeSpan16_radial_clamp()
118 void shadeSpan16_radial(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial() argument
122 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); in shadeSpan16_radial()
127 fx += dx; in shadeSpan16_radial()
132 void shadeSpan16_radial_mirror(SkScalar fx, SkScalar dx, SkScalar fy, SkScalar dy, in shadeSpan16_radial_mirror() argument
135 shadeSpan16_radial<mirror_tileproc_nonstatic>(fx, dx, fy, dy, dstC, cache, toggle, count); in shadeSpan16_radial_mirror()
[all …]
DSkLinearGradient.cpp95 unsigned fi = fx >> SkGradientShaderBase::kCache32Shift; \
97 fx += dx; \
104 typedef void (*LinearShadeProc)(TileProc proc, SkFixed dx, SkFixed fx,
111 void shadeSpan_linear_vertical_lerp(TileProc proc, SkFixed dx, SkFixed fx, in shadeSpan_linear_vertical_lerp() argument
118 unsigned fullIndex = proc(fx); in shadeSpan_linear_vertical_lerp()
134 void shadeSpan_linear_clamp(TileProc proc, SkFixed dx, SkFixed fx, in shadeSpan_linear_clamp() argument
139 range.init(fx, dx, count, 0, SkGradientShaderBase::kCache32Count - 1); in shadeSpan_linear_clamp()
150 fx = range.fFx1; in shadeSpan_linear_clamp()
171 void shadeSpan_linear_mirror(TileProc proc, SkFixed dx, SkFixed fx, in shadeSpan_linear_mirror() argument
176 unsigned fi = mirror_8bits(fx >> 8); in shadeSpan_linear_mirror()
[all …]
/external/skia/tests/
DClampRangeTest.cpp36 static int classify_value(SkFixed fx, int v0, int v1) { in classify_value() argument
37 if (fx <= 0) { in classify_value()
40 if (fx >= 0xFFFF) { in classify_value()
51 SkFixed fx, SkFixed dx, int count) { in slow_check() argument
56 fx = range.fFx1; in slow_check()
58 R_ASSERT(fx >= 0 && fx <= 0xFFFF); in slow_check()
59 fx += dx; in slow_check()
63 int v = classify_value(fx, V0, V1); in slow_check()
65 fx += dx; in slow_check()
67 if (range.fCount1 > 0 && fx != range.fFx1) { in slow_check()
[all …]
/external/chromium_org/third_party/skia/src/core/
DARGB32_Clamp_Bilinear_BitmapShader.h19 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY,
21 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, in sample_bilerp() argument
24 int ix = fx >> 16; in sample_bilerp()
43 SkFilterPtrProc proc = SkGetBilinearFilterPtrProc(proc_table, fx, fy); in sample_bilerp()
47 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, in sample_bilerpx() argument
50 int ix = fx >> 16; in sample_bilerpx()
61 SkFilterPtrProc proc = SkGetBilinearFilterPtrXProc(proc_table, fx); in sample_bilerpx()
92 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
94 *dstC++ = sample_bilerp(fx, fy, srcMaxX, srcMaxY, srcPixels, srcRB, proc_table); in shadeSpan()
105 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
[all …]
DSkBitmapProcState_matrixProcs.cpp33 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
34 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
48 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
50 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
56 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) argument
58 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
72 #define TILEX_PROCF(fx, max) SK_USHIFT16(tileProcX(fx) * ((max) + 1)) argument
74 #define TILEX_LOW_BITS(fx, max) tileLowBitsProcX(fx, (max) + 1) argument
181 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) in decal_nofilter_scale() argument
187 *dst++ = pack_two_shorts(fx >> 16, (fx + dx) >> 16); in decal_nofilter_scale()
[all …]
DSkBitmapShaderTemplate.h68 SkFixed fx, fy, dx, dy; in shadeSpan() local
91 fx = *srcXY++; in shadeSpan()
93 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
102 fx = *srcXY++; in shadeSpan()
104 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
120 fx = SkScalarToFixed(srcPt.fX); in shadeSpan()
134 fx >>= level; in shadeSpan()
149 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
150 fx += dx; in shadeSpan()
156 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
[all …]
DSkBitmapProcState_matrix.h55 SkFractionalInt fx; in SCALE_NOFILTER_NAME() local
60 fx = SkScalarToFractionalInt(pt.fY); in SCALE_NOFILTER_NAME()
62 *xy++ = TILEY_PROCF(SkFractionalIntToFixed(fx), maxY); in SCALE_NOFILTER_NAME()
63 fx = SkScalarToFractionalInt(pt.fX); in SCALE_NOFILTER_NAME()
75 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in SCALE_NOFILTER_NAME()
76 decal_nofilter_scale(xy, SkFractionalIntToFixed(fx), in SCALE_NOFILTER_NAME()
84 a = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
85 b = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
91 a = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
92 b = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
[all …]
/external/skia/src/core/
DARGB32_Clamp_Bilinear_BitmapShader.h19 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY,
21 SkPMColor sample_bilerp(SkFixed fx, SkFixed fy, unsigned srcMaxX, unsigned srcMaxY, in sample_bilerp() argument
24 int ix = fx >> 16; in sample_bilerp()
43 SkFilterPtrProc proc = SkGetBilinearFilterPtrProc(proc_table, fx, fy); in sample_bilerp()
47 static inline SkPMColor sample_bilerpx(SkFixed fx, unsigned srcMaxX, const SkPMColor* srcPixels, in sample_bilerpx() argument
50 int ix = fx >> 16; in sample_bilerpx()
61 SkFilterPtrProc proc = SkGetBilinearFilterPtrXProc(proc_table, fx); in sample_bilerpx()
92 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
94 *dstC++ = sample_bilerp(fx, fy, srcMaxX, srcMaxY, srcPixels, srcRB, proc_table); in shadeSpan()
105 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
[all …]
DSkBitmapProcState_matrixProcs.cpp33 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
34 void decal_filter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count);
48 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
50 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
56 #define TILEX_PROCF(fx, max) SK_USHIFT16(((fx) & 0xFFFF) * ((max) + 1)) argument
58 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
72 #define TILEX_PROCF(fx, max) SK_USHIFT16(tileProcX(fx) * ((max) + 1)) argument
74 #define TILEX_LOW_BITS(fx, max) tileLowBitsProcX(fx, (max) + 1) argument
181 void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixed dx, int count) in decal_nofilter_scale() argument
187 *dst++ = pack_two_shorts(fx >> 16, (fx + dx) >> 16); in decal_nofilter_scale()
[all …]
DSkBitmapShaderTemplate.h68 SkFixed fx, fy, dx, dy; in shadeSpan() local
91 fx = *srcXY++; in shadeSpan()
93 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
102 fx = *srcXY++; in shadeSpan()
104 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
120 fx = SkScalarToFixed(srcPt.fX); in shadeSpan()
134 fx >>= level; in shadeSpan()
149 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
150 fx += dx; in shadeSpan()
156 unsigned x = NOFILTER_BITMAP_SHADER_TILEPROC(fx, srcMaxX); in shadeSpan()
[all …]
DSkBitmapProcState_matrix.h55 SkFractionalInt fx; in SCALE_NOFILTER_NAME() local
60 fx = SkScalarToFractionalInt(pt.fY); in SCALE_NOFILTER_NAME()
62 *xy++ = TILEY_PROCF(SkFractionalIntToFixed(fx), maxY); in SCALE_NOFILTER_NAME()
63 fx = SkScalarToFractionalInt(pt.fX); in SCALE_NOFILTER_NAME()
75 if (can_truncate_to_fixed_for_decal(fx, dx, count, maxX)) { in SCALE_NOFILTER_NAME()
76 decal_nofilter_scale(xy, SkFractionalIntToFixed(fx), in SCALE_NOFILTER_NAME()
84 a = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
85 b = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
91 a = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
92 b = TILEX_PROCF(SkFractionalIntToFixed(fx), maxX); fx += dx; in SCALE_NOFILTER_NAME()
[all …]
DSkBitmapShader16BilerpTemplate.h47 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan() local
49 int ix = fx >> 16; in shadeSpan()
67 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); in shadeSpan()
79 SkFixed fx, fy, dx, dy; in shadeSpan() local
87 fx = SkScalarToFixed(srcPt.fX) - SK_FixedHalf; in shadeSpan()
100 int ix = fx >> 16; in shadeSpan()
118 SkFilterProc proc = SkGetBilinearFilterProc(proc_table, fx, fy); in shadeSpan()
125 fx += dx; in shadeSpan()
156 SkFixed fx = *srcXY++ - SK_FixedHalf; in shadeSpan16() local
158 int ix = fx >> 16; in shadeSpan16()
[all …]
/external/skia/bench/
DInterpBench.cpp54 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { in performTest() argument
55 SkFixed curr = SkFloatToFixed(fx); in performTest()
73 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { in performTest() argument
74 int64_t curr = (int64_t)(fx * 65536 * 655536); in performTest()
104 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { in performTest() argument
105 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536); in performTest()
124 virtual void performTest(int16_t dst[], float fx, float dx, int count) SK_OVERRIDE { in performTest() argument
127 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx; in performTest()
128 tmp = SkFloatToFixed(fx); dst[i + 1] = TILE(tmp, count); fx += dx; in performTest()
129 tmp = SkFloatToFixed(fx); dst[i + 2] = TILE(tmp, count); fx += dx; in performTest()
[all …]

1234567