Lines Matching refs:kBlockSize
34 static const int kBlockSize = 256; variable
35 static const int kBlockMask = kBlockSize - 1;
90 SkImageInfo info = SkImageInfo::MakeA8(kBlockSize, 1); in PaintingData()
94 info = SkImageInfo::Make(kBlockSize, 4, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in PaintingData()
115 uint8_t fLatticeSelector[kBlockSize];
116 uint16_t fNoise[4][kBlockSize][2];
117 SkPoint fGradient[4][kBlockSize];
157 for (int i = 0; i < kBlockSize; ++i) { in init()
159 fNoise[channel][i][0] = (random() % (2 * kBlockSize)); in init()
160 fNoise[channel][i][1] = (random() % (2 * kBlockSize)); in init()
163 for (int i = kBlockSize - 1; i > 0; --i) { in init()
165 int j = random() % kBlockSize; in init()
167 SkASSERT(j < kBlockSize); in init()
175 uint16_t noise[4][kBlockSize][2]; in init()
176 for (int i = 0; i < kBlockSize; ++i) { in init()
184 for (int i = 0; i < kBlockSize; ++i) { in init()
197 static constexpr SkScalar kInvBlockSizef = 1.0 / SkIntToScalar(kBlockSize); in init()
199 for (int i = 0; i < kBlockSize; ++i) { in init()
201 (fNoise[channel][i][0] - kBlockSize) * kInvBlockSizef, in init()
202 (fNoise[channel][i][1] - kBlockSize) * kInvBlockSizef); in init()