Home
last modified time | relevance | path

Searched refs:kGrid (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/samplecode/
DSampleShip.cpp19 static const int kGrid = 100; variable
66 for (int x = 0; x < kGrid; x++) { in DrawShipView()
67 for (int y = 0; y < kGrid; y++) { in DrawShipView()
68 float xPos = (x / (kGrid - 1.0f)) * kWidth; in DrawShipView()
69 float yPos = (y / (kGrid - 1.0f)) * kWidth; in DrawShipView()
105 for (int i = 0; i < kGrid*kGrid+1; ++i) { in onDrawContent()
121 fProc(canvas, fAtlas.get(), fXform, fTex, nullptr, kGrid*kGrid+1, nullptr, in onDrawContent()
137 SkRSXform fXform[kGrid*kGrid+1];
138 SkRect fTex[kGrid*kGrid+1];
/third_party/flutter/skia/samplecode/
DSampleShip.cpp18 static const int kGrid = 100; variable
64 for (int x = 0; x < kGrid; x++) { in DrawShipView()
65 for (int y = 0; y < kGrid; y++) { in DrawShipView()
66 float xPos = (x / (kGrid - 1.0f)) * kWidth; in DrawShipView()
67 float yPos = (y / (kGrid - 1.0f)) * kWidth; in DrawShipView()
104 for (int i = 0; i < kGrid*kGrid+1; ++i) { in onDrawContent()
120 fProc(canvas, fAtlas.get(), fXform, fTex, nullptr, kGrid*kGrid+1, nullptr, &paint); in onDrawContent()
135 SkRSXform fXform[kGrid*kGrid+1];
136 SkRect fTex[kGrid*kGrid+1];
/third_party/skia/bench/
DBulkRectBench.cpp35 kGrid // Small, non-overlapping rectangles in a grid covering the output surface enumerator
279 ADD_BENCH_FAMILY(1000, RectangleLayout::kGrid)