Home
last modified time | relevance | path

Searched refs:xformer (Results 1 – 25 of 55) sorted by relevance

123

/external/skqp/src/core/
DSkColorSpaceXformer.cpp60 AutoCachePurge(SkColorSpaceXformer* xformer) in AutoCachePurge() argument
61 : fXformer(xformer) { in AutoCachePurge()
103 [](const SkImage* img, SkColorSpaceXformer* xformer) { in apply() argument
104 return img->makeColorSpace(xformer->fDst); in apply()
124 [](const SkColorFilter* f, SkColorSpaceXformer* xformer) { in apply() argument
125 return f->makeColorSpace(xformer); in apply()
132 [](const SkImageFilter* f, SkColorSpaceXformer* xformer) { in apply() argument
133 return f->makeColorSpace(xformer); in apply()
DSkModeColorFilter.cpp77 sk_sp<SkColorFilter> SkModeColorFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
78 SkColor color = xformer->apply(fColor); in onMakeColorSpace()
82 return this->INHERITED::onMakeColorSpace(xformer); in onMakeColorSpace()
DSkColorFilter.cpp147 sk_sp<SkColorFilter> onMakeColorSpace(SkColorSpaceXformer* xformer) const override { in onMakeColorSpace()
148 auto outer = xformer->apply(fOuter.get()); in onMakeColorSpace()
149 auto inner = xformer->apply(fInner.get()); in onMakeColorSpace()
153 return this->INHERITED::onMakeColorSpace(xformer); in onMakeColorSpace()
DSkColorSpaceXformCanvas.cpp26 MaybePaint(const SkPaint* p, SkColorSpaceXformer* xformer) { in MaybePaint()
27 if (p) { fPaint = fStorage.set(xformer->apply(*p)); } in MaybePaint()
36 std::unique_ptr<SkColorSpaceXformer> xformer) in SkColorSpaceXformCanvas() argument
40 , fXformer(std::move(xformer)) in SkColorSpaceXformCanvas()
349 std::unique_ptr<SkColorSpaceXformer> xformer = SkColorSpaceXformer::Make(targetCS); in SkCreateColorSpaceXformCanvas() local
350 if (!xformer) { in SkCreateColorSpaceXformCanvas()
355 std::move(xformer)); in SkCreateColorSpaceXformCanvas()
DSkLocalMatrixImageFilter.cpp60 sk_sp<SkImageFilter> SkLocalMatrixImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) in onMakeColorSpace()
64 auto input = xformer->apply(this->getInput(0)); in onMakeColorSpace()
/external/skqp/src/shaders/
DSkLights.cpp52 static SkColor3f xform_color(const SkColor3f& color, SkColorSpaceXformer* xformer) { in xform_color() argument
57 SkColor xformedColor = xformer->apply(origColor); in xform_color()
63 sk_sp<SkLights> SkLights::makeColorSpace(SkColorSpaceXformer* xformer) const { in makeColorSpace()
66 Light light(fLights[i].type(), xform_color(fLights[i].color(), xformer), in makeColorSpace()
70 builder.setAmbientLightColor(xform_color(fAmbientLightColor, xformer)); in makeColorSpace()
DSkColorShader.h48 sk_sp<SkShader> onMakeColorSpace(SkColorSpaceXformer* xformer) const override { in onMakeColorSpace() argument
49 return SkShader::MakeColorShader(xformer->apply(fColor)); in onMakeColorSpace()
71 sk_sp<SkShader> onMakeColorSpace(SkColorSpaceXformer* xformer) const override;
DSkColorFilterShader.cpp50 sk_sp<SkShader> SkColorFilterShader::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
51 return xformer->apply(fShader.get())->makeWithColorFilter(xformer->apply(fFilter.get())); in onMakeColorSpace()
DSkComposeShader.cpp61 sk_sp<SkShader> SkComposeShader::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
62 return MakeCompose(xformer->apply(fDst.get()), xformer->apply(fSrc.get()), in onMakeColorSpace()
DSkImageShader.h47 sk_sp<SkShader> onMakeColorSpace(SkColorSpaceXformer* xformer) const override { in onMakeColorSpace() argument
48 return xformer->apply(fImage.get())->makeShader(fTileModeX, fTileModeY, in onMakeColorSpace()
DSkLocalMatrixShader.h52 sk_sp<SkShader> onMakeColorSpace(SkColorSpaceXformer* xformer) const override { in onMakeColorSpace() argument
53 return as_SB(fProxyShader)->makeColorSpace(xformer)->makeWithLocalMatrix( in onMakeColorSpace()
DSkShaderBase.h155 sk_sp<SkShader> makeColorSpace(SkColorSpaceXformer* xformer) const { in makeColorSpace() argument
156 return this->onMakeColorSpace(xformer); in makeColorSpace()
DSkColorShader.cpp70 sk_sp<SkShader> SkColor4Shader::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
73 xformer->dst().get(), kUnpremul_SkAlphaType).apply(color.vec()); in onMakeColorSpace()
/external/skqp/bench/
DColorSpaceXformBench.cpp15 enum class Mode { steps, xformer }; enumerator
28 case Mode::xformer: return "ColorSpaceXformBench_xformer"; in onGetName()
59 case Mode::xformer: { in onDraw()
74 DEF_BENCH(return new ColorSpaceXformBench{Mode::xformer};)
/external/skqp/src/effects/
DSkColorMatrixFilter.cpp43 sk_sp<SkColorFilter> onMakeColorSpace(SkColorSpaceXformer* xformer) const override { in onMakeColorSpace()
44 SkColor add = xformer->apply(fAdd); in onMakeColorSpace()
48 return this->INHERITED::onMakeColorSpace(xformer); in onMakeColorSpace()
/external/skqp/src/effects/imagefilters/
DSkComposeImageFilter.cpp66 sk_sp<SkImageFilter> SkComposeImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
69 auto input0 = xformer->apply(this->getInput(0)); in onMakeColorSpace()
70 auto input1 = xformer->apply(this->getInput(1)); in onMakeColorSpace()
DSkColorFilterImageFilter.cpp120 sk_sp<SkImageFilter> SkColorFilterImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) in onMakeColorSpace()
124 sk_sp<SkImageFilter> input = xformer->apply(this->getInput(0)); in onMakeColorSpace()
125 auto colorFilter = xformer->apply(fColorFilter.get()); in onMakeColorSpace()
DSkPaintImageFilter.cpp75 sk_sp<SkImageFilter> SkPaintImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
76 SkPaint paint = xformer->apply(fPaint); in onMakeColorSpace()
DSkDropShadowImageFilter.cpp117 sk_sp<SkImageFilter> SkDropShadowImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
120 sk_sp<SkImageFilter> input = xformer->apply(this->getInput(0)); in onMakeColorSpace()
121 SkColor color = xformer->apply(fColor); in onMakeColorSpace()
DSkMergeImageFilter.cpp97 sk_sp<SkImageFilter> SkMergeImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
101 inputs.push_back(xformer->apply(this->getInput(i))); in onMakeColorSpace()
/external/skqp/include/core/
DSkDrawLooper.h116 sk_sp<SkDrawLooper> makeColorSpace(SkColorSpaceXformer* xformer) const { in makeColorSpace() argument
117 return this->onMakeColorSpace(xformer); in makeColorSpace()
DSkColorFilter.h161 sk_sp<SkColorFilter> makeColorSpace(SkColorSpaceXformer* xformer) const { in makeColorSpace() argument
162 return this->onMakeColorSpace(xformer); in makeColorSpace()
/external/skqp/src/shaders/gradients/
DSkRadialGradient.cpp62 sk_sp<SkShader> SkRadialGradient::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
63 const AutoXformColors xformedColors(*this, xformer); in onMakeColorSpace()
DSkLinearGradient.cpp82 sk_sp<SkShader> SkLinearGradient::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
83 const AutoXformColors xformedColors(*this, xformer); in onMakeColorSpace()
DSkSweepGradient.cpp65 sk_sp<SkShader> SkSweepGradient::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
66 const AutoXformColors xformedColors(*this, xformer); in onMakeColorSpace()

123