Go to file
Mike Klein 1f4a874add SkRasterPipeline: add last() and docs.
Today if you use the simple SK_RASTER_STAGE interface to build a pipeline, each stage you add calls into a next stage.  The last stage you add calls into a special backstop stage JustReturn that, well, just returns, ending the pipeline.

This adds last(), which cuts that last stage off the pipeline.  Instead, the stage you add using last() returns directly, ending the pipeline itself without jumping into JustReturn.

This reduces the overhead of using the pipelined version of SkRasterPipelineBench from ~25% to ~20% on my desktop.

Also, add docs.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2713

Change-Id: I11469378e2765c6e34db52eb3eef648d6612da3f
Reviewed-on: https://skia-review.googlesource.com/2713
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2016-09-27 17:46:54 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench SkRasterPipeline: add last() and docs. 2016-09-27 17:46:54 +00:00
bin bin/coverage: a GN version of the coverage script 2016-09-26 10:30:39 -07:00
cmake Split SkFontConfigInterface globals and factory. 2016-09-19 12:13:16 -07:00
debugger Remove some ancillary users of SkSurface::MakeRenderTargetDirect 2016-08-01 05:53:23 -07:00
dm document.close from bool to void 2016-09-22 14:12:47 -07:00
example Get Mac viewer working with SDL 2016-08-04 12:30:31 -07:00
experimental [SVGDom] Opacity optimization 2016-09-20 15:45:57 -07:00
fuzz Make SkPngCodec decode progressively. 2016-09-16 08:20:38 -07:00
gm Remove stray semicolons. 2016-09-27 14:04:26 +00:00
gn Turn on -Wgnu-anonymous-struct and -Wnested-anonymous-types. 2016-09-27 17:22:12 +00:00
gyp Add GrVkCopyPipeline to handle vulkan copies as draws 2016-09-27 08:00:53 -07:00
include Remove stray semicolons. 2016-09-27 14:04:26 +00:00
infra Fix dm/nanobench uploads for Gerrit-based trybots 2016-09-27 15:54:27 +00:00
platform_tools Add mips dsp arch variants to gyp_to_android.py. 2016-09-27 07:37:20 -07:00
resources GM: add test for type1 font 2016-09-20 13:11:01 -07:00
samplecode allow conic chop to fail 2016-09-26 11:03:54 -07:00
site Fix typo 2016-09-26 12:49:06 -07:00
src SkRasterPipeline: add last() and docs. 2016-09-27 17:46:54 +00:00
tests OverAlignedTest: use sk_ malloc and free. 2016-09-27 16:12:13 +00:00
third_party GN: ANGLE 2016-09-23 13:18:41 -07:00
tools Remove gen_bench_expectations_from_codereview 2016-09-27 08:21:44 -07:00
.gitignore Move Skia recipes from build repo 2016-07-26 11:52:17 -07:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Add contributor to Skia AUTHORS file 2016-09-01 07:55:43 -07:00
BUILD.gn GN: ANGLE 2016-09-23 13:18:41 -07:00
codereview.settings Automatically add a docs preview link and NOTRY=true when there are only docs changes. 2015-02-26 10:16:13 -08: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 Clean up target_os=llvm now that it does nothing. 2016-09-08 09:19:00 -07:00
Doxyfile Documentation: SkCanvas API 2015-05-19 10:21:29 -07:00
gyp_skia Make Win runtime DLLs writeable before overwriting 2016-03-18 08:33:38 -07:00
gyp_skia.py Roll gyp deps from 1765 to 1796. 2013-11-21 18:11:14 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
make.bat Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
make.py GYP: remove stale skia_scalar gyp variable 2015-11-10 13:25:12 -05:00
Makefile Add visualbench as valid target to Makefile 2015-12-18 08:05:06 -08:00
OWNERS add root files from chrome 2013-08-13 19:11:15 +00:00
PRESUBMIT.py To prep for removing CMake bots, take them off the CQ and presubmit. 2016-09-19 09:08:07 -07:00
public.bzl Include GLTestContext_command_buffer.cpp in G3 build. 2016-09-23 16:06:53 +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
skia.gyp Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
whitespace.txt Whitespace change 2016-09-18 11:37:26 -07:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.