Home
last modified time | relevance | path

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

/external/skia/gm/
Dpixelsnap.cpp24 static constexpr int kSubPixelSteps = 8; member in PixelSnapGM
27 static_assert(kSubPixelSteps < 99, "label_offset_too_small");
32 return SkISize::Make((kSubPixelSteps + 1) * kTrans + kLabelOffsetX + kLabelPad, in onISize()
33 (kSubPixelSteps + 1) * kTrans + kLabelOffsetY + kLabelPad); in onISize()
52 for (int i = 0; i <= kSubPixelSteps; ++i) { in onDraw()
62 for (int i = 0; i <= kSubPixelSteps; ++i) { in onDraw()
73 for (int i = 0; i <= kSubPixelSteps + 1; ++i) { in onDraw()
76 SkIntToScalar(kTrans) * (kSubPixelSteps + 1) + 0.5f, in onDraw()
82 SkIntToScalar(kTrans) * (kSubPixelSteps + 1) + 0.5f, in onDraw()
86 for (int i = 0; i <= kSubPixelSteps; ++i) { in onDraw()
[all …]
/external/skqp/gm/
Dpixelsnap.cpp24 static constexpr int kSubPixelSteps = 8; member in PixelSnapGM
27 static_assert(kSubPixelSteps < 99, "label_offset_too_small");
32 return SkISize::Make((kSubPixelSteps + 1) * kTrans + kLabelOffsetX + kLabelPad, in onISize()
33 (kSubPixelSteps + 1) * kTrans + kLabelOffsetY + kLabelPad); in onISize()
52 for (int i = 0; i <= kSubPixelSteps; ++i) { in onDraw()
62 for (int i = 0; i <= kSubPixelSteps; ++i) { in onDraw()
73 for (int i = 0; i <= kSubPixelSteps + 1; ++i) { in onDraw()
76 SkIntToScalar(kTrans) * (kSubPixelSteps + 1) + 0.5f, in onDraw()
82 SkIntToScalar(kTrans) * (kSubPixelSteps + 1) + 0.5f, in onDraw()
86 for (int i = 0; i <= kSubPixelSteps; ++i) { in onDraw()
[all …]