Go to file
Brian Osman 389b4b267d Fix the preallocated size of string arrays in GrGLSLShaderBuilder
Fragment shaders typically have at least three (?) processors, and from
histogramming GMs and SKPs, the largest number is six. Even our vertex
shaders (half of all shaders being built) have one, and this code had an
off-by-one in the preallocation size: We set aside enough space for
kCode (10) elements, then immediately pushed 11 (i <= kCode).

This change should cut down on three heap allocations for every shader.

Bug: skia:
Change-Id: Iaa2a38b9ff82eb5b81935f9f1d1d96a9bc8aad90
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201463
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2019-03-18 21:37:39 +00:00
animations
bench add bench for mixers 2019-03-16 16:39:17 +00:00
bin tools: bin/sync just alias for git-sync-deps now 2019-02-22 20:05:05 +00:00
dm rework --ignoreSigInt 2019-03-18 16:59:06 +00:00
docker Turn on CI/CD for api.skia.org. (skia) 2019-03-12 18:30:38 +00:00
docs Docs: Give documentation examples better names 2019-03-18 21:05:09 +00:00
example Reduce usage of SkCanvas::flush 2019-03-04 22:09:39 +00:00
experimental Add selectable GPU backend to wasm debugger 2019-03-15 15:34:28 +00:00
fuzz Add SkSL2Pipeline fuzzer 2019-03-18 21:02:49 +00:00
gm add animated version of mixer gm 2019-03-16 21:19:17 +00:00
gn Docs: Give documentation examples better names 2019-03-18 21:05:09 +00:00
include Revert "Revert "Change promise image contract to for when Release and Done are called."" 2019-03-18 19:20:44 +00:00
infra Roll recipe dependencies (trivial). 2019-03-18 20:33:09 +00:00
modules [canvaskit] Various cleanups around docs/build 2019-03-18 15:53:30 +00:00
platform_tools Reland "Disable coverage counting by default" 2019-03-18 16:22:47 +00:00
resources Revert "Revert "Compile all fiddle examples locally"" 2019-03-16 00:48:09 +00:00
samplecode allow mixer to defer to a shader 2019-03-15 20:24:21 +00:00
site update milestones to 2019 dates 2019-03-11 18:39:21 +00:00
src Fix the preallocated size of string arrays in GrGLSLShaderBuilder 2019-03-18 21:37:39 +00:00
tests Fix more failing tests on Metal. 2019-03-18 20:23:19 +00:00
third_party Roll skia/third_party/skcms 04a7830913b3..10ed3a8a5eec (1 commits) 2019-03-12 17:55:53 +00:00
tools Revert "Revert "Change promise image contract to for when Release and Done are called."" 2019-03-18 19:20:44 +00:00
.clang-format .clang-format: Don't force break after > in template declarations 2018-12-21 14:20:57 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS [Viewer] Set the current slide first before attaching the fBackendType to fWindow. 2019-02-26 14:21:55 +00:00
BUILD.gn Add SkSL2Pipeline fuzzer 2019-03-18 21:02:49 +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 third_party/externals/swiftshader 1bd9e2f80b9a..bbf5cf1e4762 (1 commits) 2019-03-18 20:56:39 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Add new recipe autoroller service account to list of recognized accounts 2019-03-12 13:00:58 +00:00
public.bzl SkShaper/public.bzl fix 2019-02-22 20:57:07 +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
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +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.