Lines Matching refs:SkPath
14 inline GrGLubyte verb_to_gl_path_cmd(SkPath::Verb verb) { in verb_to_gl_path_cmd()
23 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in verb_to_gl_path_cmd()
24 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in verb_to_gl_path_cmd()
25 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in verb_to_gl_path_cmd()
26 GR_STATIC_ASSERT(3 == SkPath::kConic_Verb); in verb_to_gl_path_cmd()
27 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in verb_to_gl_path_cmd()
28 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in verb_to_gl_path_cmd()
35 inline int num_coords(SkPath::Verb verb) { in num_coords()
44 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in num_coords()
45 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in num_coords()
46 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in num_coords()
47 GR_STATIC_ASSERT(3 == SkPath::kConic_Verb); in num_coords()
48 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in num_coords()
49 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in num_coords()
100 const SkPath& skPath) { in init_path_object_for_general_path()
110 SkPath::RawIter iter(skPath); in init_path_object_for_general_path()
111 SkPath::Verb verb; in init_path_object_for_general_path()
112 while ((verb = iter.next(points)) != SkPath::kDone_Verb) { in init_path_object_for_general_path()
117 case SkPath::kMove_Verb: in init_path_object_for_general_path()
124 case SkPath::kLine_Verb: in init_path_object_for_general_path()
126 if (SkPath::IsLineDegenerate(points[0], points[1], true)) { in init_path_object_for_general_path()
135 case SkPath::kConic_Verb: in init_path_object_for_general_path()
137 if (SkPath::IsQuadDegenerate(points[0], points[1], points[2], true)) { in init_path_object_for_general_path()
146 case SkPath::kQuad_Verb: in init_path_object_for_general_path()
148 if (SkPath::IsQuadDegenerate(points[0], points[1], points[2], true)) { in init_path_object_for_general_path()
156 case SkPath::kCubic_Verb: in init_path_object_for_general_path()
158 if (SkPath::IsCubicDegenerate(points[0], points[1], points[2], points[3], in init_path_object_for_general_path()
167 case SkPath::kClose_Verb: in init_path_object_for_general_path()
196 static GrPathRendering::FillType convert_skpath_filltype(SkPath::FillType fill) { in convert_skpath_filltype()
200 case SkPath::kWinding_FillType: in convert_skpath_filltype()
201 case SkPath::kInverseWinding_FillType: in convert_skpath_filltype()
203 case SkPath::kEvenOdd_FillType: in convert_skpath_filltype()
204 case SkPath::kInverseEvenOdd_FillType: in convert_skpath_filltype()
212 const SkPath& skPath) { in InitPathObjectPathDataCheckingDegenerates()
218 const SkPath& skPath) { in InitPathObjectPathData()
223 if ((skPath.getSegmentMasks() & SkPath::kConic_SegmentMask) == 0) { in InitPathObjectPathData()
239 SkPath::Verb v = static_cast<SkPath::Verb>(pathCommands[i]); in InitPathObjectPathData()
272 GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& origSkPath, const GrStyle& style) in GrGLPath()
281 const SkPath* skPath = &origSkPath; in GrGLPath()
282 SkTLazy<SkPath> tmpPath; in GrGLPath()