6eadf13783
These changes don't seem to add much value in isolation, but they will smooth our transition to inline analysis during optimization. - The passed-in FunctionCall no longer needs to be a unique_ptr. - The fInlinedBody is guaranteed to be a Block now. (This change caused a slight ripple effect in unit test output; in some cases it creates an additional newline in the final code. This is harmless.) - has_early_return is checked earlier, before we've made any mutations to the FunctionCall. This should work around errors that can occur if a function is trying to inline itself. (Ideally we wouldn't be trying to do this at all, but either way, we shouldn't crash.) Change-Id: I0a565d477f680c0ba061df2686a36e42aa75de95 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315599 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.