Lines Matching defs:style
4 * Use of this source code is governed by a BSD-style license that can be
736 const GrStyle* style) {
737 if (!style) {
738 style = &GrStyle::SimpleFill();
746 SkASSERT(!style->pathEffect());
750 const SkStrokeRec& stroke = style->strokeRec();
781 GrStyledShape(rect, *style, DoSimplify::kNo));
1032 const GrStyle& style) {
1038 SkASSERT(!style.pathEffect()); // this should've been devolved to a path in SkGpuDevice
1040 const SkStrokeRec& stroke = style.strokeRec();
1100 if (!op && style.isSimpleFill()) {
1117 GrStyledShape(rrect, style, DoSimplify::kNo));
1333 const GrStyle& style,
1349 bool complexStyle = !style.isSimpleFill();
1355 return this->drawPath(clip, std::move(paint), aa, viewMatrix, path, style);
1368 const GrStyle& style) {
1374 const SkStrokeRec& stroke = style.strokeRec();
1376 if (oval.isEmpty() && !style.pathEffect()) {
1381 this->drawRect(clip, std::move(paint), aa, viewMatrix, oval, &style);
1398 op = GrOvalOpFactory::MakeCircleOp(fContext, std::move(paint), viewMatrix, oval, style,
1401 if (!op && style.isSimpleFill()) {
1413 op = GrOvalOpFactory::MakeOvalOp(fContext, std::move(paint), viewMatrix, oval, style,
1424 false, style, DoSimplify::kNo));
1435 const GrStyle& style) {
1453 style,
1463 style, DoSimplify::kNo));
1554 const GrStyle& style) {
1560 GrStyledShape shape(path, style, DoSimplify::kNo);
1726 if (!shape.style().hasPathEffect()) {
1733 shape.style().strokeRec().getStyle() == SkStrokeRec::kStroke_Style &&
1734 shape.style().strokeRec().getCap() != SkPaint::kRound_Cap) {
1743 !SkDrawTreatAAStrokeAsHairline(shape.style().strokeRec().getWidth(), viewMatrix,
1746 shape.style().strokeRec());
1752 &shape.style());
1756 shape.style());
1759 this->drawRRect(clip, std::move(*paint), aa, viewMatrix, rrect, shape.style());
1762 shape.style().isSimpleFill() &&
1820 if (!shape.style().strokeRec().isFillStyle() && !shape.isEmpty()) {
1837 // Usually we enter drawShapeUsingPathRenderer() because the shape+style was too complex
1845 // Try a 1st time without applying any of the style to the geometry (and barring sw)
1855 if (!pr && shape.style().pathEffect()) {
1865 if (shape.style().applies()) {