• Home
  • Raw
  • Download

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()
92 const SkPath& skPath) { in init_path_object_for_general_path()
102 SkPath::RawIter iter(skPath); in init_path_object_for_general_path()
103 SkPath::Verb verb; in init_path_object_for_general_path()
104 while ((verb = iter.next(points)) != SkPath::kDone_Verb) { in init_path_object_for_general_path()
109 case SkPath::kMove_Verb: in init_path_object_for_general_path()
116 case SkPath::kLine_Verb: in init_path_object_for_general_path()
118 if (SkPath::IsLineDegenerate(points[0], points[1], true)) { in init_path_object_for_general_path()
127 case SkPath::kConic_Verb: in init_path_object_for_general_path()
129 if (SkPath::IsQuadDegenerate(points[0], points[1], points[2], true)) { in init_path_object_for_general_path()
138 case SkPath::kQuad_Verb: in init_path_object_for_general_path()
140 if (SkPath::IsQuadDegenerate(points[0], points[1], points[2], true)) { in init_path_object_for_general_path()
148 case SkPath::kCubic_Verb: in init_path_object_for_general_path()
150 if (SkPath::IsCubicDegenerate(points[0], points[1], points[2], points[3], in init_path_object_for_general_path()
159 case SkPath::kClose_Verb: in init_path_object_for_general_path()
186 static GrPathRendering::FillType convert_skpath_filltype(SkPath::FillType fill) { in convert_skpath_filltype()
190 case SkPath::kWinding_FillType: in convert_skpath_filltype()
191 case SkPath::kInverseWinding_FillType: in convert_skpath_filltype()
193 case SkPath::kEvenOdd_FillType: in convert_skpath_filltype()
194 case SkPath::kInverseEvenOdd_FillType: in convert_skpath_filltype()
202 const SkPath& skPath) { in InitPathObjectPathDataCheckingDegenerates()
208 const SkPath& skPath) { in InitPathObjectPathData()
213 if ((skPath.getSegmentMasks() & SkPath::kConic_SegmentMask) == 0) { in InitPathObjectPathData()
229 SkPath::Verb v = static_cast<SkPath::Verb>(pathCommands[i]); in InitPathObjectPathData()
263 GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& origSkPath, const GrStrokeInfo& origStroke) in GrGLPath()
272 const SkPath* skPath = &origSkPath; in GrGLPath()
273 SkTLazy<SkPath> tmpPath; in GrGLPath()