Lines Matching refs:ctm
36 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, in tessellate_shadow() argument
39 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow()
42 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow()
45 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); in tessellate_shadow()
48 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false); in tessellate_shadow()
117 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { in check_xformed_bounds() argument
127 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds()
128 ctm.mapRect(&bounds); in check_xformed_bounds()
130 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); in check_xformed_bounds()
135 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY); in check_xformed_bounds()
137 verts = SkShadowTessellator::MakeSpot(path, ctm, rec.fZPlaneParams, devLightPos, in check_xformed_bounds()
145 SkMatrix ctm; in check_bounds() local
146 ctm.setTranslate(100, 100); in check_bounds()
147 check_xformed_bounds(reporter, path, ctm); in check_bounds()
148 ctm.postScale(2, 2); in check_bounds()
149 check_xformed_bounds(reporter, path, ctm); in check_bounds()
150 ctm.preRotate(45); in check_bounds()
151 check_xformed_bounds(reporter, path, ctm); in check_bounds()
152 ctm.preSkew(40, -20); in check_bounds()
153 check_xformed_bounds(reporter, path, ctm); in check_bounds()
154 ctm[SkMatrix::kMPersp0] = 0.0001f; in check_bounds()
155 ctm[SkMatrix::kMPersp1] = 12.f; in check_bounds()
156 check_xformed_bounds(reporter, path, ctm); in check_bounds()
157 ctm[SkMatrix::kMPersp0] = 0.0001f; in check_bounds()
158 ctm[SkMatrix::kMPersp1] = -12.f; in check_bounds()
159 check_xformed_bounds(reporter, path, ctm); in check_bounds()
160 ctm[SkMatrix::kMPersp0] = 12.f; in check_bounds()
161 ctm[SkMatrix::kMPersp1] = 0.0001f; in check_bounds()
162 check_xformed_bounds(reporter, path, ctm); in check_bounds()