Lines Matching refs:GrClip
250 elementBounds = GrClip::GetPixelIBounds(e.fLocalToDevice.mapRect(e.fShape.bounds()), in getOptimalBounds()
251 e.fAA, GrClip::BoundsType::kExterior); in getOptimalBounds()
256 elementBounds = GrClip::GetPixelIBounds(e.fShape.rect(), e.fAA, in getOptimalBounds()
257 GrClip::BoundsType::kInterior); in getOptimalBounds()
259 elementBounds = GrClip::GetPixelIBounds(SkRRectPriv::InnerBounds(e.fShape.rrect()), in getOptimalBounds()
260 e.fAA, GrClip::BoundsType::kInterior); in getOptimalBounds()
1657 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1660 REPORTER_ASSERT(r, effect == GrClip::Effect::kClipped); in DEF_TEST()
1716 GrClip::PreClipResult result = cs.preApply({-10.f, -10.f, -1.f, -1.f}, GrAA::kYes); in DEF_TEST()
1717 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1722 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kUnclipped, in DEF_TEST()
1729 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1740 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kUnclipped, in DEF_TEST()
1745 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClippedOut, in DEF_TEST()
1754 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && !result.fIsRRect, in DEF_TEST()
1762 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && in DEF_TEST()
1774 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && in DEF_TEST()
1801 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1804 REPORTER_ASSERT(r, effect == GrClip::Effect::kClipped, in DEF_TEST()
1813 REPORTER_ASSERT(r, effect == GrClip::Effect::kClippedOut, in DEF_TEST()
1826 GrClip::PreClipResult result = cs.preApply(SkRect::Make(kDeviceBounds), GrAA::kYes); in DEF_TEST()
1827 REPORTER_ASSERT(r, result.fEffect == GrClip::Effect::kClipped && !result.fIsRRect, in DEF_TEST()
1849 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1851 REPORTER_ASSERT(r, effect == GrClip::Effect::kClippedOut, "Offscreen draw is clipped out"); in DEF_TEST()
1862 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1864 REPORTER_ASSERT(r, effect == GrClip::Effect::kUnclipped, "Draw inside clip is unclipped"); in DEF_TEST()
1877 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1881 REPORTER_ASSERT(r, effect == GrClip::Effect::kUnclipped, in DEF_TEST()
1896 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1898 REPORTER_ASSERT(r, effect == GrClip::Effect::kClipped, "Draw should be clipped by rect"); in DEF_TEST()
1912 GrClip::Effect effect = cs.apply(context.get(), rtc.get(), GrAAType::kCoverage, false, in DEF_TEST()
1914 REPORTER_ASSERT(r, effect == GrClip::Effect::kClipped, "Draw should be clipped"); in DEF_TEST()