Searched refs:kGrid (Results 1 – 2 of 2) sorted by relevance
/external/skia/experimental/GLFWTest/ |
D | glfw_main.cpp | 53 const int kGrid = 100; variable 80 SkRSXform xform[kGrid*kGrid+1]; in main() 81 SkRect tex[kGrid*kGrid+1]; in main() 100 for (int x = 0; x < kGrid; x++) { in main() 101 for (int y = 0; y < kGrid; y++) { in main() 102 float xPos = (x / (kGrid - 1.0)) * kWidth; in main() 103 float yPos = (y / (kGrid - 1.0)) * kWidth; in main() 144 for (int i = 0; i < kGrid*kGrid+1; ++i) { in main() 161 canvas->drawAtlas(atlas, xform, tex, nullptr, kGrid*kGrid+1, SkXfermode::kSrcOver_Mode, in main()
|
/external/skia/samplecode/ |
D | SampleShip.cpp | 19 static const int kGrid = 100; variable 65 for (int x = 0; x < kGrid; x++) { in DrawShipView() 66 for (int y = 0; y < kGrid; y++) { in DrawShipView() 67 float xPos = (x / (kGrid - 1.0f)) * kWidth; in DrawShipView() 68 float yPos = (y / (kGrid - 1.0f)) * kWidth; in DrawShipView() 133 for (int i = 0; i < kGrid*kGrid+1; ++i) { in onDrawContent() 149 fProc(canvas, fAtlas.get(), fXform, fTex, nullptr, kGrid*kGrid+1, nullptr, &paint); in onDrawContent() 172 SkRSXform fXform[kGrid*kGrid+1]; 173 SkRect fTex[kGrid*kGrid+1];
|