Home
last modified time | relevance | path

Searched refs:SkOpts (Results 1 – 25 of 95) sorted by relevance

1234

/external/skqp/bench/
DSwizzleBench.cpp14 SwizzleBench(const char* name, SkOpts::Swizzle_8888_u32 fn) : fName(name), fFn_u32(fn) {} in SwizzleBench()
15 SwizzleBench(const char* name, SkOpts::Swizzle_8888_u8 fn) : fName(name), fFn_u8 (fn) {} in SwizzleBench()
29 SkOpts::Swizzle_8888_u32 fFn_u32 = nullptr;
30 SkOpts::Swizzle_8888_u8 fFn_u8 = nullptr;
34 DEF_BENCH(return new SwizzleBench("SkOpts::RGBA_to_rgbA", SkOpts::RGBA_to_rgbA));
35 DEF_BENCH(return new SwizzleBench("SkOpts::RGBA_to_bgrA", SkOpts::RGBA_to_bgrA));
36 DEF_BENCH(return new SwizzleBench("SkOpts::RGBA_to_BGRA", SkOpts::RGBA_to_BGRA));
37 DEF_BENCH(return new SwizzleBench("SkOpts::RGB_to_RGB1", SkOpts::RGB_to_RGB1));
38 DEF_BENCH(return new SwizzleBench("SkOpts::RGB_to_BGR1", SkOpts::RGB_to_BGR1));
39 DEF_BENCH(return new SwizzleBench("SkOpts::gray_to_RGB1", SkOpts::gray_to_RGB1));
[all …]
/external/skia/bench/
DSwizzleBench.cpp14 SwizzleBench(const char* name, SkOpts::Swizzle_8888_u32 fn) : fName(name), fFn_u32(fn) {} in SwizzleBench()
15 SwizzleBench(const char* name, SkOpts::Swizzle_8888_u8 fn) : fName(name), fFn_u8 (fn) {} in SwizzleBench()
29 SkOpts::Swizzle_8888_u32 fFn_u32 = nullptr;
30 SkOpts::Swizzle_8888_u8 fFn_u8 = nullptr;
34 DEF_BENCH(return new SwizzleBench("SkOpts::RGBA_to_rgbA", SkOpts::RGBA_to_rgbA));
35 DEF_BENCH(return new SwizzleBench("SkOpts::RGBA_to_bgrA", SkOpts::RGBA_to_bgrA));
36 DEF_BENCH(return new SwizzleBench("SkOpts::RGBA_to_BGRA", SkOpts::RGBA_to_BGRA));
37 DEF_BENCH(return new SwizzleBench("SkOpts::RGB_to_RGB1", SkOpts::RGB_to_RGB1));
38 DEF_BENCH(return new SwizzleBench("SkOpts::RGB_to_BGR1", SkOpts::RGB_to_BGR1));
39 DEF_BENCH(return new SwizzleBench("SkOpts::gray_to_RGB1", SkOpts::gray_to_RGB1));
[all …]
/external/skqp/tests/
DChecksumTest.cpp24 REPORTER_ASSERT(r, SkOpts::hash(nullptr, 0) == 0); in DEF_TEST()
26 const uint32_t hash = SkOpts::hash(data, kBytes); in DEF_TEST()
28 REPORTER_ASSERT(r, hash == SkOpts::hash(data, kBytes)); in DEF_TEST()
34 const uint32_t tweakedHash = SkOpts::hash(tweaked, kBytes); in DEF_TEST()
36 REPORTER_ASSERT(r, tweakedHash == SkOpts::hash(tweaked, kBytes)); in DEF_TEST()
61 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST()
71 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST()
DSwizzlerTest.cpp121 SkOpts::RGBA_to_rgbA(&dst, &src, 1); in DEF_TEST()
123 SkOpts::RGBA_to_bgrA(&dst, &src, 1); in DEF_TEST()
127 SkOpts::RGBA_to_rgbA(&dst, &src, 1); in DEF_TEST()
129 SkOpts::RGBA_to_bgrA(&dst, &src, 1); in DEF_TEST()
135 SkOpts::RGBA_to_rgbA(&dst, &src, 1); in DEF_TEST()
139 SkOpts::RGBA_to_BGRA(&dst, &src, 1); in DEF_TEST()
143 SkOpts::RGBA_to_bgrA(&dst, &src, 1); in DEF_TEST()
/external/skia/tests/
DChecksumTest.cpp24 REPORTER_ASSERT(r, SkOpts::hash(nullptr, 0) == 0); in DEF_TEST()
26 const uint32_t hash = SkOpts::hash(data, kBytes); in DEF_TEST()
28 REPORTER_ASSERT(r, hash == SkOpts::hash(data, kBytes)); in DEF_TEST()
34 const uint32_t tweakedHash = SkOpts::hash(tweaked, kBytes); in DEF_TEST()
36 REPORTER_ASSERT(r, tweakedHash == SkOpts::hash(tweaked, kBytes)); in DEF_TEST()
61 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST()
71 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST()
DSwizzlerTest.cpp121 SkOpts::RGBA_to_rgbA(&dst, &src, 1); in DEF_TEST()
123 SkOpts::RGBA_to_bgrA(&dst, &src, 1); in DEF_TEST()
127 SkOpts::RGBA_to_rgbA(&dst, &src, 1); in DEF_TEST()
129 SkOpts::RGBA_to_bgrA(&dst, &src, 1); in DEF_TEST()
135 SkOpts::RGBA_to_rgbA(&dst, &src, 1); in DEF_TEST()
139 SkOpts::RGBA_to_BGRA(&dst, &src, 1); in DEF_TEST()
143 SkOpts::RGBA_to_bgrA(&dst, &src, 1); in DEF_TEST()
/external/skqp/include/private/
DSkChecksum.h18 namespace SkOpts {
63 return SkOpts::hash_fn(&k, sizeof(K), 0); in operator()
67 return SkOpts::hash_fn(k.c_str(), k.size(), 0); in operator()
/external/skia/include/private/
DSkChecksum.h18 namespace SkOpts {
63 return SkOpts::hash_fn(&k, sizeof(K), 0); in operator()
67 return SkOpts::hash_fn(k.c_str(), k.size(), 0); in operator()
/external/skqp/src/core/
DSkRasterPipeline.cpp263 *--ip = (void*)SkOpts::just_return_lowp; in build_pipeline()
265 SkOpts::StageFn fn; in build_pipeline()
266 if (!st->rawFunction && (fn = SkOpts::stages_lowp[st->stage])) { in build_pipeline()
277 return SkOpts::start_pipeline_lowp; in build_pipeline()
280 *--ip = (void*)SkOpts::just_return_highp; in build_pipeline()
288 *--ip = (void*)SkOpts::stages_highp[st->stage]; in build_pipeline()
291 return SkOpts::start_pipeline_highp; in build_pipeline()
DSkUtils.h21 SkOpts::memset16(buffer, value, count); in sk_memset16()
24 SkOpts::memset32(buffer, value, count); in sk_memset32()
27 SkOpts::memset64(buffer, value, count); in sk_memset64()
DSkConvertPixels.cpp54 fn = swapRB ? SkOpts::RGBA_to_bgrA in swizzle_or_premul()
55 : SkOpts::RGBA_to_rgbA; in swizzle_or_premul()
59 fn = SkOpts::RGBA_to_BGRA; in swizzle_or_premul()
DSkSwizzle.cpp13 SkOpts::RGBA_to_BGRA(dest, src, count); in SkSwapRB()
/external/skia/src/core/
DSkRasterPipeline.cpp267 *--ip = (void*)SkOpts::just_return_lowp; in build_pipeline()
269 SkOpts::StageFn fn; in build_pipeline()
270 if (!st->rawFunction && (fn = SkOpts::stages_lowp[st->stage])) { in build_pipeline()
281 return SkOpts::start_pipeline_lowp; in build_pipeline()
284 *--ip = (void*)SkOpts::just_return_highp; in build_pipeline()
292 *--ip = (void*)SkOpts::stages_highp[st->stage]; in build_pipeline()
295 return SkOpts::start_pipeline_highp; in build_pipeline()
DSkUtils.h21 SkOpts::memset16(buffer, value, count); in sk_memset16()
24 SkOpts::memset32(buffer, value, count); in sk_memset32()
27 SkOpts::memset64(buffer, value, count); in sk_memset64()
DSkConvertPixels.cpp54 fn = swapRB ? SkOpts::RGBA_to_bgrA in swizzle_or_premul()
55 : SkOpts::RGBA_to_rgbA; in swizzle_or_premul()
59 fn = SkOpts::RGBA_to_BGRA; in swizzle_or_premul()
/external/skia/tools/
DUrlDataManager.h55 return SkOpts::hash(key.bytes(), key.size()); in Hash()
65 return SkOpts::hash(key.c_str(), strlen(key.c_str())); in Hash()
/external/skqp/tools/
DUrlDataManager.h55 return SkOpts::hash(key.bytes(), key.size()); in Hash()
65 return SkOpts::hash(key.c_str(), strlen(key.c_str())); in Hash()
/external/skia/src/pdf/
DSkPDFGradientShader.cpp22 SkOpts::hash(v.fColors, v.fColorCount * sizeof(SkColor)), in hash()
23 SkOpts::hash(v.fColorOffsets, v.fColorCount * sizeof(SkScalar)), in hash()
24 SkOpts::hash(v.fPoint, 2 * sizeof(SkPoint)), in hash()
25 SkOpts::hash(v.fRadius, 2 * sizeof(SkScalar)), in hash()
29 return SkOpts::hash(buffer, sizeof(buffer)); in hash()
36 SkOpts::hash(&k.fCanvasTransform, sizeof(SkMatrix)), in hash()
37 SkOpts::hash(&k.fShaderTransform, sizeof(SkMatrix)), in hash()
38 SkOpts::hash(&k.fBBox, sizeof(SkIRect)) in hash()
40 return SkOpts::hash(buffer, sizeof(buffer)); in hash()
/external/skqp/src/pdf/
DSkPDFGradientShader.cpp22 SkOpts::hash(v.fColors, v.fColorCount * sizeof(SkColor)), in hash()
23 SkOpts::hash(v.fColorOffsets, v.fColorCount * sizeof(SkScalar)), in hash()
24 SkOpts::hash(v.fPoint, 2 * sizeof(SkPoint)), in hash()
25 SkOpts::hash(v.fRadius, 2 * sizeof(SkScalar)), in hash()
29 return SkOpts::hash(buffer, sizeof(buffer)); in hash()
36 SkOpts::hash(&k.fCanvasTransform, sizeof(SkMatrix)), in hash()
37 SkOpts::hash(&k.fShaderTransform, sizeof(SkMatrix)), in hash()
38 SkOpts::hash(&k.fBBox, sizeof(SkIRect)) in hash()
40 return SkOpts::hash(buffer, sizeof(buffer)); in hash()
/external/skqp/src/codec/
DSkSwizzler.cpp296 SkOpts::gray_to_RGB1((uint32_t*) dst, src + offset, width); in fast_swizzle_gray_to_n32()
335 SkOpts::grayA_to_RGBA((uint32_t*) dst, src + offset, width); in fast_swizzle_grayalpha_to_n32_unpremul()
361 SkOpts::grayA_to_rgbA((uint32_t*) dst, src + offset, width); in fast_swizzle_grayalpha_to_n32_premul()
422 SkOpts::RGB_to_RGB1((uint32_t*) dst, src + offset, width); in fast_swizzle_rgb_to_rgba()
433 SkOpts::RGB_to_BGR1((uint32_t*) dst, src + offset, width); in fast_swizzle_rgb_to_bgra()
482 SkOpts::RGBA_to_rgbA((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_rgba_to_rgba_premul()
493 SkOpts::RGBA_to_bgrA((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_rgba_to_bgra_premul()
517 SkOpts::RGBA_to_BGRA((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_rgba_to_bgra_unpremul()
712 SkOpts::inverted_CMYK_to_RGB1((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_cmyk_to_rgba()
723 SkOpts::inverted_CMYK_to_BGR1((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_cmyk_to_bgra()
/external/skia/src/codec/
DSkSwizzler.cpp296 SkOpts::gray_to_RGB1((uint32_t*) dst, src + offset, width); in fast_swizzle_gray_to_n32()
335 SkOpts::grayA_to_RGBA((uint32_t*) dst, src + offset, width); in fast_swizzle_grayalpha_to_n32_unpremul()
361 SkOpts::grayA_to_rgbA((uint32_t*) dst, src + offset, width); in fast_swizzle_grayalpha_to_n32_premul()
422 SkOpts::RGB_to_RGB1((uint32_t*) dst, src + offset, width); in fast_swizzle_rgb_to_rgba()
433 SkOpts::RGB_to_BGR1((uint32_t*) dst, src + offset, width); in fast_swizzle_rgb_to_bgra()
482 SkOpts::RGBA_to_rgbA((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_rgba_to_rgba_premul()
493 SkOpts::RGBA_to_bgrA((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_rgba_to_bgra_premul()
517 SkOpts::RGBA_to_BGRA((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_rgba_to_bgra_unpremul()
712 SkOpts::inverted_CMYK_to_RGB1((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_cmyk_to_rgba()
723 SkOpts::inverted_CMYK_to_BGR1((uint32_t*) dst, (const uint32_t*)(src + offset), width); in fast_swizzle_cmyk_to_bgra()
/external/skia/src/opts/
DSkOpts_sse42.cpp13 namespace SkOpts { namespace
DSkOpts_crc32.cpp13 namespace SkOpts { namespace
/external/skqp/src/opts/
DSkOpts_sse42.cpp13 namespace SkOpts { namespace
DSkOpts_crc32.cpp13 namespace SkOpts { namespace

1234