Go to file
Michael Ludwig 8c14134836 Reorg helper functions in prep for function pointer caching
This does several pure refactoring changes:
1. Adds reset() functions to each helper struct type instead of having
TessellationHelper impl. the struct's reset logic.
2. Moves computeDegenerateQuad() to EdgeEquations.
3. Separate adjustVertices() into adjust and adjustDegenerate varieties, and
have it take a signed distance. This makes it no longer branch on degeneracy
or on whether or not it's insetting or outsetting.
4. The top-level inset()/outset() functions apply the appropriate sign to the
edge distances, and use the appropriate adjust or adjustDegenerate function
based on the inset/outset degenerate flag in OutsetRequest. Essentially all
the old branching in adjustVertices() is baked into the choice of inset() or
outset().
5. Rearranged the structs and function definitions so no forward declarations
were needed, and functions in CPP matched H order.

The major functional change with this is that adjustDegenerate() now has
an optimized case for rectilinear quads, where it can continue to use
moveAlong() but with smaller inset distances.

Change-Id: Ifc7f4537a4e89e82c74e831ab1cd00ffc4daaa4f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256777
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2019-12-03 19:42:41 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Fix some GCC warnings. 2019-12-03 16:21:40 +00:00
bin [infra] Fix bin/try 2019-11-15 19:44:04 +00:00
build/fuchsia skqp CIPD upload infra for Fuchsia 2019-12-02 22:55:08 +00:00
build_overrides Update Dawn backend to ToT. This is about 3 months of changes. 2019-10-15 22:26:38 +00:00
dm Copy SkottieUtils' classes into skresources 2019-11-26 14:25:44 +00:00
docker Fix usage of depot_tools in containers. 2019-10-14 19:38:40 +00:00
docs/examples Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
example Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
experimental Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
fuzz Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
gm This is a reland of GrDomainEffect with significant changes: 2019-12-02 20:25:07 +00:00
gn Add deps file for manifest. Use libwebp always. 2019-11-27 14:45:13 +00:00
include remove legacy next from iter 2019-12-03 16:01:20 +00:00
infra Reland "[skottie] Remove defensive seek(0) from Animation ctor" 2019-12-03 18:26:40 +00:00
modules Reland "[skottie] Remove defensive seek(0) from Animation ctor" 2019-12-03 18:26:40 +00:00
platform_tools [minor] mark scripts as executable 2019-11-21 17:06:27 +00:00
resources Particles: SkImageBinding to allow sampling an image from script 2019-12-03 15:22:20 +00:00
samplecode Some more tweaks to perspective path clipping 2019-12-03 17:35:10 +00:00
site Documentation: Cq-Include-Trybots 2019-11-22 14:36:13 +00:00
specs [img-decode] Start on proposed new spec 2019-05-06 17:39:19 +00:00
src Reorg helper functions in prep for function pointer caching 2019-12-03 19:42:41 +00:00
tests remove pointless tests 2019-12-02 21:27:39 +00:00
third_party Roll skia/third_party/skcms 68d3f3a95f1b..ef3043bd8110 (1 commits) 2019-11-25 14:52:45 +00:00
tools [skottieWASM] make sure we are using CPU or GPU correctly 2019-12-03 18:29:53 +00:00
.clang-format restore .clang-format 2019-03-21 15:52:32 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore clean up some .gitignores 2019-05-15 19:55:45 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Issue- >Skia tiled bitmap rendering is too slow when tildmodeX is not same as tileModeY. 2019-11-14 20:52:18 +00:00
BUILD.gn Reland "Replace CGFontCreate with CTFontManagerCreate." 2019-11-27 19:42:13 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll ../src 8a4500482e8d..bd8110e59b6b (424 commits) 2019-12-03 04:54:39 +00:00
go.mod [infra] Use CIPD packages from infra repo 2019-11-20 14:02:48 +00:00
go.sum [infra] Use CIPD packages from infra repo 2019-11-20 14:02:48 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Use urllib_request instead of urllib2 in PRESUBMIT. 2019-10-22 20:30:56 +00:00
public.bzl Copy SkottieUtils' classes into skresources 2019-11-26 14:25:44 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
RELEASE_NOTES.txt Test texture domain effect with local matrix. 2019-11-22 22:37:33 +00:00
whitespace.txt Whitespace test 2019-05-18 13:05:29 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.