Home | History | Annotate | Download | only in tests

Lines Matching defs:kPad

34 static const int kPad = 3;
35 static const int kFullSize = kSmallerSize + 2 * kPad;
49 temp.drawRect(SkRect::MakeXYWH(SkIntToScalar(kPad), SkIntToScalar(kPad),
100 img->draw(canvas, SkIntToScalar(kPad), SkIntToScalar(kPad), nullptr);
109 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1));
110 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad));
111 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kSmallerSize+kPad-1,
112 kSmallerSize+kPad-1));
113 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kSmallerSize+kPad,
114 kSmallerSize+kPad));
149 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
153 test_image(subSImg1, reporter, nullptr, false, kPad, kFullSize);
171 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
176 test_image(subSImg1, reporter, nullptr, false, kPad, kFullSize);
214 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
285 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
292 test_image(subSImg1, reporter, context, true, kPad, kFullSize);
297 test_image(subSImg2, reporter, context, true, kPad, kFullSize);
325 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize);
332 test_image(subSImg1, reporter, context, true, kPad, kFullSize);
337 test_image(subSImg2, reporter, context, true, kPad, kFullSize);