Lines Matching refs:cubics
117 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
121 SkPatchUtils::getTopCubic(cubics, pts); in GetLevelOfDetail()
125 SkPatchUtils::getBottomCubic(cubics, pts); in GetLevelOfDetail()
129 SkPatchUtils::getLeftCubic(cubics, pts); in GetLevelOfDetail()
133 SkPatchUtils::getRightCubic(cubics, pts); in GetLevelOfDetail()
144 void SkPatchUtils::getTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in getTopCubic()
145 points[0] = cubics[kTopP0_CubicCtrlPts]; in getTopCubic()
146 points[1] = cubics[kTopP1_CubicCtrlPts]; in getTopCubic()
147 points[2] = cubics[kTopP2_CubicCtrlPts]; in getTopCubic()
148 points[3] = cubics[kTopP3_CubicCtrlPts]; in getTopCubic()
151 void SkPatchUtils::getBottomCubic(const SkPoint cubics[12], SkPoint points[4]) { in getBottomCubic()
152 points[0] = cubics[kBottomP0_CubicCtrlPts]; in getBottomCubic()
153 points[1] = cubics[kBottomP1_CubicCtrlPts]; in getBottomCubic()
154 points[2] = cubics[kBottomP2_CubicCtrlPts]; in getBottomCubic()
155 points[3] = cubics[kBottomP3_CubicCtrlPts]; in getBottomCubic()
158 void SkPatchUtils::getLeftCubic(const SkPoint cubics[12], SkPoint points[4]) { in getLeftCubic()
159 points[0] = cubics[kLeftP0_CubicCtrlPts]; in getLeftCubic()
160 points[1] = cubics[kLeftP1_CubicCtrlPts]; in getLeftCubic()
161 points[2] = cubics[kLeftP2_CubicCtrlPts]; in getLeftCubic()
162 points[3] = cubics[kLeftP3_CubicCtrlPts]; in getLeftCubic()
165 void SkPatchUtils::getRightCubic(const SkPoint cubics[12], SkPoint points[4]) { in getRightCubic()
166 points[0] = cubics[kRightP0_CubicCtrlPts]; in getRightCubic()
167 points[1] = cubics[kRightP1_CubicCtrlPts]; in getRightCubic()
168 points[2] = cubics[kRightP2_CubicCtrlPts]; in getRightCubic()
169 points[3] = cubics[kRightP3_CubicCtrlPts]; in getRightCubic()
172 bool SkPatchUtils::getVertexData(SkPatchUtils::VertexData* data, const SkPoint cubics[12], in getVertexData()
174 if (lodX < 1 || lodY < 1 || nullptr == cubics || nullptr == data) { in getVertexData()
220 SkPatchUtils::getBottomCubic(cubics, pts); in getVertexData()
222 SkPatchUtils::getTopCubic(cubics, pts); in getVertexData()
224 SkPatchUtils::getLeftCubic(cubics, pts); in getVertexData()
226 SkPatchUtils::getRightCubic(cubics, pts); in getVertexData()