/external/skia/src/shaders/ |
D | SkShader.cpp | 34 SkShaderBase::SkShaderBase() = default; 36 SkShaderBase::~SkShaderBase() = default; 38 SkShaderBase::MatrixRec::MatrixRec(const SkMatrix& ctm) : fCTM(ctm) {} in MatrixRec() 40 std::optional<SkShaderBase::MatrixRec> 41 SkShaderBase::MatrixRec::apply(const SkStageRec& rec, const SkMatrix& postInv) const { in apply() 62 std::optional<SkShaderBase::MatrixRec> 63 SkShaderBase::MatrixRec::apply(skvm::Builder* p, in apply() 76 *local = SkShaderBase::ApplyMatrix(p, total, *local, uniforms); in apply() 85 GrFPResult SkShaderBase::MatrixRec::apply(std::unique_ptr<GrFragmentProcessor> fp, in apply() 100 SkShaderBase::MatrixRec SkShaderBase::MatrixRec::applied() const { in applied() [all …]
|
D | SkShaderBase.h | 44 class SkShaderBase : public SkShader { 46 ~SkShaderBase() override; 156 Context(const SkShaderBase& shader, const ContextRec&); 178 const SkShaderBase& fShader; 389 static sk_sp<SkShaderBase> Deserialize(const void* data, size_t size, 391 return sk_sp<SkShaderBase>(static_cast<SkShaderBase*>( 452 SkShaderBase(); 475 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB() 476 return static_cast<SkShaderBase*>(shader); in as_SB() 479 inline const SkShaderBase* as_SB(const SkShader* shader) { in as_SB() [all …]
|
D | SkBitmapProcShader.cpp | 15 class BitmapProcShaderContext : public SkShaderBase::Context { 17 BitmapProcShaderContext(const SkShaderBase& shader, const SkShaderBase::ContextRec& rec, in BitmapProcShaderContext() 24 fFlags |= SkShaderBase::kOpaqueAlpha_Flag; in BitmapProcShaderContext() 33 fFlags |= SkShaderBase::kConstInY32_Flag; in BitmapProcShaderContext() 73 using INHERITED = SkShaderBase::Context; 78 SkShaderBase::Context* SkBitmapProcLegacyShader::MakeContext( in MakeContext() 79 const SkShaderBase& shader, SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions& sampling, in MakeContext()
|
D | SkLocalMatrixShader.cpp | 25 SkShaderBase::GradientType SkLocalMatrixShader::asGradient(GradientInfo* info, in asGradient() 28 if (type != SkShaderBase::GradientType::kNone && localMatrix) { in asGradient() 75 SkShaderBase::Context* SkLocalMatrixShader::onMakeContext( in onMakeContext() 133 otherLocalMatrix = SkShaderBase::ConcatLocalMatrices(localMatrix, otherLocalMatrix); in makeWithLocalMatrix() 150 class SkCTMShader final : public SkShaderBase { 190 using INHERITED = SkShaderBase; 219 sk_sp<SkShader> SkShaderBase::makeWithCTM(const SkMatrix& postM) const { in makeWithCTM()
|
D | SkBitmapProcShader.h | 15 class SkBitmapProcLegacyShader : public SkShaderBase { 19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy, 23 using INHERITED = SkShaderBase;
|
D | SkTransformShader.h | 19 class SkTransformShader : public SkShaderBase { 21 explicit SkTransformShader(const SkShaderBase& shader, bool allowPerspective); 55 const SkShaderBase& fShader;
|
D | SkImageShader.h | 25 class SkImageShader : public SkShaderBase { 102 friend class SkShaderBase; variable 103 using INHERITED = SkShaderBase;
|
D | SkEmptyShader.cpp | 17 class SkEmptyShader : public SkShaderBase { 43 using INHERITED = SkShaderBase;
|
D | SkColorFilterShader.h | 16 class SkColorFilterShader : public SkShaderBase { 50 using INHERITED = SkShaderBase;
|
D | SkPictureShader.h | 25 class SkPictureShader : public SkShaderBase { 72 using INHERITED = SkShaderBase;
|
D | SkLocalMatrixShader.h | 18 class SkLocalMatrixShader final : public SkShaderBase { 78 using INHERITED = SkShaderBase;
|
D | SkComposeShader.cpp | 29 class SkShader_Blend final : public SkShaderBase { 68 using INHERITED = SkShaderBase; 101 const SkShaderBase::MatrixRec& mRec, in append_two_shaders()
|
D | SkColorShader.cpp | 30 class SkColorShader : public SkShaderBase { 79 class SkColor4Shader : public SkShaderBase { 130 SkShaderBase::GradientType SkColorShader::asGradient(GradientInfo* info, in asGradient()
|
/external/skia/src/pdf/ |
D | SkPDFGradientShader.cpp | 21 static uint32_t hash(const SkShaderBase::GradientInfo& v) { in hash() 132 static void write_gradient_ranges(const SkShaderBase::GradientInfo& info, SkSpan<size_t> rangeEnds, in write_gradient_ranges() 234 static void gradient_function_code(const SkShaderBase::GradientInfo& info, in gradient_function_code() 310 static std::unique_ptr<SkPDFDict> gradientStitchCode(const SkShaderBase::GradientInfo& info) { in gradientStitchCode() 457 static void linearCode(const SkShaderBase::GradientInfo& info, in linearCode() 470 static void radialCode(const SkShaderBase::GradientInfo& info, in radialCode() 494 static void twoPointConicalCode(const SkShaderBase::GradientInfo& info, in twoPointConicalCode() 605 static void sweepCode(const SkShaderBase::GradientInfo& info, in sweepCode() 682 const SkShaderBase::GradientInfo& info = state.fInfo; in make_function_shader() 686 bool doStitchFunctions = (state.fType == SkShaderBase::GradientType::kLinear || in make_function_shader() [all …]
|
D | SkPDFGradientShader.h | 27 SkShaderBase::GradientType fType; 28 SkShaderBase::GradientInfo fInfo; 41 inline bool operator==(const SkShaderBase::GradientInfo& u, const SkShaderBase::GradientInfo& v) {
|
/external/skia/tests/ |
D | GradientTest.cpp | 78 SkShaderBase::GradientInfo* info, in gradCheck() 79 SkShaderBase::GradientType gt, in gradCheck() 103 REPORTER_ASSERT(reporter, SkShaderBase::GradientType::kNone == as_SB(s)->asGradient()); in none_gradproc() 108 REPORTER_ASSERT(reporter, SkShaderBase::GradientType::kColor == as_SB(s)->asGradient()); in color_gradproc() 110 SkShaderBase::GradientInfo info; in color_gradproc() 120 SkShaderBase::GradientInfo info; in linear_gradproc() 121 checkRec.gradCheck(reporter, s, &info, SkShaderBase::GradientType::kLinear); in linear_gradproc() 131 SkShaderBase::GradientInfo info; in radial_gradproc() 132 checkRec.gradCheck(reporter, s, &info, SkShaderBase::GradientType::kRadial); in radial_gradproc() 143 SkShaderBase::GradientInfo info; in sweep_gradproc() [all …]
|
/external/skia/tests/graphite/ |
D | PaintParamsKeyTest.cpp | 223 SkShaderBase::GradientType type) { in create_gradient_shader() 236 case SkShaderBase::GradientType::kLinear: in create_gradient_shader() 240 case SkShaderBase::GradientType::kRadial: in create_gradient_shader() 244 case SkShaderBase::GradientType::kSweep: in create_gradient_shader() 249 case SkShaderBase::GradientType::kConical: in create_gradient_shader() 255 case SkShaderBase::GradientType::kNone: in create_gradient_shader() 256 case SkShaderBase::GradientType::kColor: in create_gradient_shader() 338 return create_gradient_shader(rand, SkShaderBase::GradientType::kLinear); in create_shader() 340 return create_gradient_shader(rand, SkShaderBase::GradientType::kRadial); in create_shader() 342 return create_gradient_shader(rand, SkShaderBase::GradientType::kSweep); in create_shader() [all …]
|
/external/skia/src/gpu/ganesh/gradients/ |
D | GrGradientShader.h | 23 const SkShaderBase::MatrixRec&, 29 const SkShaderBase::MatrixRec&);
|
/external/skia/src/android/ |
D | SkAndroidFrameworkUtils.cpp | 55 SkTLazy<SkShaderBase::GradientInfo> baseInfo; in ShaderAsALinearGradient() 62 if (as_SB(shader)->asGradient(baseInfo.getMaybeNull()) != SkShaderBase::GradientType::kLinear) { in ShaderAsALinearGradient()
|
/external/skia/src/core/ |
D | SkCoreBlitters.h | 39 SkShaderBase::Context* shaderContext); 45 SkShaderBase::Context* fShaderContext; 125 SkShaderBase::Context* shaderContext);
|
/external/skia/src/gpu/graphite/ |
D | KeyHelpers.h | 77 GradientData(SkShaderBase::GradientType, int numStops); 81 GradientData(SkShaderBase::GradientType, 107 SkShaderBase::GradientType fType;
|
D | KeyHelpers.cpp | 175 GradientShaderBlocks::GradientData::GradientData(SkShaderBase::GradientType type, int numStops) in GradientData() 187 GradientShaderBlocks::GradientData::GradientData(SkShaderBase::GradientType type, in GradientData() 232 case SkShaderBase::GradientType::kLinear: in BeginBlock() 240 case SkShaderBase::GradientType::kRadial: in BeginBlock() 248 case SkShaderBase::GradientType::kSweep: in BeginBlock() 256 case SkShaderBase::GradientType::kConical: in BeginBlock() 264 case SkShaderBase::GradientType::kColor: in BeginBlock() 265 case SkShaderBase::GradientType::kNone: in BeginBlock()
|
D | FactoryFunctions.cpp | 281 PrecompileGradientShader(SkShaderBase::GradientType type) : fType(type) {} in PrecompileGradientShader() 317 SkShaderBase::GradientType fType; 321 return sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kLinear); in LinearGradient() 325 return sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kRadial); in RadialGradient() 329 return sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kSweep); in SweepGradient() 333 return sk_make_sp<PrecompileGradientShader>(SkShaderBase::GradientType::kConical); in TwoPointConicalGradient()
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShaderBase.h | 29 class SkGradientShaderBase : public SkShaderBase { 169 using INHERITED = SkShaderBase;
|
/external/skia/src/svg/ |
D | SkSVGDevice.cpp | 354 SkString addLinearGradientDef(const SkShaderBase::GradientInfo& info, 444 SkShaderBase::GradientInfo grInfo; in addGradientShaderResources() 447 if (gradient_type != SkShaderBase::GradientType::kColor && in addGradientShaderResources() 448 gradient_type != SkShaderBase::GradientType::kLinear) { in addGradientShaderResources() 465 resources->fPaintServer = gradient_type == SkShaderBase::GradientType::kColor in addGradientShaderResources() 610 if (as_SB(shader)->asGradient() != SkShaderBase::GradientType::kNone) { in addShaderResources() 618 SkString SkSVGDevice::AutoElement::addLinearGradientDef(const SkShaderBase::GradientInfo& info, in addLinearGradientDef()
|