Lines Matching refs:stroke
255 void GrGLPath::InitPathObjectStroke(GrGLGpu* gpu, GrGLuint pathID, const SkStrokeRec& stroke) { in InitPathObjectStroke() argument
256 SkASSERT(!stroke.isHairlineStyle()); in InitPathObjectStroke()
258 PathParameterf(pathID, GR_GL_PATH_STROKE_WIDTH, SkScalarToFloat(stroke.getWidth()))); in InitPathObjectStroke()
260 PathParameterf(pathID, GR_GL_PATH_MITER_LIMIT, SkScalarToFloat(stroke.getMiter()))); in InitPathObjectStroke()
261 GrGLenum join = join_to_gl_join(stroke.getJoin()); in InitPathObjectStroke()
263 GrGLenum cap = cap_to_gl_cap(stroke.getCap()); in InitPathObjectStroke()
283 SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle); in GrGLPath() local
289 if (style.applyPathEffectToPath(tmpPath.init(), &stroke, *skPath, SK_Scalar1)) { in GrGLPath()
293 stroke = style.strokeRec(); in GrGLPath()
297 if (stroke.needToApply() && stroke.getCap() != SkPaint::kButt_Cap) { in GrGLPath()
306 SkAssertResult(stroke.applyToPath(tmpPath.get(), *skPath)); in GrGLPath()
308 stroke.setFillStyle(); in GrGLPath()
316 fShouldStroke = stroke.needToApply(); in GrGLPath()
317 fShouldFill = stroke.isFillStyle() || in GrGLPath()
318 stroke.getStyle() == SkStrokeRec::kStrokeAndFill_Style; in GrGLPath()
322 SkScalar radius = stroke.getInflationRadius(); in GrGLPath()
325 InitPathObjectStroke(gpu, fPathID, stroke); in GrGLPath()