Lines Matching +full:cap +full:- +full:std
4 * Use of this source code is governed by a BSD-style license that can be
19 // This GM tests a grab-bag of non-closed paths. All these paths look like
31 // The path looks closed, but final rendering has 2 ends with cap.
45 // Use rect-like geometry for non-closed path, for right angles make it
69 canvas->translate(x, y); in SetLocation()
74 // 0(may use hairline rendering), 10(common case for stroke-style) in onDraw()
77 int numWidths = std::size(kStrokeWidth); in onDraw()
83 constexpr SkPaint::Cap kCap[] = { in onDraw()
99 // For stroke style painter and fill-and-stroke style painter in onDraw()
101 for (size_t style = 0; style < std::size(kStyle); ++style) { in onDraw()
102 for (size_t cap = 0; cap < std::size(kCap); ++cap) { in onDraw() local
103 for (size_t join = 0; join < std::size(kJoin); ++join) { in onDraw()
105 canvas->save(); in onDraw()
111 paint.setStrokeCap(kCap[cap]); in onDraw()
115 canvas->drawPath(path, paint); in onDraw()
116 canvas->restore(); in onDraw()
127 canvas->save(); in onDraw()
132 canvas->drawPath(path, paint); in onDraw()
133 canvas->restore(); in onDraw()