Go to file
Brian Osman 7d8f82b9b0 Added GrMeshDrawOp::WriteVertexData
This is a utility to make vertex generation code in ops simpler and more
consistent. Some existing ops use tricks that may not translate well,
but most will. It enforces writing in-order, leverages templates to
handle sizing and variable numbers of arguments.

For now, I used it to update three ops, showing a relatively simple
case, and a more thorough refactor (of the CircleOp). I think this makes
a stronger case for the GP changes that make stride fast enough for
non-debug use -- most ops won't even need a struct anymore, they can ask
the GP for stride, then use the WriteVertexData utility to write out
data matching the attribute layout.

Bug: skia:
Change-Id: Iec649803181ec5064b4fb9692ae68e6424758944
Reviewed-on: https://skia-review.googlesource.com/c/169340
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2018-11-08 16:19:53 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench add pathops bench for simplify 2018-11-05 13:15:21 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm remove src/jumper 2018-10-24 11:15:58 +00:00
docker Revert "Autobuild the jsfiddle docker image" 2018-11-07 19:55:21 +00:00
docs Check every word in docs 2018-11-08 13:27:57 +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 Reland "Revert "hide nested hinting enum"" 2018-11-07 23:56:24 +00:00
gm Reland "Revert "hide nested hinting enum"" 2018-11-07 23:56:24 +00:00
gn Reland "simplify disabling effect deserialization" 2018-11-08 14:26:52 +00:00
include Check every word in docs 2018-11-08 13:27:57 +00:00
infra Roll recipe dependencies (trivial). 2018-11-08 15:15:48 +00:00
modules Reland "Revert "hide nested hinting enum"" 2018-11-07 23:56:24 +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 Reland "Revert "hide nested hinting enum"" 2018-11-07 23:56:24 +00:00
site Check every word in docs 2018-11-08 13:27:57 +00:00
src Added GrMeshDrawOp::WriteVertexData 2018-11-08 16:19:53 +00:00
tests Reland "Revert "hide nested hinting enum"" 2018-11-07 23:56:24 +00:00
third_party Roll skia/third_party/skcms 26679709b32f..ee5557693416 (1 commits) 2018-11-07 14:53:31 +00:00
tools Check every word in docs 2018-11-08 13:27:57 +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 Reland "simplify disabling effect deserialization" 2018-11-08 14:26:52 +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 448b99f1a580..905ee08219fa (1 commits) 2018-11-08 09:18:58 +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 Add new autoroll service accounts to AUTHORS check bypass 2018-09-07 18:49:23 +00:00
public.bzl Reland "simplify disabling effect deserialization" 2018-11-08 14:26:52 +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.