Lines Matching refs:clip

202     SkAAClip clip;
208 clip.setPath(path, path.getBounds().roundOut(), true);
209 REPORTER_ASSERT(reporter, height == clip.getBounds().height());
222 clip.setPath(path, path.getBounds().roundOut(), true);
223 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height());
227 SkAAClip clip;
229 REPORTER_ASSERT(reporter, clip.isEmpty());
230 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty());
232 clip.translate(10, 10, &clip); // should have no effect on empty
233 REPORTER_ASSERT(reporter, clip.isEmpty());
234 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty());
237 clip.setRect(r);
238 REPORTER_ASSERT(reporter, !clip.isEmpty());
239 REPORTER_ASSERT(reporter, !clip.getBounds().isEmpty());
240 REPORTER_ASSERT(reporter, clip.getBounds() == r);
242 clip.setEmpty();
243 REPORTER_ASSERT(reporter, clip.isEmpty());
244 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty());
247 clip.copyToMask(&mask);
325 SkAAClip clip;
326 clip.setPath(path, path.getBounds().roundOut(), 1 == i);
329 clip.copyToMask(&mask);
343 SkAAClip clip;
344 clip.setPath(path, path.getBounds().roundOut(), true);
346 REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeWH(100, 100));
347 REPORTER_ASSERT(reporter, !clip.isRect());
349 // This rect should intersect the clip, but slice-out all of the "soft" parts,
353 clip.op(ir, SkClipOp::kIntersect);
355 REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeLTRB(10, 0, 50, 90));
356 // the clip recognized that that it is just a rect!
357 REPORTER_ASSERT(reporter, clip.isRect());
401 SkAAClip clip;
407 clip.setPath(SkPath::Rect(r), r.roundOut(), true);
411 // Building aaclip meant aa-scan-convert a path into a huge clip.
412 // the old algorithm sized the supersampler to the size of the clip, which overflowed
413 // its internal 16bit coordinates. The fix was to intersect the clip+path_bounds before
426 SkAAClip clip;
431 clip.setRect(r);