Home
last modified time | relevance | path

Searched refs:kRandMaximum (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/effects/
DSkPerlinNoiseShader.cpp31 static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 variable
127 result += kRandMaximum; in random()
141 fSeed = -(fSeed % (kRandMaximum - 1)) + 1; in init()
143 if (fSeed > kRandMaximum - 1) { in init()
144 fSeed = kRandMaximum - 1; in init()
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.cpp32 static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 variable
183 result += kRandMaximum; in random()
197 fSeed = -(fSeed % (kRandMaximum - 1)) + 1; in init()
199 if (fSeed > kRandMaximum - 1) { in init()
200 fSeed = kRandMaximum - 1; in init()