/external/skia/bench/ |
D | HardStopGradientBench_ScaleNumHardStops.cpp | 26 fColorCount = colorCount; in HardStopGradientBench_ScaleNumHardStops() 54 SkAutoTArray<SkColor> colors(fColorCount); in onPreDraw() 55 for (int i = 0; i < fColorCount; i++) { in onPreDraw() 61 SkAutoTArray<SkScalar> positions(fColorCount); in onPreDraw() 65 positions[k++] = val / fColorCount; in onPreDraw() 66 positions[k++] = val / fColorCount; in onPreDraw() 68 for (int i = k; i < fColorCount; i++) { in onPreDraw() 69 positions[i] = i / (fColorCount - 1.0f); in onPreDraw() 75 fColorCount, in onPreDraw() 94 int fColorCount; member in HardStopGradientBench_ScaleNumHardStops
|
D | HardStopGradientBench_ScaleNumColors.cpp | 26 fColorCount = count; in HardStopGradientBench_ScaleNumColors() 61 for (int i = 0; i < fColorCount; i++) { in onPreDraw() 69 for (int i = 2; i < fColorCount; i++) { in onPreDraw() 71 positions[i] = i / (fColorCount - 1.0f); in onPreDraw() 77 fColorCount, in onPreDraw() 97 int fColorCount; member in HardStopGradientBench_ScaleNumColors
|
/external/skqp/bench/ |
D | HardStopGradientBench_ScaleNumHardStops.cpp | 25 fColorCount = colorCount; in HardStopGradientBench_ScaleNumHardStops() 53 SkAutoTArray<SkColor> colors(fColorCount); in onPreDraw() 54 for (int i = 0; i < fColorCount; i++) { in onPreDraw() 60 SkAutoTArray<SkScalar> positions(fColorCount); in onPreDraw() 64 positions[k++] = val / fColorCount; in onPreDraw() 65 positions[k++] = val / fColorCount; in onPreDraw() 67 for (int i = k; i < fColorCount; i++) { in onPreDraw() 68 positions[i] = i / (fColorCount - 1.0f); in onPreDraw() 74 fColorCount, in onPreDraw() 93 int fColorCount; member in HardStopGradientBench_ScaleNumHardStops
|
D | HardStopGradientBench_ScaleNumColors.cpp | 37 fColorCount = count; in HardStopGradientBench_ScaleNumColors() 72 for (int i = 0; i < fColorCount; i++) { in onPreDraw() 80 for (int i = 2; i < fColorCount; i++) { in onPreDraw() 82 positions[i] = i / (fColorCount - 1.0f); in onPreDraw() 88 fColorCount, in onPreDraw() 108 int fColorCount; member in HardStopGradientBench_ScaleNumColors
|
/external/skqp/src/gpu/gradients/ |
D | GrGradientShader.cpp | 163 SkAutoSTMalloc<4, SkPMColor4f> colors(shader.fColorCount); in make_gradient() 164 SkColor4fXformer xformedColors(shader.fOrigColors4f, shader.fColorCount, in make_gradient() 166 for (int i = 0; i < shader.fColorCount; i++) { in make_gradient() 183 implicitPos.reserve(shader.fColorCount); in make_gradient() 184 SkScalar posScale = SK_Scalar1 / (shader.fColorCount - 1); in make_gradient() 185 for (int i = 0 ; i < shader.fColorCount; i++) { in make_gradient() 193 colors.get(), positions, shader.fColorCount, inputPremul, args); in make_gradient() 222 colors[0], colors[shader.fColorCount - 1], makePremul, allOpaque); in make_gradient() 267 fColorCount = random->nextRangeU(2, kMaxRandomGradientColors); in RandomParams() 271 if (fColorCount == 1 || (fColorCount >= 2 && random->nextBool())) { in RandomParams() [all …]
|
D | GrLinearGradientLayout.cpp | 70 params.fColorCount, params.fTileMode) in TestCreate() 72 params.fColorCount, params.fTileMode); in TestCreate()
|
D | GrRadialGradientLayout.fp | 61 params.fColorCount, params.fTileMode) 63 params.fStops, params.fColorCount,
|
D | GrRadialGradientLayout.cpp | 69 params.fColorCount, params.fTileMode) in TestCreate() 71 params.fStops, params.fColorCount, in TestCreate()
|
/external/skia/src/gpu/gradients/ |
D | GrGradientShader.cpp | 168 SkAutoSTMalloc<4, SkPMColor4f> colors(shader.fColorCount); in make_gradient() 169 SkColor4fXformer xformedColors(shader.fOrigColors4f, shader.fColorCount, in make_gradient() 171 for (int i = 0; i < shader.fColorCount; i++) { in make_gradient() 188 implicitPos.reserve_back(shader.fColorCount); in make_gradient() 189 SkScalar posScale = SK_Scalar1 / (shader.fColorCount - 1); in make_gradient() 190 for (int i = 0 ; i < shader.fColorCount; i++) { in make_gradient() 198 colors.get(), positions, shader.fColorCount, inputPremul, args); in make_gradient() 228 colors[0], colors[shader.fColorCount - 1], in make_gradient() 277 fColorCount = random->nextRangeU(2, kMaxRandomGradientColors); in RandomParams() 281 if (fColorCount == 1 || (fColorCount >= 2 && random->nextBool())) { in RandomParams() [all …]
|
D | GrRadialGradientLayout.fp | 58 params.fColorCount, params.fTileMode) 60 params.fStops, params.fColorCount,
|
/external/skia/tests/ |
D | GradientTest.cpp | 45 int fColorCount; member 55 SkAutoTMalloc<SkColor> colorStorage(fColorCount); in gradCheck() 56 SkAutoTMalloc<SkScalar> posStorage(fColorCount); in gradCheck() 58 info->fColorCount = fColorCount; in gradCheck() 63 REPORTER_ASSERT(reporter, info->fColorCount == fColorCount); in gradCheck() 65 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck() 67 !memcmp(info->fColorOffsets, fPos, fColorCount * sizeof(SkScalar))); in gradCheck() 84 info.fColorCount = 0; in color_gradproc() 86 REPORTER_ASSERT(reporter, 1 == info.fColorCount); in color_gradproc() 92 buildRec.fColorCount, buildRec.fTileMode)); in linear_gradproc() [all …]
|
/external/skqp/tests/ |
D | GradientTest.cpp | 43 int fColorCount; member 53 SkAutoTMalloc<SkColor> colorStorage(fColorCount); in gradCheck() 54 SkAutoTMalloc<SkScalar> posStorage(fColorCount); in gradCheck() 56 info->fColorCount = fColorCount; in gradCheck() 61 REPORTER_ASSERT(reporter, info->fColorCount == fColorCount); in gradCheck() 63 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck() 65 !memcmp(info->fColorOffsets, fPos, fColorCount * sizeof(SkScalar))); in gradCheck() 82 info.fColorCount = 0; in color_gradproc() 84 REPORTER_ASSERT(reporter, 1 == info.fColorCount); in color_gradproc() 90 buildRec.fColorCount, buildRec.fTileMode)); in linear_gradproc() [all …]
|
/external/skqp/src/shaders/gradients/ |
D | SkGradientShader.cpp | 148 fColorCount = desc.fCount; in SkGradientShaderBase() 155 fColorCount += dummyFirst + dummyLast; in SkGradientShaderBase() 158 size_t storageSize = fColorCount * (sizeof(SkColor4f) + (desc.fPos ? sizeof(SkScalar) : 0)); in SkGradientShaderBase() 160 fOrigPos = desc.fPos ? reinterpret_cast<SkScalar*>(fOrigColors4f + fColorCount) in SkGradientShaderBase() 209 desc.fCount = fColorCount; in flatten() 314 SkColor4fXformer xformedColors(fOrigColors4f, fColorCount, fColorSpace.get(), rec.fDstCS); in onAppendStages() 323 if (fColorCount == 2 && fOrigPos == nullptr) { in onAppendStages() 342 ctx->fs[i] = alloc->makeArray<float>(std::max(fColorCount+1, 8)); in onAppendStages() 343 ctx->bs[i] = alloc->makeArray<float>(std::max(fColorCount+1, 8)); in onAppendStages() 349 size_t stopCount = fColorCount; in onAppendStages() [all …]
|
D | Sk4fGradientBase.cpp | 34 , fBegin(reverse ? shader.fColorCount - 1 : 0) in IntervalIterator() 36 SkASSERT(shader.fColorCount > 0); in IntervalIterator() 47 const int end = fBegin + fAdvance * (fShader.fColorCount - 1); in iterate() 53 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterate() 73 const SkScalar dt = fAdvance * SK_Scalar1 / (fShader.fColorCount - 1); in iterateImplicitPos() 74 const int end = fBegin + fAdvance * (fShader.fColorCount - 2); in iterateImplicitPos() 80 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterateImplicitPos() 184 const auto count = shader.fColorCount; in init()
|
D | SkGradientShaderPriv.h | 106 SkASSERT(i < fColorCount); in getPos() 107 return fOrigPos ? fOrigPos[i] : SkIntToScalar(i) / (fColorCount - 1); in getPos() 111 SkASSERT(i < fColorCount); in getLegacyColor() 117 int fColorCount; variable
|
D | SkLinearGradient.cpp | 72 return fColorCount > 2 ? CheckedMakeContext<LinearGradient4fContext>(alloc, *this, rec) in onMakeBurstPipelineContext() 85 return SkGradientShader::MakeLinear(pts, xformedColors.fColors.get(), fOrigPos, fColorCount, in onMakeColorSpace()
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 151 fColorCount = desc.fCount; in SkGradientShaderBase() 158 fColorCount += dummyFirst + dummyLast; in SkGradientShaderBase() 161 size_t storageSize = fColorCount * (sizeof(SkColor4f) + (desc.fPos ? sizeof(SkScalar) : 0)); in SkGradientShaderBase() 163 fOrigPos = desc.fPos ? reinterpret_cast<SkScalar*>(fOrigColors4f + fColorCount) in SkGradientShaderBase() 212 desc.fCount = fColorCount; in flatten() 319 SkColor4fXformer xformedColors(fOrigColors4f, fColorCount, fColorSpace.get(), rec.fDstCS); in onAppendStages() 328 if (fColorCount == 2 && fOrigPos == nullptr) { in onAppendStages() 347 ctx->fs[i] = alloc->makeArray<float>(std::max(fColorCount+1, 8)); in onAppendStages() 348 ctx->bs[i] = alloc->makeArray<float>(std::max(fColorCount+1, 8)); in onAppendStages() 354 size_t stopCount = fColorCount; in onAppendStages() [all …]
|
D | SkGradientShaderPriv.h | 108 SkASSERT(i < fColorCount); in getPos() 109 return fOrigPos ? fOrigPos[i] : SkIntToScalar(i) / (fColorCount - 1); in getPos() 113 SkASSERT(i < fColorCount); in getLegacyColor() 119 for (int i = 0; i < fColorCount; ++i) { in colorsCanConvertToSkColor() 127 int fColorCount; variable
|
D | Sk4fGradientBase.cpp | 34 , fBegin(reverse ? shader.fColorCount - 1 : 0) in IntervalIterator() 36 SkASSERT(shader.fColorCount > 0); in IntervalIterator() 47 const int end = fBegin + fAdvance * (fShader.fColorCount - 1); in iterate() 53 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterate() 73 const SkScalar dt = fAdvance * SK_Scalar1 / (fShader.fColorCount - 1); in iterateImplicitPos() 74 const int end = fBegin + fAdvance * (fShader.fColorCount - 2); in iterateImplicitPos() 80 SkASSERT(curr >= 0 && curr < fShader.fColorCount); in iterateImplicitPos() 184 const auto count = shader.fColorCount; in init()
|
/external/skia/src/pdf/ |
D | SkPDFGradientShader.h | 41 return u.fColorCount == v.fColorCount 48 && SkPackedArrayEqual(u.fColors, v.fColors, u.fColorCount) 49 && SkPackedArrayEqual(u.fColorOffsets, v.fColorOffsets, u.fColorCount);
|
D | SkPDFGradientShader.cpp | 21 (uint32_t)v.fColorCount, in hash() 22 SkOpts::hash(v.fColors, v.fColorCount * sizeof(SkColor)), in hash() 23 SkOpts::hash(v.fColorOffsets, v.fColorCount * sizeof(SkScalar)), in hash() 147 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(info.fColorCount); in gradient_function_code() 149 for (int i = 0; i < info.fColorCount; i++) { in gradient_function_code() 166 for (int i = 1 ; i < info.fColorCount; i++) { in gradient_function_code() 187 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][0], result); in gradient_function_code() 189 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][1], result); in gradient_function_code() 191 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][2], result); in gradient_function_code() 226 int colorCount = info.fColorCount; in gradientStitchCode() [all …]
|
/external/skqp/src/pdf/ |
D | SkPDFGradientShader.h | 41 return u.fColorCount == v.fColorCount 48 && SkPackedArrayEqual(u.fColors, v.fColors, u.fColorCount) 49 && SkPackedArrayEqual(u.fColorOffsets, v.fColorOffsets, u.fColorCount);
|
D | SkPDFGradientShader.cpp | 21 (uint32_t)v.fColorCount, in hash() 22 SkOpts::hash(v.fColors, v.fColorCount * sizeof(SkColor)), in hash() 23 SkOpts::hash(v.fColorOffsets, v.fColorCount * sizeof(SkScalar)), in hash() 147 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(info.fColorCount); in gradient_function_code() 149 for (int i = 0; i < info.fColorCount; i++) { in gradient_function_code() 166 for (int i = 1 ; i < info.fColorCount; i++) { in gradient_function_code() 187 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][0], result); in gradient_function_code() 189 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][1], result); in gradient_function_code() 191 SkPDFUtils::AppendColorComponent(colorData[info.fColorCount - 1][2], result); in gradient_function_code() 226 int colorCount = info.fColorCount; in gradientStitchCode() [all …]
|
/external/skia/src/gpu/gradients/generated/ |
D | GrRadialGradientLayout.cpp | 76 params.fColorCount, in TestCreate() 82 params.fColorCount, in TestCreate()
|
D | GrLinearGradientLayout.cpp | 73 params.fColorCount, in TestCreate() 78 params.fColorCount, in TestCreate()
|