Home | History | Annotate | Download | only in effects

Lines Matching refs:stitchData

61 struct SkPerlinNoiseShader::StitchData {
62 StitchData()
69 bool operator==(const StitchData& other) const {
102 StitchData fStitchDataInit;
361 const StitchData& stitchData, const SkPoint& noiseVector)
379 checkNoise(noiseX.noisePositionIntegerValue, stitchData.fWrapX, stitchData.fWidth);
381 checkNoise(noiseY.noisePositionIntegerValue, stitchData.fWrapY, stitchData.fHeight);
409 int channel, const PaintingData& paintingData, StitchData& stitchData, const SkPoint& point)
413 stitchData = paintingData.fStitchDataInit;
420 SkScalar noise = noise2D(channel, paintingData, stitchData, noiseVector);
428 stitchData.fWidth *= 2;
429 stitchData.fWrapX = stitchData.fWidth + kPerlinNoise;
430 stitchData.fHeight *= 2;
431 stitchData.fWrapY = stitchData.fHeight + kPerlinNoise;
451 SkPMColor SkPerlinNoiseShader::shade(const SkPoint& point, StitchData& stitchData) {
471 calculateTurbulenceValueForPoint(channel, *fPaintingData, stitchData, newPoint));
484 StitchData stitchData;
486 result[i] = shade(point, stitchData);
493 StitchData stitchData;
497 result[i] = SkDitherRGB32To565(shade(point, stitchData), dither);
640 const SkPerlinNoiseShader::StitchData& stitchData,
644 stitchTiles, stitchData, permutationsTexture, noiseTexture, matrix, alpha)));
654 const SkPerlinNoiseShader::StitchData& stitchData() const { return fStitchData; }
669 const SkPerlinNoiseShader::StitchData& stitchData,
675 , fStitchData(stitchData) {
684 SkPerlinNoiseShader::StitchData fStitchData;
1000 kVec2f_GrSLType, "stitchData");
1010 const char* stitchData = "stitchData";
1034 GrGLShaderVar(stitchData, kVec2f_GrSLType)
1048 noiseXY, stitchData, noiseXY, stitchData);
1050 noiseXY, stitchData, noiseXY, stitchData);
1052 noiseXY, stitchData, noiseXY, stitchData);
1054 noiseXY, stitchData, noiseXY, stitchData);
1174 builder->fsCodeAppendf("\n\t\tvec2 %s = %s;", stitchData, stitchDataUni);
1190 noiseFuncName.c_str(), chanCoordR, noiseVec, stitchData,
1191 noiseFuncName.c_str(), chanCoordG, noiseVec, stitchData,
1192 noiseFuncName.c_str(), chanCoordB, noiseVec, stitchData,
1193 noiseFuncName.c_str(), chanCoordA, noiseVec, stitchData);
1212 builder->fsCodeAppendf("\n\t\t\t%s *= vec2(2.0);", stitchData);
1288 const SkPerlinNoiseShader::StitchData& stitchData = turbulence.stitchData();
1289 uman.set2f(fStitchDataUni, SkIntToScalar(stitchData.fWidth),
1290 SkIntToScalar(stitchData.fHeight));