• Home
  • Raw
  • Download

Lines Matching refs:cubics

161 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) {  in GetLevelOfDetail()
164 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
168 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
172 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
176 SkPatchUtils::GetRightCubic(cubics, pts); in GetLevelOfDetail()
191 void SkPatchUtils::GetTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetTopCubic()
192 points[0] = cubics[kTopP0_CubicCtrlPts]; in GetTopCubic()
193 points[1] = cubics[kTopP1_CubicCtrlPts]; in GetTopCubic()
194 points[2] = cubics[kTopP2_CubicCtrlPts]; in GetTopCubic()
195 points[3] = cubics[kTopP3_CubicCtrlPts]; in GetTopCubic()
198 void SkPatchUtils::GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetBottomCubic()
199 points[0] = cubics[kBottomP0_CubicCtrlPts]; in GetBottomCubic()
200 points[1] = cubics[kBottomP1_CubicCtrlPts]; in GetBottomCubic()
201 points[2] = cubics[kBottomP2_CubicCtrlPts]; in GetBottomCubic()
202 points[3] = cubics[kBottomP3_CubicCtrlPts]; in GetBottomCubic()
205 void SkPatchUtils::GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetLeftCubic()
206 points[0] = cubics[kLeftP0_CubicCtrlPts]; in GetLeftCubic()
207 points[1] = cubics[kLeftP1_CubicCtrlPts]; in GetLeftCubic()
208 points[2] = cubics[kLeftP2_CubicCtrlPts]; in GetLeftCubic()
209 points[3] = cubics[kLeftP3_CubicCtrlPts]; in GetLeftCubic()
212 void SkPatchUtils::GetRightCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetRightCubic()
213 points[0] = cubics[kRightP0_CubicCtrlPts]; in GetRightCubic()
214 points[1] = cubics[kRightP1_CubicCtrlPts]; in GetRightCubic()
215 points[2] = cubics[kRightP2_CubicCtrlPts]; in GetRightCubic()
216 points[3] = cubics[kRightP3_CubicCtrlPts]; in GetRightCubic()
235 sk_sp<SkVertices> SkPatchUtils::MakeVertices(const SkPoint cubics[12], const SkColor srcColors[4], in MakeVertices()
238 if (lodX < 1 || lodY < 1 || nullptr == cubics) { in MakeVertices()
292 SkPatchUtils::GetBottomCubic(cubics, pts); in MakeVertices()
294 SkPatchUtils::GetTopCubic(cubics, pts); in MakeVertices()
296 SkPatchUtils::GetLeftCubic(cubics, pts); in MakeVertices()
298 SkPatchUtils::GetRightCubic(cubics, pts); in MakeVertices()