Searched refs:fSeed (Results 1 - 6 of 6) sorted by relevance

/external/skia/src/effects/
H A DSkDiscretePathEffect.cpp43 LCGRandom(uint32_t seed) : fSeed(seed) {}
53 uint32_t nextU() { uint32_t r = fSeed * kMul + kAdd; fSeed = r; return r; }
69 uint32_t fSeed; member in class:LCGRandom
H A DSkPerlinNoiseShader.cpp105 int fSeed; member in struct:SkPerlinNoiseShader::PaintingData
125 int result = gRandAmplitude * (fSeed % gRandQ) - gRandR * (fSeed / gRandQ);
128 fSeed = result;
138 fSeed = SkScalarTruncToInt(seed);
140 if (fSeed <= 0) {
141 fSeed = -(fSeed % (kRandMaximum - 1)) + 1;
143 if (fSeed > kRandMaximum - 1) {
144 fSeed
[all...]
/external/skia/samplecode/
H A DPerlinPatch.cpp68 SkScalar fSeed; member in class:PerlinPatchView
75 PerlinPatchView() : fXFreq(0.025f), fYFreq(0.025f), fSeed(0.0f),
124 fSeed += 0.005f;
149 fSeed);
/external/skia/include/effects/
H A DSkPerlinNoiseShader.h120 const SkScalar fSeed; member in class:SkPerlinNoiseShader
/external/skia/experimental/SkPerlinNoiseShader2/
H A DSkPerlinNoiseShader2.cpp159 int fSeed; member in struct:SkPerlinNoiseShader2::PaintingData
181 int result = gRandAmplitude * (fSeed % gRandQ) - gRandR * (fSeed / gRandQ);
184 fSeed = result;
194 fSeed = SkScalarTruncToInt(seed);
196 if (fSeed <= 0) {
197 fSeed = -(fSeed % (kRandMaximum - 1)) + 1;
199 if (fSeed > kRandMaximum - 1) {
200 fSeed
[all...]
H A DSkPerlinNoiseShader2.h133 const SkScalar fSeed; member in class:SkPerlinNoiseShader2

Completed in 225 milliseconds