Home
last modified time | relevance | path

Searched refs:kCellSize (Results 1 – 19 of 19) sorted by relevance

/external/skqp/gm/
Dperspshaders.cpp40 return SkISize::Make(kCellSize*kNumCols, kCellSize*kNumRows); in onISize()
44 fBitmap = sk_tool_utils::create_checkerboard_bitmap(kCellSize, kCellSize, in onOnceBeforeDraw()
46 kCellSize/10); in onOnceBeforeDraw()
52 { SkIntToScalar(kCellSize), SkIntToScalar(kCellSize) } in onOnceBeforeDraw()
56 { 0, SkIntToScalar(kCellSize) } in onOnceBeforeDraw()
72 fPath.lineTo(0, SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
73 fPath.lineTo(kCellSize/2.0f, kCellSize/2.0f); in onOnceBeforeDraw()
74 fPath.lineTo(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
75 fPath.lineTo(SkIntToScalar(kCellSize), 0); in onOnceBeforeDraw()
96 SkRect r = SkRect::MakeWH(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in drawRow()
[all …]
Dtrickycubicstrokes.cpp16 static constexpr int kCellSize = 200; variable
58 return SkISize::Make(3*kCellSize, 3*kCellSize); in onISize()
73 SkRect::MakeXYWH((i%3) * kCellSize, (i/3) * kCellSize, kCellSize, in onDraw()
74 kCellSize)); in onDraw()
Dskinning.cpp18 static const int kCellSize = 60; variable
116 int xpos = kCellSize; in onDraw()
117 int ypos = kCellSize; in onDraw()
170 xpos += kCellSize; in drawPermutations()
171 if (xpos > kCellSize * kColumnSize) { in drawPermutations()
172 xpos = kCellSize; in drawPermutations()
173 ypos += kCellSize; in drawPermutations()
Dflippity.cpp23 static const int kCellSize = kImageSize+2*kLabelSize; variable
24 static const int kGMWidth = kNumMatrices*kCellSize;
25 static const int kGMHeight = 4*kCellSize;
206 canvas->translate(kCellSize, 0); in drawRow()
242 canvas->translate(0, kCellSize); in onDraw()
247 canvas->translate(0, kCellSize); in onDraw()
252 canvas->translate(0, kCellSize); in onDraw()
261 canvas->drawLine(0, i * kCellSize, kGMWidth, i * kCellSize, SkPaint()); in onDraw()
264 canvas->drawLine(i * kCellSize, 0, i * kCellSize, kGMHeight, SkPaint()); in onDraw()
Dpolygons.cpp31 int width = kNumPolygons * kCellSize + 40; in onISize()
32 int height = (kNumJoins * kNumStrokeWidths + kNumExtraStyles) * kCellSize + 40; in onISize()
83 SkScalar x = SK_Scalar1 * kCellSize * (counter % lineNum) + 30 + SK_Scalar1 / 4; in SetLocation()
84 SkScalar y = SK_Scalar1 * kCellSize * (counter / lineNum) + 30 + 3 * SK_Scalar1 / 4; in SetLocation()
156 static constexpr int kCellSize = 100; member in skiagm::PolygonsGM
Ddashcubics.cpp102 static constexpr SkSize kCellSize = { 440, 150 }; in onDraw() local
148 canvas->translate(kCellSize.width(), 0); in onDraw()
152 canvas->translate(0, kCellSize.height()); in onDraw()
/external/skia/gm/
Dperspshaders.cpp55 return SkISize::Make(kCellSize*kNumCols, kCellSize*kNumRows); in onISize()
60 kCellSize, kCellSize, SK_ColorBLUE, SK_ColorYELLOW, kCellSize / 10); in onOnceBeforeDraw()
64 { SkIntToScalar(kCellSize), SkIntToScalar(kCellSize) } in onOnceBeforeDraw()
68 { 0, SkIntToScalar(kCellSize) } in onOnceBeforeDraw()
84 fPath.lineTo(0, SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
85 fPath.lineTo(kCellSize/2.0f, kCellSize/2.0f); in onOnceBeforeDraw()
86 fPath.lineTo(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
87 fPath.lineTo(SkIntToScalar(kCellSize), 0); in onOnceBeforeDraw()
106 SkRect r = SkRect::MakeWH(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in drawRow()
115 canvas->translate(SkIntToScalar(kCellSize), 0); in drawRow()
[all …]
Dflippity.cpp48 static const int kCellSize = kImageSize+2*kLabelSize; variable
49 static const int kGMWidth = kNumMatrices*kCellSize;
50 static const int kGMHeight = 4*kCellSize;
228 canvas->translate(kCellSize, 0); in drawRow()
282 canvas->translate(0, kCellSize); in onDraw()
287 canvas->translate(0, kCellSize); in onDraw()
292 canvas->translate(0, kCellSize); in onDraw()
301 canvas->drawLine(0, i * kCellSize, kGMWidth, i * kCellSize, SkPaint()); in onDraw()
304 canvas->drawLine(i * kCellSize, 0, i * kCellSize, kGMHeight, SkPaint()); in onDraw()
Dlargeclippedpath.cpp21 constexpr static float kCellSize = (float)kSize / kGridCount; in draw_clipped_flower() local
23 clip.addRect(0, y * kCellSize, kSize, (y + 1) * kCellSize, SkPathDirection(y & 1)); in draw_clipped_flower()
26 clip.addRect(x * kCellSize, 0, (x + 1) * kCellSize, kSize, SkPathDirection(x & 1)); in draw_clipped_flower()
Dtrickycubicstrokes.cpp27 static constexpr int kCellSize = 200; variable
30 static constexpr int kTestWidth = kNumCols * kCellSize;
31 static constexpr int kTestHeight = kNumRows * kCellSize;
133 auto cellRect = SkRect::MakeXYWH((i % kNumCols) * kCellSize, (i / kNumCols) * kCellSize, in draw_test()
134 kCellSize, kCellSize); in draw_test()
Dpolygons.cpp37 int width = kNumPolygons * kCellSize + 40; in onISize()
38 int height = (kNumJoins * kNumStrokeWidths + kNumExtraStyles) * kCellSize + 40; in onISize()
91 SkScalar x = SK_Scalar1 * kCellSize * (counter % lineNum) + 30 + SK_Scalar1 / 4; in SetLocation()
92 SkScalar y = SK_Scalar1 * kCellSize * (counter / lineNum) + 30 + 3 * SK_Scalar1 / 4; in SetLocation()
164 static constexpr int kCellSize = 100; member in skiagm::PolygonsGM
Ddashcubics.cpp112 static constexpr SkSize kCellSize = { 440, 150 }; in onDraw() local
158 canvas->translate(kCellSize.width(), 0); in onDraw()
162 canvas->translate(0, kCellSize.height()); in onDraw()
/external/gemmlowp/internal/
Dpack_avx.h48 static const int kCellSize = CellFormat::kSize; variable
117 reinterpret_cast<__m128i *>(&dst_ptr[kCellSize * kCells]), xmm11); in Pack()
119 reinterpret_cast<__m128i *>(&dst_ptr[2 * kCellSize * kCells]), in Pack()
122 reinterpret_cast<__m128i *>(&dst_ptr[3 * kCellSize * kCells]), in Pack()
125 reinterpret_cast<__m128i *>(&dst_ptr[4 * kCellSize * kCells]), in Pack()
128 reinterpret_cast<__m128i *>(&dst_ptr[5 * kCellSize * kCells]), in Pack()
132 reinterpret_cast<__m128i *>(&dst_ptr[6 * kCellSize * kCells]), in Pack()
135 reinterpret_cast<__m128i *>(&dst_ptr[7 * kCellSize * kCells]), in Pack()
175 dst_ptr += kCellSize; in Pack()
177 dst_ptr += 7 * kCellSize * kCells; in Pack()
[all …]
Dpack_sse.h48 static constexpr int kCellSize = CellFormat::kSize; variable
85 reinterpret_cast<__m128i*>(&dst_ptr[kCellSize * kCells]), xmm10); in Pack()
91 reinterpret_cast<__m128i*>(&dst_ptr[2 * kCellSize * kCells]), in Pack()
94 reinterpret_cast<__m128i*>(&dst_ptr[3 * kCellSize * kCells]), in Pack()
118 dst_ptr += kCellSize; in Pack()
120 dst_ptr += 3 * kCellSize * kCells; in Pack()
Dpack_neon.h49 static const int kCellSize = CellFormat::kSize; variable
150 static const int kCellSize = CellFormat::kSize; variable
275 static const int kCellSize = CellFormat::kSize; variable
340 static const int kCellSize = CellFormat::kSize; variable
Dpack_msa.h46 static const int kCellSize = CellFormat::kSize; variable
200 static const int kCellSize = CellFormat::kSize; variable
369 static const int kCellSize = CellFormat::kSize; variable
Dpack.h221 static constexpr int kCellSize = CellFormat::kSize; variable
288 dst_ptr += kCellSize; in Pack()
/external/skqp/samplecode/
DSampleAtlas.cpp72 kCellSize = 32, enumerator
125 SkScalarHalf(kCellSize), SkScalarHalf(kCellSize)); in asRSXform()
146 fAtlas = make_atlas(kAtlasSize, kCellSize); in DrawAtlasDrawable()
148 const SkScalar cell = SkIntToScalar(kCellSize); in DrawAtlasDrawable()
150 for (int y = 0; y < kAtlasSize; y += kCellSize) { in DrawAtlasDrawable()
151 for (int x = 0; x < kAtlasSize; x += kCellSize) { in DrawAtlasDrawable()
195 const SkScalar border = kMaxScale * kCellSize; in onGetBounds()
/external/skia/samplecode/
DSampleAtlas.cpp74 kCellSize = 32, enumerator
127 SkScalarHalf(kCellSize), SkScalarHalf(kCellSize)); in asRSXform()
148 fAtlas = make_atlas(kAtlasSize, kCellSize); in DrawAtlasDrawable()
150 const SkScalar cell = SkIntToScalar(kCellSize); in DrawAtlasDrawable()
152 for (int y = 0; y < kAtlasSize; y += kCellSize) { in DrawAtlasDrawable()
153 for (int x = 0; x < kAtlasSize; x += kCellSize) { in DrawAtlasDrawable()
197 const SkScalar border = kMaxScale * kCellSize; in onGetBounds()