Home | History | Annotate | Download | only in tests

Lines Matching defs:ctm

16 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm,
21 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true);
26 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false);
31 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false);
36 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false);
63 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) {
73 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds);
74 ctm.mapRect(&bounds);
76 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true);
81 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY);
83 verts = SkShadowTessellator::MakeSpot(path, ctm, rec.fZPlaneParams, devLightPos,
91 SkMatrix ctm;
92 ctm.setTranslate(100, 100);
93 check_xformed_bounds(reporter, path, ctm);
94 ctm.postScale(2, 2);
95 check_xformed_bounds(reporter, path, ctm);
96 ctm.preRotate(45);
97 check_xformed_bounds(reporter, path, ctm);
98 ctm.preSkew(40, -20);
99 check_xformed_bounds(reporter, path, ctm);
100 ctm[SkMatrix::kMPersp0] = 0.0001f;
101 ctm[SkMatrix::kMPersp1] = 12.f;
102 check_xformed_bounds(reporter, path, ctm);