Home
last modified time | relevance | path

Searched refs:dstCS (Results 1 – 22 of 22) sorted by relevance

/third_party/skia/src/core/
DSkColorFilter.cpp95 SkColorSpace* dstCS) const { in filterColor4f()
98 dstCS, kPremul_SkAlphaType).apply(color.vec()); in filterColor4f()
100 return as_CFB(this)->onFilterColor4f(color, dstCS).unpremul(); in filterColor4f()
104 SkColorSpace* dstCS) const { in onFilterColor4f()
112 &pipeline, &alloc, kRGBA_F32_SkColorType, dstCS, blankPaint, nullptr, matrixProvider in onFilterColor4f()
127 SkColorInfo dstInfo = {kRGBA_F32_SkColorType, kPremul_SkAlphaType, sk_ref_sp(dstCS)}; in onFilterColor4f()
342 sk_sp<SkColorSpace> workingFormat(const sk_sp<SkColorSpace>& dstCS, SkAlphaType* at) const { in workingFormat()
346 if (fUseDstTF ) { SkAssertResult(dstCS->isNumericalTransferFn(&tf)); } in workingFormat()
347 if (fUseDstGamut) { SkAssertResult(dstCS->toXYZD50 (&gamut)); } in workingFormat()
357 sk_sp<SkColorSpace> dstCS = dstColorInfo.refColorSpace(); in asFragmentProcessor() local
[all …]
DSkPaintPriv.cpp94 void SkPaintPriv::RemoveColorFilter(SkPaint* p, SkColorSpace* dstCS) { in RemoveColorFilter() argument
104 p->setColor(filter->filterColor4f(p->getColor4f(), sk_srgb_singleton(), dstCS), dstCS); in RemoveColorFilter()
DSkPaintPriv.h58 static void RemoveColorFilter(SkPaint*, SkColorSpace* dstCS);
DSkBlitter_Sprite.cpp128 if (auto dstCS = fDst.colorSpace()) { in setup() local
138 dstCS, kPremul_SkAlphaType) in setup()
DSkRasterPipelineBlitter.cpp98 SkColorSpace* dstCS = dst.colorSpace(); in SkCreateRasterPipelineBlitter() local
102 dstCS, kUnpremul_SkAlphaType).apply(paintColor.vec()); in SkCreateRasterPipelineBlitter()
121 {&shaderPipeline, alloc, dstCT, dstCS, paint, nullptr, matrixProvider})) { in SkCreateRasterPipelineBlitter()
DSkColorFilterBase.h73 virtual SkPMColor4f onFilterColor4f(const SkPMColor4f& color, SkColorSpace* dstCS) const;
DSkRuntimeEffect.cpp724 const SkColorSpace* dstCS) { in get_xformed_uniforms() argument
728 dstCS, kUnpremul_SkAlphaType); in get_xformed_uniforms()
892 SkPMColor4f onFilterColor4f(const SkPMColor4f& color, SkColorSpace* dstCS) const override { in onFilterColor4f()
898 return SkColorFilterBase::onFilterColor4f(color, dstCS); in onFilterColor4f()
902 sk_sp<SkData> inputs = get_xformed_uniforms(fEffect.get(), fUniforms, dstCS); in onFilterColor4f()
912 return as_CFB(colorFilter)->onFilterColor4f(inColor, dstCS); in onFilterColor4f()
/third_party/skia/src/shaders/
DSkPictureShader.cpp376 auto dstCS = ref_or_srgb(args.fDstColorInfo->colorSpace()); in asFragmentProcessor() local
378 dstColorType, dstCS.get(), in asFragmentProcessor()
393 builder[0] = dstCS->toXYZD50Hash(); in asFragmentProcessor()
394 builder[1] = dstCS->transferFnHash(); in asFragmentProcessor()
/third_party/flutter/skia/src/core/
DSkRasterPipelineBlitter.cpp86 SkColorSpace* dstCS = dst.colorSpace() ? dst.colorSpace() in SkCreateRasterPipelineBlitter()
89 SkColorSpace* dstCS = dst.colorSpace(); in SkCreateRasterPipelineBlitter() local
94 dstCS, kUnpremul_SkAlphaType).apply(paintColor.vec()); in SkCreateRasterPipelineBlitter()
111 if (shader->appendStages({&shaderPipeline, alloc, dstCT, dstCS, paint, nullptr, ctm})) { in SkCreateRasterPipelineBlitter()
DSkBlitter_Sprite.cpp122 if (auto dstCS = fDst.colorSpace()) { in setup() local
132 dstCS, kPremul_SkAlphaType) in setup()
/third_party/flutter/skia/src/shaders/gradients/
DSk4fGradientBase.h39 void init(const SkGradientShaderBase&, SkColorSpace* dstCS, SkTileMode tileMode,
DSk4fGradientBase.cpp140 void Sk4fGradientIntervalBuffer::init(const SkGradientShaderBase& shader, SkColorSpace* dstCS, in init() argument
199 SkColor4fXformer xformedColors(shader.fOrigColors4f, count, shader.fColorSpace.get(), dstCS); in init()
/third_party/skia/src/shaders/gradients/
DSk4fGradientBase.h39 void init(const SkGradientShaderBase&, SkColorSpace* dstCS, SkTileMode tileMode,
DSk4fGradientBase.cpp140 void Sk4fGradientIntervalBuffer::init(const SkGradientShaderBase& shader, SkColorSpace* dstCS, in init() argument
199 SkColor4fXformer xformedColors(shader.fOrigColors4f, count, shader.fColorSpace.get(), dstCS); in init()
DSkGradientShaderPriv.h83 const SkMatrixProvider&, const SkMatrix* localM, const SkColorInfo& dstCS,
/third_party/skia/include/core/
DSkColorFilter.h49 SkColorSpace* dstCS) const;
/third_party/skia/src/gpu/
DSkGr.cpp524 SkColorSpace* dstCS = dstColorInfo.colorSpace(); in skpaint_to_grpaint_impl() local
525 grPaint->setColor4f(colorFilter->filterColor4f(origColor, dstCS, dstCS).premul()); in skpaint_to_grpaint_impl()
/third_party/skia/site/docs/user/
Dcolor.md82 if (dstCS == nullptr) { dstCS = srcCS; }
/third_party/flutter/skia/src/utils/
DSkPatchUtils.cpp219 static void skcolor_to_float(SkPMColor4f* dst, const SkColor* src, int count, SkColorSpace* dstCS) { in skcolor_to_float() argument
223 kPremul_SkAlphaType, sk_ref_sp(dstCS)); in skcolor_to_float()
/third_party/skia/src/utils/
DSkPatchUtils.cpp221 static void skcolor_to_float(SkPMColor4f* dst, const SkColor* src, int count, SkColorSpace* dstCS) { in skcolor_to_float() argument
225 kPremul_SkAlphaType, sk_ref_sp(dstCS)); in skcolor_to_float()
/third_party/skia/tests/
DReadPixelsTest.cpp500 for (const sk_sp<SkColorSpace>& dstCS : kColorSpaces) { in DEF_TEST() local
505 SkImageInfo::Make(kNumPixels, 1, dstCT, dstAT, dstCS), in DEF_TEST()
/third_party/flutter/skia/tests/
DReadPixelsTest.cpp608 for (sk_sp<SkColorSpace> dstCS : kColorSpaces) { in DEF_TEST()
613 SkImageInfo::Make(kNumPixels, 1, dstCT, dstAT, dstCS), in DEF_TEST()