• Home
  • Raw
  • Download

Lines Matching refs:ctm

37 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm,  in tessellate_shadow()  argument
40 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow()
43 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow()
46 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, false); in tessellate_shadow()
49 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, in tessellate_shadow()
53 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, true); in tessellate_shadow()
56 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, false, true); in tessellate_shadow()
125 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) { in check_xformed_bounds() argument
136 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds()
137 ctm.mapRect(&bounds); in check_xformed_bounds()
139 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); in check_xformed_bounds()
144 SkPoint mapXY = ctm.mapXY(rec.fLightPos.fX, rec.fLightPos.fY); in check_xformed_bounds()
146 verts = SkShadowTessellator::MakeSpot(path, ctm, rec.fZPlaneParams, devLightPos, in check_xformed_bounds()
155 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, &bounds); in check_xformed_bounds()
156 ctm.mapRect(&bounds); in check_xformed_bounds()
158 verts = SkShadowTessellator::MakeAmbient(path, ctm, rec.fZPlaneParams, true); in check_xformed_bounds()
165 verts = SkShadowTessellator::MakeSpot(path, ctm, rec.fZPlaneParams, devLightPos, in check_xformed_bounds()
175 SkMatrix ctm; in check_bounds() local
176 ctm.setTranslate(100, 100); in check_bounds()
177 check_xformed_bounds(reporter, path, ctm); in check_bounds()
178 ctm.postScale(2, 2); in check_bounds()
179 check_xformed_bounds(reporter, path, ctm); in check_bounds()
180 ctm.preRotate(45); in check_bounds()
181 check_xformed_bounds(reporter, path, ctm); in check_bounds()
182 ctm.preSkew(40, -20); in check_bounds()
183 check_xformed_bounds(reporter, path, ctm); in check_bounds()
185 ctm[SkMatrix::kMPersp0] = 0.0001f; in check_bounds()
186 ctm[SkMatrix::kMPersp1] = 12.f; in check_bounds()
187 check_xformed_bounds(reporter, path, ctm); in check_bounds()
188 ctm[SkMatrix::kMPersp0] = 0.0001f; in check_bounds()
189 ctm[SkMatrix::kMPersp1] = -12.f; in check_bounds()
190 check_xformed_bounds(reporter, path, ctm); in check_bounds()
191 ctm[SkMatrix::kMPersp0] = 12.f; in check_bounds()
192 ctm[SkMatrix::kMPersp1] = 0.0001f; in check_bounds()
193 check_xformed_bounds(reporter, path, ctm); in check_bounds()