Lines Matching refs:ctm

48 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm,  in tessellate_shadow()  argument
51 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow()
54 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow()
57 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, false); in tessellate_shadow()
60 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, in tessellate_shadow()
64 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, true); in tessellate_shadow()
67 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, true); in tessellate_shadow()
136 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { in check_xformed_bounds() argument
147 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds()
148 ctm.mapRect(&bounds); in check_xformed_bounds()
150 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); in check_xformed_bounds()
155 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY); in check_xformed_bounds()
157 verts = SkShadowTessellator::MakeSpot(path, ctm, rec.fZPlaneParams, devLightPos, in check_xformed_bounds()
166 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds()
167 ctm.mapRect(&bounds); in check_xformed_bounds()
169 verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); in check_xformed_bounds()
176 verts = SkShadowTessellator::MakeSpot(path, ctm, rec.fZPlaneParams, devLightPos, in check_xformed_bounds()
186 SkMatrix ctm; in check_bounds() local
187 ctm.setTranslate(100, 100); in check_bounds()
188 check_xformed_bounds(reporter, path, ctm); in check_bounds()
189 ctm.postScale(2, 2); in check_bounds()
190 check_xformed_bounds(reporter, path, ctm); in check_bounds()
191 ctm.preRotate(45); in check_bounds()
192 check_xformed_bounds(reporter, path, ctm); in check_bounds()
193 ctm.preSkew(40, -20); in check_bounds()
194 check_xformed_bounds(reporter, path, ctm); in check_bounds()
196 ctm[SkMatrix::kMPersp0] = 0.0001f; in check_bounds()
197 ctm[SkMatrix::kMPersp1] = 12.f; in check_bounds()
198 check_xformed_bounds(reporter, path, ctm); in check_bounds()
199 ctm[SkMatrix::kMPersp0] = 0.0001f; in check_bounds()
200 ctm[SkMatrix::kMPersp1] = -12.f; in check_bounds()
201 check_xformed_bounds(reporter, path, ctm); in check_bounds()
202 ctm[SkMatrix::kMPersp0] = 12.f; in check_bounds()
203 ctm[SkMatrix::kMPersp1] = 0.0001f; in check_bounds()
204 check_xformed_bounds(reporter, path, ctm); in check_bounds()