Home
last modified time | relevance | path

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

/external/skia/samplecode/
DSampleLitAtlas.cpp261 for (int y = kMedYOff; y < kMedYOff+kMedSize; ++y) { in MakeAtlas()
262 for (int x = kDiffXOff; x < kDiffXOff+kMedSize; ++x) { in MakeAtlas()
269 kMedSize, kMedSize)); in MakeAtlas()
295 SkScalar shipMidLine = kDiffXOff + kMedSize/2.0f; in MakeAtlas()
297 for (int y = kShipYOff; y < kShipYOff+kMedSize; ++y) { in MakeAtlas()
298 SkScalar scaledY = (y - kShipYOff)/(float)kMedSize; // 0..1 in MakeAtlas()
300 for (int x = kDiffXOff; x < kDiffXOff+kMedSize; ++x) { in MakeAtlas()
304 scaledX = 1.0f - (x - kDiffXOff)/(kMedSize/2.0f); // 0..1 in MakeAtlas()
306 scaledX = (x - shipMidLine)/(kMedSize/2.0f); // 0..1 in MakeAtlas()
319 kMedSize, kMedSize)); in MakeAtlas()
[all …]
/external/skqp/samplecode/
DSampleLitAtlas.cpp261 for (int y = kMedYOff; y < kMedYOff+kMedSize; ++y) { in MakeAtlas()
262 for (int x = kDiffXOff; x < kDiffXOff+kMedSize; ++x) { in MakeAtlas()
269 kMedSize, kMedSize)); in MakeAtlas()
295 SkScalar shipMidLine = kDiffXOff + kMedSize/2.0f; in MakeAtlas()
297 for (int y = kShipYOff; y < kShipYOff+kMedSize; ++y) { in MakeAtlas()
298 SkScalar scaledY = (y - kShipYOff)/(float)kMedSize; // 0..1 in MakeAtlas()
300 for (int x = kDiffXOff; x < kDiffXOff+kMedSize; ++x) { in MakeAtlas()
304 scaledX = 1.0f - (x - kDiffXOff)/(kMedSize/2.0f); // 0..1 in MakeAtlas()
306 scaledX = (x - shipMidLine)/(kMedSize/2.0f); // 0..1 in MakeAtlas()
319 kMedSize, kMedSize)); in MakeAtlas()
[all …]