Go to file
Brian Osman e64ae86d27 Rearrange logic in SkRuntimeEffect::Make
To extract metadata and validate the shader, we've added several
iterations over all program elements. This CL rearranges things
to iterate once (*). Variable conversion is moved to a separate
loop later, to help with nesting and readability.

Removes hard-to-read asserts. These were validating things enforced
by both the IR generator and unit tests.

*: Technically, there are additional implicit iterations when we call
   SkSL::Analysis functions. Folding all of this into a single pass
   would be even better, but much more complicated.

Change-Id: I4f5aa649e74094e94c365ad20ef2ac96082285cd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303924
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-07-20 19:33:33 +00:00
animations
bench Migrate MakeTextureImage to take GrDirectContext 2020-07-16 16:17:28 +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 Use Dawn's BUILD.gn instead of defining another one for Skia. 2020-04-13 23:26:31 +00:00
client_utils/android Remove SkBitmapRegionDecoder and SkBRDAllocator 2020-06-01 20:56:29 +00:00
demos.skia.org [demos] Move to subdir 2020-06-23 17:29:37 +00:00
dm Add GrStagingBufferManager and use GrGpuBuffers to manage caching. 2020-07-15 14:17:50 +00:00
docker Fix swiftshader Dockerfile. 2020-07-20 17:17:53 +00:00
docs/examples Update some of the dox code to GrDirectContext 2020-07-13 13:57:12 +00:00
example Clean up GrContext references in the src/gpu 2020-07-16 14:14:08 +00:00
experimental Add a full build option for SkottieKit 2020-06-29 18:48:14 +00:00
fuzz fuzz: Add 'loops' option to run multiple times 2020-07-17 16:23:30 +00:00
gm Add support for holding onto refs for input buffers from bindBuffer calls. 2020-07-20 18:29:43 +00:00
gn Switch the DDLRecorder over to holding a GrRecordingContext ... 2020-07-15 23:17:03 +00:00
include SkRuntimeEffect: Always include GrTypesPriv, clean up variable type code 2020-07-20 16:33:03 +00:00
infra Output different error for when CL cannot be created in canary task driver 2020-07-19 20:00:08 +00:00
modules Revert "Reland "ICU API: only in SkParagraph, simplified (relanding reverted)."" 2020-07-20 16:39:15 +00:00
platform_tools turn skottie view into a view group so we can swap out TextureView and SurfaceView 2020-07-09 19:19:30 +00:00
resources [skottie] Fix analytical mask fill type 2020-07-17 18:35:23 +00:00
samplecode Add support for holding onto refs for input buffers from bindBuffer calls. 2020-07-20 18:29:43 +00:00
site update markdown files 2020-07-20 18:52:55 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Rearrange logic in SkRuntimeEffect::Make 2020-07-20 19:33:33 +00:00
tests Rearrange logic in SkRuntimeEffect::Make 2020-07-20 19:33:33 +00:00
third_party Roll skcms from c21106442079 to f73242142ce5 (1 revision) 2020-07-16 21:50:37 +00:00
tools Revert "Remove more GrContext imports & usage" 2020-07-20 16:18:04 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore Reland the new module for skia lib for g3 2020-06-23 14:19:13 +00:00
.gn
AUTHORS GCC: fix unknown attribute warnings for no_sanitize 2020-07-06 13:52:22 +00:00
BUILD.gn add SkParagraph to public headers and fix warnings 2020-07-15 17:56:43 +00:00
codereview.settings
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll ANGLE from cc5513855cc5 to 08c4d09493bf (11 revisions) 2020-07-20 05:26:01 +00:00
go.mod Add canary roll CL link to canary task driver 2020-07-16 17:34:08 +00:00
go.sum Add canary roll CL link to canary task driver 2020-07-16 17:34:08 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS
PRESUBMIT.py PRESUBMIT: Don't check formatting of deleted files 2020-04-08 10:36:09 +00:00
public.bzl Fix Mac GPU references 2020-07-13 18:04:28 +00:00
README
README.chromium
RELEASE_NOTES.txt Revert "Add GrContext api to update compressed backend textures." 2020-07-14 15:05:58 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +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.