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