/third_party/skia/tests/ |
D | ChecksumTest.cpp | 24 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() 81 REPORTER_ASSERT(r, SkOpts::hash(bytes, 0) == 0x00000000, "%08x", SkOpts::hash(bytes, 0)); in DEF_TEST() 82 REPORTER_ASSERT(r, SkOpts::hash(bytes, 1) == 0x00000000, "%08x", SkOpts::hash(bytes, 1)); in DEF_TEST() 83 REPORTER_ASSERT(r, SkOpts::hash(bytes, 2) == 0xf26b8303, "%08x", SkOpts::hash(bytes, 2)); in DEF_TEST() [all …]
|
D | SwizzlerTest.cpp | 121 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()
|
/third_party/skia/bench/ |
D | SwizzleBench.cpp | 14 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 …]
|
D | ChecksumBench.cpp | 61 volatile uint32_t result = SkOpts::hash(fData, sizeof(fData)); in onDraw()
|
/third_party/skia/src/core/ |
D | SkOpts.h | 19 namespace SkOpts { 91 SkOpts::memset16(buffer, value, count); in sk_memset16() 94 SkOpts::memset32(buffer, value, count); in sk_memset32() 97 SkOpts::memset64(buffer, value, count); in sk_memset64()
|
D | SkRasterPipeline.cpp | 363 *--ip = (void*)SkOpts::just_return_lowp; in build_pipeline() 365 if (auto fn = SkOpts::stages_lowp[st->stage]) { in build_pipeline() 376 return SkOpts::start_pipeline_lowp; in build_pipeline() 380 *--ip = (void*)SkOpts::just_return_highp; in build_pipeline() 385 *--ip = (void*)SkOpts::stages_highp[st->stage]; in build_pipeline() 387 return SkOpts::start_pipeline_highp; in build_pipeline()
|
D | SkConvertPixels.cpp | 54 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()
|
D | SkOpts_erms.cpp | 101 namespace SkOpts { namespace 119 namespace SkOpts { namespace
|
D | SkSwizzle.cpp | 13 SkOpts::RGBA_to_BGRA(dest, src, count); in SkSwapRB()
|
D | SkBitmapProcState.cpp | 186 SkASSERT(SkOpts::S32_alpha_D32_filter_DXDY || inv.isScaleTranslate()); in init() 256 SkASSERT(SkOpts::S32_alpha_D32_filter_DXDY || fInvMatrix.isScaleTranslate()); in chooseProcs() 274 fSampleProc32 = fBilerp ? SkOpts::S32_alpha_D32_filter_DX : S32_alpha_D32_nofilter_DX ; in chooseProcs() 276 fSampleProc32 = fBilerp ? SkOpts::S32_alpha_D32_filter_DXDY : S32_alpha_D32_nofilter_DXDY; in chooseProcs()
|
/third_party/skia/include/private/ |
D | SkChecksum.h | 58 return SkOpts::hash_fn(&k, sizeof(K), 0); in operator() 62 return SkOpts::hash_fn(k.c_str(), k.size(), 0); in operator()
|
D | SkOpts_spi.h | 16 namespace SkOpts {
|
/third_party/skia/tools/ |
D | UrlDataManager.h | 79 return SkOpts::hash(key.bytes(), key.size()); in Hash() 89 return SkOpts::hash(key.c_str(), strlen(key.c_str())); in Hash()
|
/third_party/skia/src/pdf/ |
D | SkPDFGradientShader.cpp | 22 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()
|
/third_party/skia/src/codec/ |
D | SkSwizzler.cpp | 296 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()
|
/third_party/skia/src/gpu/d3d/ |
D | GrD3DResourceProvider.h | 109 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator() 147 return SkOpts::hash_fn(key.data(), in operator()
|
/third_party/skia/src/opts/ |
D | SkOpts_skx.cpp | 13 namespace SkOpts { namespace
|
D | SkOpts_sse42.cpp | 13 namespace SkOpts { namespace
|
D | SkOpts_crc32.cpp | 13 namespace SkOpts { namespace
|
D | SkOpts_avx.cpp | 13 namespace SkOpts { namespace
|
D | SkOpts_ssse3.cpp | 15 namespace SkOpts { namespace
|
D | SkOpts_hsw.cpp | 19 namespace SkOpts { namespace
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlSampler.h | 35 return SkOpts::hash(reinterpret_cast<const uint32_t*>(&key), sizeof(Key)); in Hash()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnGpu.h | 238 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator() 244 return SkOpts::hash_fn(&samplerState, sizeof(samplerState), 0); in operator()
|
/third_party/skia/src/gpu/ops/ |
D | SmallPathShapeData.h | 64 return SkOpts::hash(key.data(), sizeof(uint32_t) * key.count32()); in Hash()
|