skia2/experimental
Michael Ludwig 76fbbc89e9 [graphite] Device, DrawContext, and DrawList use Shape
Adds a line primitive back to geom::Shape since I just couldn't tolerate
drawPoints mallocing a path for every line. When Shape provides a path
like iterator, it will look equivalent to an SkPath that is a line, so
there won't be any reason to analyze an incoming path for a line, but
if we know we want a line, there's no reason to wrap it in a path.

DrawList and DrawContext now take Shapes for their path rendering funcs,
but are documented to use path rendering. It won't be like GrSDC that
tries to choose the algorithm under the hood from you.

Device has been heavily updated to funnel all the draw calls into a
new drawShape(), so the primitive functions do not malloc skpaths any
longer, even if they still end up using path renderering.

Additionally, instead of making new paints that have updated styles or
removed components, drawShape() takes an SkStrokeRec and ignores what's
on the paint, and has additional flags that tell it to ignore aspects
of the paint. This is used when it recurses, or for cases like drawPaint
where path effects and mask filters should be ignored (and eventually
other things like drawImage will ignore path effects and force a fill
style).

Bug: skia:12466
Change-Id: I4700c895ce3fefe2e437f3b4d329fd381593e037
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/457398
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-10-12 21:09:32 +00:00
..
c-api-example Fix C API example, ensure the C API example is built in CI 2020-12-15 16:38:42 +00:00
docs
documentation Update references to master branch 2021-05-21 15:18:16 +00:00
ffmpeg Remove ableist language 2021-06-16 21:37:21 +00:00
graphite [graphite] Device, DrawContext, and DrawList use Shape 2021-10-12 21:09:32 +00:00
lowp-basic Rewrite #includes to satisfy presubmit. 2021-10-01 18:31:26 +00:00
minimal_ios_mtl_skia_app roll gn to latest 2021-01-15 15:34:00 +00:00
pvg add pvg experiment 2018-11-02 15:35:21 +00:00
skottiekit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
skrive Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
sktext Font resolution just started 2021-09-27 16:25:50 +00:00
sorttoy Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
tools Add sleep option to web_to_(skp|mskp) shell scripts. 2020-06-19 19:06:29 +00:00
tskit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
wasm-skp-debugger [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
webgpu-bazel [experimental] Add WebGPU demo (built with Bazel) 2021-10-12 18:34:55 +00:00
xform Reland "Simplify SkRasterClip now that it's only intersect/diff" 2021-08-31 18:16:31 +00:00
xps_to_png