Lines Matching refs:style
4 * Use of this source code is governed by a BSD-style license that can be
47 if (original.style().isSimpleFill() && newIsInverted == original.fShape.inverted()) {
48 // By returning the original rather than falling through we can preserve any inherited style
49 // key. Otherwise, we wipe it out below since the style change invalidates it.
62 if (!original.style().isSimpleFill()) {
63 // Going from a non-filled style to fill may allow additional simplifications (e.g.
65 // stroke style).
68 // since it already sees its style as a simple fill. Since the original style was not a
73 // Verify that lines/points were converted to empty by the style change
251 // and then append the style key (which should now be stroke only) at the end.
271 // The style doesn't allow a key, set the path gen ID to 0 so that we fail when
308 const GrStyle& style, DoSimplify doSimplify) {
311 result.fStyle = style;
336 if (!parent.style().applies() ||
337 (GrStyle::Apply::kPathEffectOnly == apply && !parent.style().pathEffect())) {
347 // Start out as an empty path that is filled in by the applied style
386 if (tmpParent->style().applies()) {
387 SkAssertResult(tmpParent.get()->style().applyToPath(&fShape.path(), &fillOrHairline,
389 } else if (tmpParent->style().isSimpleFill()) {
392 SkASSERT(tmpParent.get()->style().isSimpleHairline());
431 // Validity check here, if we don't have a path effect on the style, we should have passed
568 AutoRestoreInverseness(GrShape* shape, const GrStyle& style)
570 : fShape(shape), fInverted(!style.isDashed() && fShape->inverted()) {}
625 // Further simplifications to the shape based on the style
657 // stroking (and even some of the dashing). Any other shape+style is too complicated to reduce.
663 // Tracks style simplifications, even if the geometry can't be further simplified.
689 // we reset to be unclosed so we don't override the style based on joins later.
694 // At this point, we're a line or point with no path effects. Any fill portion of the style
695 // is empty, so a fill-only style can be empty, and a stroke+fill becomes a stroke.
708 // A point or line that was formed by a degenerate closed shape needs its style updated to
737 // The drawn geometry is entirely based on the cap style and stroke width. A butt cap point
770 // Geometrically can't apply the style and turn into a fill, but might still be simpler