Go to file
John Stiles e26e010000 Move GrUniformDataManager setter logic into templates.
This code originally contained 16 extremely similar versions of the same
logic. (set1i, 1iv, 1f, 1fv, 2i, 2iv...)

Now the core logic has been boiled down to two (set, setv) templated
helper functions, one for array and one for non-array uniforms. Template
arguments fill in the minor variations between each type.

Structuring the logic in this way makes it easier to perform sweeping
changes as needed, and guarantees that the setters all work the same.

Change-Id: Iaa74d25c612b12ab26d7f32879c174bca6c850c1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/462099
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-10-21 21:08:37 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bazel bazel baby steps 2020-09-14 15:18:32 +00:00
bench Remove GrContextOptions from GrShaderCaps constructor 2021-10-20 22:51:42 +00:00
bin [sk] Update asset download references to use SK 2021-09-17 16:55:53 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides Add Abseil dependency for Dawn 2021-09-22 22:05:32 +00:00
client_utils/android Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
demos.skia.org [demos] Add WebGPU demo using origin trial 2021-10-08 16:35:34 +00:00
dm [graphite] Rearrange internal Context/Recorder/Recording relationship 2021-10-15 13:51:59 +00:00
docker [infra] Update cmake docker image to be Debian 10 2021-07-23 11:21:31 +00:00
docs/examples Reland "Add sRGB 8888 colortype" 2021-08-24 12:56:32 +00:00
example Remove SDL from DEPS (and SDL example that used it) 2021-05-27 21:37:57 +00:00
experimental [graphite] Add pipeline and draw support 2021-10-21 19:34:26 +00:00
fuzz Make all shader caps uniquely-owned 2021-10-21 20:11:03 +00:00
gm Add GM to demonstrate inconsistent scaling of shader by paint alpha 2021-10-19 13:04:42 +00:00
gn Remove the "in blend modes randomly fail for all zero vec" workaround 2021-10-21 16:54:51 +00:00
include Make Greg Daniel a Skia API owner. 2021-10-20 17:59:42 +00:00
infra Remove redundant Test*-Android_ASAN and Test*-Android_ASAN_Vulkan tasks. 2021-10-21 15:25:56 +00:00
modules [canvaskit] Remove deprecated MakeTypefaceFromData and RefDefault 2021-10-21 16:45:42 +00:00
platform_tools [JetSki] get TypeFace from FontMgr 2021-10-20 19:33:30 +00:00
resources Remove the "in blend modes randomly fail for all zero vec" workaround 2021-10-21 16:54:51 +00:00
samplecode Delete the skgpu::tess namespace 2021-10-20 18:16:48 +00:00
site Update instructions for running debugger locally 2021-10-11 21:45:31 +00:00
specs [infra] Port serve.py from Python2 to 3 2021-08-31 15:28:19 +00:00
src Move GrUniformDataManager setter logic into templates. 2021-10-21 21:08:37 +00:00
tests [graphite] Add pipeline and draw support 2021-10-21 19:34:26 +00:00
third_party Add LICENSE to third_party/musl_compat 2021-10-21 13:49:16 +00:00
toolchain [infra] Add hermetic toolchain for C/C++ using Clang+Musl 2021-10-21 12:43:49 +00:00
tools [canvaskit] Remove deprecated MakeTypefaceFromData and RefDefault 2021-10-21 16:45:42 +00:00
.bazelrc [infra] Add hermetic toolchain for C/C++ using Clang+Musl 2021-10-21 12:43:49 +00:00
.clang-format no more bin packing in .clang-format 2021-03-04 17:22:50 +00:00
.clang-tidy Disable ClangTidy namespace comments for short blocks. 2020-08-24 14:01:22 +00:00
.gitignore Add .vscode to the default gitignore list. 2021-10-13 15:23:02 +00:00
.gn Pre-emptive fix for upcoming ANGLE change. 2021-01-08 17:23:52 +00:00
AUTHORS Add trusted service accounts to AUTHORS file 2021-09-29 20:18:40 +00:00
BUILD.bazel [infra] Add hermetic toolchain for C/C++ using Clang+Musl 2021-10-21 12:43:49 +00:00
BUILD.gn Reduce the size of the lexer's data tables. 2021-10-21 19:53:36 +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 SK Tool from 192352898ba5 to 4b11248acd92 2021-10-21 20:54:08 +00:00
DIR_METADATA Move metadata in OWNERS files to DIR_METADATA files 2021-02-02 23:41:54 +00:00
go.mod [infra] Roll infra to update vpython 2021-09-10 17:41:28 +00:00
go.sum [infra] Roll infra to update vpython 2021-09-10 17:41:28 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS [infra] Add wildcard OWNERS 2021-08-30 19:19:34 +00:00
PRESUBMIT.py Remove AUTHORS check from PRESUBMIT.py 2021-09-30 14:12:18 +00:00
public.bzl Move ToolUtils::make_big_path() to bench/ 2021-10-14 12:57:29 +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 Add release note for SkRuntimeEffect change in Milestone 96. 2021-10-08 13:55:15 +00:00
whitespace.txt Test SkCQ 2021-07-24 21:07:28 +00:00
WORKSPACE.bazel [infra] Add hermetic toolchain for C/C++ using Clang+Musl 2021-10-21 12:43:49 +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.