Go to file
Brian Osman f04fb3cacb Change how GPs configure attributes
Adds setVertexAttributes and setInstanceAttributes. These take a pointer
to the first attribute, and a count. The count is the total number of
possible attributes, though some may not be initialized. The base class
computes the number of initialized attributes, pre-computes the strides,
and only allows subsequent access to the initialized attributes.

The attributes need to be allocated contiguously. Some GPs place them in
an array, though most just place them as consecutive members, and pass
a pointer to the first one.

Indexed access would be possible, but now it makes more sense to iterate
over all attributes, so enable that, and use range-based for everywhere.

Completely remove the per-attribute offset helper (again - possible, but
not real helpful), and make the stride always available. In many ops,
just use the GP's computed stride, rather than re-computing it.

Bug: skia:
Change-Id: Ie4cccb7969a98ee5a10b373e714fbd702e875b3e
Reviewed-on: https://skia-review.googlesource.com/c/169241
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2018-11-13 00:57:17 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Change how GPs configure attributes 2018-11-13 00:57:17 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm [skottie] Make animated image support generally available 2018-11-10 19:52:19 +00:00
docker Convert skottie's cloud build to use CanvasKit 2018-11-10 12:06:32 +00:00
docs use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental Reland "simplify disabling effect deserialization" 2018-11-08 14:26:52 +00:00
fuzz Revert "rm legacy flags for hinting enum" 2018-11-09 21:59:17 +00:00
gm Change how GPs configure attributes 2018-11-13 00:57:17 +00:00
gn Revert "remove old name for SkCodec::kNoFrame" 2018-11-12 16:26:04 +00:00
include Remove unused exposedInAndroidJavaAPI 2018-11-12 21:27:02 +00:00
infra Roll recipe dependencies (trivial). 2018-11-12 23:16:34 +00:00
modules use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
platform_tools Skottie Android demo app improvements 2018-11-07 15:41:34 +00:00
resources Test a GIF with an out of range transparent index 2018-10-12 14:20:02 +00:00
samplecode use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
site fix bookmaker 2018-11-10 04:49:37 +00:00
src Change how GPs configure attributes 2018-11-13 00:57:17 +00:00
tests Change how GPs configure attributes 2018-11-13 00:57:17 +00:00
third_party Roll skia/third_party/skcms 26679709b32f..ee5557693416 (1 commits) 2018-11-07 14:53:31 +00:00
tools use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
.clang-format clean up flattenable macro cruft 2018-10-19 16:18:32 +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 Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn add guard for fuchsia build 2018-11-12 14:32:29 +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/angle2 48f63f90f6f3..298436280db3 (6 commits) 2018-11-13 00:48:10 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07: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 Remove usage of EnsureCQIncludeTrybotsAreAdded 2018-11-12 19:35:42 +00:00
public.bzl [skottie] Make animated image support generally available 2018-11-10 19:52:19 +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.