Go to file
John Stiles e1bbd5c128 Disallow unsized array dimensions on size fields past the frontmost.
This was slightly complicated by the fact that this syntax indicates an
array with a known size:

    float[] x = float[](1, 2, 3, 4);

Of course, the size is 4; it's just never explicitly stated in the
code. (The SkSL parser never actually deduces the size, but it doesn't
apparently have a need to; we don't do much in the way of optimization
for arrays.) However, this prevents us from simply failing whenever we
parse "[]" in non-builtin code; we need to keep scanning and see if the
variable is initialized. We already check this in the
ArrayConstructors.sksl test file.

Change-Id: I5b86958e81bd9bf5edf28a617cecf95c1875583e
Bug: skia:10957
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/335240
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-11-17 16:44:13 +00:00
animations
bazel bazel baby steps 2020-09-14 15:18:32 +00:00
bench Move SkTTopoSort to src/gpu and rename it to GrTTopoSort 2020-11-17 14:17:03 +00:00
bin bin/try: automatically set 'git cl issue' when not found 2020-06-25 17:44:01 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides Port to ANGLE's GN files 2020-09-11 15:22:34 +00:00
client_utils/android Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
demos.skia.org [canvaskit] Remove Sk from nearly all function/type names. 2020-10-07 21:01:32 +00:00
dm Reland "SkAndroidCodec: Support decoding all frames" 2020-11-16 16:55:48 +00:00
docker [canvaskit,pathkit] Update to emsdk 2.0 2020-08-20 14:55:50 +00:00
docs/examples Only expose isConvex on path publicly. 2020-08-28 16:56:29 +00:00
example Reland "Remove use of legacy display globals." 2020-10-05 19:13:58 +00:00
experimental Move SKP version extraction into JS 2020-11-16 22:54:20 +00:00
fuzz Move GrShaderCaps from Program::Settings to Compiler 2020-11-04 19:38:33 +00:00
gm Minor cleanup in the intrinsics GMs 2020-11-17 15:49:43 +00:00
gn Disallow unsized array dimensions on size fields past the frontmost. 2020-11-17 16:44:13 +00:00
include Reland "SkAnimatedImage: Use fSampleSize" 2020-11-17 14:07:03 +00:00
infra Update Go Deps 2020-11-17 15:16:53 +00:00
modules [skottie] Initial direction for text shaping 2020-11-13 20:57:03 +00:00
platform_tools Skottie perf metric improvements 2020-11-13 19:03:15 +00:00
resources Handle EXIF orientation in SkAnimCodecPlayer 2020-11-12 14:43:47 +00:00
samplecode [svg] Allow clients to pass a custom SkFontMgr 2020-11-11 01:51:44 +00:00
site add M88 release notes 2020-11-13 07:47:01 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Disallow unsized array dimensions on size fields past the frontmost. 2020-11-17 16:44:13 +00:00
tests Disallow unsized array dimensions on size fields past the frontmost. 2020-11-17 16:44:13 +00:00
third_party [canvaskit] Add support for woff2 fonts 2020-11-10 15:07:26 +00:00
tools Add activation events to sk_app. 2020-11-16 16:44:08 +00:00
.bazelignore bazel baby steps 2020-09-14 15:18:32 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy Disable ClangTidy namespace comments for short blocks. 2020-08-24 14:01:22 +00:00
.gitignore bazel baby steps 2020-09-14 15:18:32 +00:00
.gn
AUTHORS Fix issues with latest GN 2020-11-07 13:55:45 +00:00
BUILD.bazel bazel baby steps 2020-09-14 15:18:32 +00:00
BUILD.gn Reland "SkAndroidCodec: Support decoding all frames" 2020-11-16 16:55:48 +00:00
codereview.settings
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll SwiftShader from e4c1a25cc679 to 04515da400d5 (3 revisions) 2020-11-17 05:44:53 +00:00
go.mod Update Go Deps 2020-11-17 15:16:53 +00:00
go.sum Update Go Deps 2020-11-17 15:16:53 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS
PRESUBMIT.py Generate SkSL golden output files from test inputs during the build. 2020-09-14 14:54:12 +00:00
public.bzl Reland "SkAndroidCodec: Support decoding all frames" 2020-11-16 16:55:48 +00:00
README
README.chromium
RELEASE_NOTES.txt Revert "Remove SkBaseDevice::flush" 2020-11-16 18:46:19 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +00:00
WORKSPACE.bazel bazel baby steps 2020-09-14 15:18:32 +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.