Lines Matching refs:SkPerlinNoiseShader
8 #include "SkPerlinNoiseShader.h"
57 struct SkPerlinNoiseShader::StitchData {
78 struct SkPerlinNoiseShader::PaintingData {
252 SkShader* SkPerlinNoiseShader::CreateFractalNoise(SkScalar baseFrequencyX, SkScalar baseFrequencyY,
255 return new SkPerlinNoiseShader(kFractalNoise_Type, baseFrequencyX, baseFrequencyY, numOctaves,
259 SkShader* SkPerlinNoiseShader::CreateTurbulence(SkScalar baseFrequencyX, SkScalar baseFrequencyY,
262 return new SkPerlinNoiseShader(kTurbulence_Type, baseFrequencyX, baseFrequencyY, numOctaves,
266 SkPerlinNoiseShader::SkPerlinNoiseShader(SkPerlinNoiseShader::Type type,
283 SkPerlinNoiseShader::~SkPerlinNoiseShader() {
286 SkFlattenable* SkPerlinNoiseShader::CreateProc(SkReadBuffer& buffer) {
298 return SkPerlinNoiseShader::CreateFractalNoise(freqX, freqY, octaves, seed, &tileSize);
300 return SkPerlinNoiseShader::CreateTubulence(freqX, freqY, octaves, seed, &tileSize);
306 void SkPerlinNoiseShader::flatten(SkWriteBuffer& buffer) const {
316 SkScalar SkPerlinNoiseShader::PerlinNoiseShaderContext::noise2D(
333 const SkPerlinNoiseShader& perlinNoiseShader = static_cast<const SkPerlinNoiseShader&>(fShader);
374 SkScalar SkPerlinNoiseShader::PerlinNoiseShaderContext::calculateTurbulenceValueForPoint(
376 const SkPerlinNoiseShader& perlinNoiseShader = static_cast<const SkPerlinNoiseShader&>(fShader);
417 SkPMColor SkPerlinNoiseShader::PerlinNoiseShaderContext::shade(
432 SkShader::Context* SkPerlinNoiseShader::onCreateContext(const ContextRec& rec,
437 size_t SkPerlinNoiseShader::contextSize(const ContextRec&) const {
441 SkPerlinNoiseShader::PerlinNoiseShaderContext::PerlinNoiseShaderContext(
442 const SkPerlinNoiseShader& shader, const ContextRec& rec)
457 SkPerlinNoiseShader::PerlinNoiseShaderContext::~PerlinNoiseShaderContext() { delete fPaintingData; }
459 void SkPerlinNoiseShader::PerlinNoiseShaderContext::shadeSpan(
493 static GrFragmentProcessor* Create(SkPerlinNoiseShader::Type type,
495 SkPerlinNoiseShader::PaintingData* paintingData,
506 const SkPerlinNoiseShader::StitchData& stitchData() const { return fPaintingData->fStitchDataInit; }
508 SkPerlinNoiseShader::Type type() const { return fType; }
537 GrPerlinNoiseEffect(SkPerlinNoiseShader::Type type,
539 SkPerlinNoiseShader::PaintingData* paintingData,
557 SkPerlinNoiseShader::Type fType;
563 SkPerlinNoiseShader::PaintingData *fPaintingData;
584 SkPerlinNoiseShader::CreateFractalNoise(baseFrequencyX, baseFrequencyY, numOctaves, seed,
586 SkPerlinNoiseShader::CreateTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, seed,
797 if (pne.type() != SkPerlinNoiseShader::kFractalNoise_Type) {
817 if (pne.type() != SkPerlinNoiseShader::kFractalNoise_Type) {
830 if (pne.type() == SkPerlinNoiseShader::kFractalNoise_Type) {
855 case SkPerlinNoiseShader::kFractalNoise_Type:
858 case SkPerlinNoiseShader::kTurbulence_Type:
883 const SkPerlinNoiseShader::StitchData& stitchData = turbulence.stitchData();
890 const GrFragmentProcessor* SkPerlinNoiseShader::asFragmentProcessor(
920 SkPerlinNoiseShader::PaintingData* paintingData =
949 void SkPerlinNoiseShader::toString(SkString* str) const {
950 str->append("SkPerlinNoiseShader: (");