Lines Matching refs:kBoxSize
27 static constexpr int kBoxSize = 100; variable
32 canvas->translate(kBoxSize + kPadding, 0); in next_column()
37 canvas->translate(0, kBoxSize + kPadding + kLabelHeight); in next_row()
42 return (kPadding + kBoxSize) * columns + kPadding; in columns_to_width()
46 return (kPadding + kLabelHeight + kBoxSize) * rows + kPadding; in rows_to_height()
56 (kBoxSize - bounds.width()) * 0.5f, in draw_label()
67 SkImageInfo info = SkImageInfo::MakeN32Premul({kBoxSize, kBoxSize}); in draw_shader()
75 surface->getCanvas()->scale(kBoxSize, kBoxSize); in draw_shader()
148 SkPoint pts[kBoxSize]; in plot()
149 for (int x = 0; x < kBoxSize; ++x) { in plot()
151 SkScalar y = (1 - (SkColorGetR(c) / 255.0f)) * kBoxSize; in plot()
155 canvas->drawPoints(SkCanvas::kPolygon_PointMode, kBoxSize, pts, plotPaint); in plot()