Lines Matching refs:fShape
242 bool intersect = (e.fOp == SkClipOp::kIntersect && !e.fShape.inverted()) || in getOptimalBounds()
243 (e.fOp == SkClipOp::kDifference && e.fShape.inverted()); in getOptimalBounds()
250 elementBounds = GrClip::GetPixelIBounds(e.fLocalToDevice.mapRect(e.fShape.bounds()), in getOptimalBounds()
255 if (e.fShape.isRect() && e.fLocalToDevice.isIdentity()) { in getOptimalBounds()
256 elementBounds = GrClip::GetPixelIBounds(e.fShape.rect(), e.fAA, in getOptimalBounds()
258 } else if (e.fShape.isRRect() && e.fLocalToDevice.isIdentity()) { in getOptimalBounds()
259 elementBounds = GrClip::GetPixelIBounds(SkRRectPriv::InnerBounds(e.fShape.rrect()), in getOptimalBounds()
273 a.fShape.type() != b.fShape.type()) { in compare_elements()
276 switch(a.fShape.type()) { in compare_elements()
278 return a.fShape.rect() == b.fShape.rect(); in compare_elements()
280 return a.fShape.rrect() == b.fShape.rrect(); in compare_elements()
285 return a.fShape.path().getGenerationID() == b.fShape.path().getGenerationID() || in compare_elements()
286 (a.fShape.convex() && in compare_elements()
287 a.fShape.segmentMask() == SkPathSegmentMask::kLine_SkPathSegmentMask && in compare_elements()
288 a.fShape.path() == b.fShape.path()); in compare_elements()
311 switch(e.fShape.type()) { in run()
313 cs.clipRect(e.fLocalToDevice, e.fShape.rect(), e.fAA, e.fOp); in run()
316 cs.clipRRect(e.fLocalToDevice, e.fShape.rrect(), e.fAA, e.fOp); in run()
319 cs.clipPath(e.fLocalToDevice, e.fShape.path(), e.fAA, e.fOp); in run()
369 name.c_str(), (int) a.fShape.type(), (int) a.fAA, (int) a.fOp); in run()
1616 REPORTER_ASSERT(r, replaceElement.fShape.rect() == SkRect::Make(replace) && in DEF_TEST()
1627 REPORTER_ASSERT(r, rrectElem.fShape.rrect() == rrect && in DEF_TEST()
1687 REPORTER_ASSERT(r, nonAARectElement.fShape.isRect(), "Expected rect element"); in DEF_TEST()
1690 REPORTER_ASSERT(r, nonAARectElement.fShape.rect() == nonAARect, in DEF_TEST()
1695 REPORTER_ASSERT(r, aaPathElement.fShape.isPath(), "Expected path element"); in DEF_TEST()
1696 REPORTER_ASSERT(r, aaPathElement.fShape.path() == nonAAPath, "Wrong path element"); in DEF_TEST()
1701 REPORTER_ASSERT(r, aaRectElement.fShape.isRect(), "Expected rect element"); in DEF_TEST()
1702 REPORTER_ASSERT(r, aaRectElement.fShape.rect() == aaRect, in DEF_TEST()