Lines Matching refs:path
23 * Represents a geometric shape (rrect or path) and the GrStyle that it should be rendered with.
26 * the path effect from the style. In this case the resulting shape will include any remaining
27 * stroking information that is to be applied after the path effect.
35 * Currently this can only be constructed from a path, rect, or rrect though it can become a path
41 // Keys for paths may be extracted from the path data for small paths. Clients aren't supposed
49 explicit GrStyledShape(const SkPath& path, DoSimplify doSimplify = DoSimplify::kYes)
50 : GrStyledShape(path, GrStyle::SimpleFill(), doSimplify) {}
58 GrStyledShape(const SkPath& path, const SkPaint& paint,
60 : GrStyledShape(path, GrStyle(paint), doSimplify) {}
70 GrStyledShape(const SkPath& path, const GrStyle& style,
72 : fShape(path), fStyle(style) {
139 * Returns a shape that has either applied the path effect or path effect and stroking
158 * An inverse filled line path is still considered a line.
165 /** Returns the unstyled geometry as a path. */
190 * convex path is considered to be closed if they styling reflects a fill and not otherwise.
191 * This is because filling closes all contours in the path.
199 * a computable direction, but this is not always a requirement for path renderers so it is
206 SkPathPriv::ComputeFirstDirection(fShape.path()) != SkPathFirstDirection::kUnknown;
211 // Since the path tracks inverted-fillness itself, it should match what was recorded.
212 SkASSERT(!fShape.isPath() || fShape.inverted() == fShape.path().isInverseFillType());
220 * because an arbitrary path effect could produce an inverse filled path. In other cases this
224 // An arbitrary path effect can produce an arbitrary output path, which may be inverse
234 * not have any caps if stroked (modulo the effect of any path effect).
262 * Adds a listener to the *original* path. Typically used to invalidate cached resources when
263 * a path is no longer in-use. If the shape started out as something other than a path, this
269 * Helpers that are only exposed for unit tests, to determine if the shape is a path, and get
270 * the generation ID of the *original* path. This is the path that will receive
300 /** Gets the path that gen id listeners should be added to. */
305 // Gen ID of the original path (path may be modified or simplified away).