Lines Matching +full:p +full:- +full:limit
4 * Use of this source code is governed by a BSD-style license that can be
22 // [0,limit), and the old incorrect logic was:
24 // limit = ulp_before(limit)
25 // val = val - floor(val/limit)*limit (This is repeat; mirror is similar.)
29 // val = val - floor(val/limit)*limit
30 // val = min(val, ulp_before(limit))
38 SkPaint p; variable
39 p.setColor(SK_ColorYELLOW);
40 surface->getCanvas()->drawPaint(p);
41 p.setColor(SK_ColorBLUE);
42 surface->getCanvas()->drawRect(SkRect::MakeWH(50, 100), p);
44 sk_sp<SkImage> img = surface->makeImageSnapshot();
53 p.setShader(img->makeShader(SkTileMode::kRepeat, SkTileMode::kClamp, sampling, m));
54 canvas->drawPaint(p);