Lines Matching refs:style

4  * Use of this source code is governed by a BSD-style license that can be
747 const SkMatrix& viewMatrix, DIEllipseStyle style) {
749 return new (ptr) DIEllipseGeometryProcessor(wideColor, useScale, viewMatrix, style);
765 b->addBits(2, static_cast<uint32_t>(fStyle), "style");
777 DIEllipseStyle style)
781 , fStyle(style) {
923 auto style = (DIEllipseStyle)(d->fRandom->nextRangeU(0, 2));
924 return DIEllipseGeometryProcessor::Make(d->allocator(), wideColor, useScale, matrix, style);
1024 const GrStyle& style,
1027 if (style.hasPathEffect()) {
1030 const SkStrokeRec& stroke = style.strokeRec();
1033 // Arc support depends on the style.
1058 radius, style, arcParams);
1062 const SkMatrix& viewMatrix, SkPoint center, SkScalar radius, const GrStyle& style,
1066 const SkStrokeRec& stroke = style.strokeRec();
1136 fRoundCaps = style.strokeRec().getWidth() > 0 &&
1137 style.strokeRec().getCap() == SkPaint::kRound_Cap;
1880 SkStrokeRec::Style style = stroke.getStyle();
1882 SkStrokeRec::kStroke_Style == style || SkStrokeRec::kHairline_Style == style;
1883 bool hasStroke = isStrokeOnly || SkStrokeRec::kStrokeAndFill_Style == style;
1939 SkStrokeRec::Style style = stroke.getStyle();
1941 SkStrokeRec::kStroke_Style == style || SkStrokeRec::kHairline_Style == style;
2159 SkStrokeRec::Style style = stroke.getStyle();
2160 params.fStyle = (SkStrokeRec::kStroke_Style == style)
2162 : (SkStrokeRec::kHairline_Style == style)
2168 if (SkStrokeRec::kFill_Style != style && SkStrokeRec::kHairline_Style != style) {
2195 if (SkStrokeRec::kStroke_Style == style) {
2280 this->style());
2321 if (DIEllipseStyle::kStroke == this->style()) {
2351 if (this->style() != that->style()) {
2383 DIEllipseStyle style() const { return fEllipses[0].fStyle; }
3217 SkStrokeRec::Style style = stroke.getStyle();
3220 SkStrokeRec::kStroke_Style == style || SkStrokeRec::kHairline_Style == style;
3221 bool hasStroke = isStrokeOnly || SkStrokeRec::kStrokeAndFill_Style == style;
3224 if (SkStrokeRec::kHairline_Style == style) {
3266 SkStrokeRec::Style style = stroke.getStyle();
3273 SkStrokeRec::kStroke_Style == style || SkStrokeRec::kHairline_Style == style;
3274 bool hasStroke = isStrokeOnly || SkStrokeRec::kStrokeAndFill_Style == style;
3277 if (SkStrokeRec::kHairline_Style == style) {
3337 const GrStyle& style,
3345 if (style.hasNonDashPathEffect()) {
3347 } else if (style.isDashed()) {
3348 if (style.strokeRec().getCap() != SkPaint::kButt_Cap ||
3349 style.dashIntervalCnt() != 2 || style.strokeRec().getWidth() >= width) {
3352 auto onInterval = style.dashIntervals()[0];
3353 auto offInterval = style.dashIntervals()[1];
3355 GrStyle strokeStyle(style.strokeRec(), nullptr);
3364 auto phaseAngle = style.dashPhase() / r;
3369 style.strokeRec().getWidth(), kStartAngle,
3372 return CircleOp::Make(context, std::move(paint), viewMatrix, center, r, style);
3379 const GrStyle& style,
3381 if (style.pathEffect()) {
3387 return EllipseOp::Make(context, std::move(paint), viewMatrix, oval, style.strokeRec());
3399 style.strokeRec());
3413 const GrStyle& style,
3428 center, width / 2.f, style, &arcParams);