Go to file
Mike Klein dbd43481f1 Don't pass a stack address as a pipeline context pointer.
We call isNumericalTransferFn() both to test if an SkColorSpace
is a 7-parameter numerical transfer function, and to get those
parameters if so.  They're passed to the stage functions that
apply that transfer function via a context pointer.

We can't use &srcFn as this pointer, as it's on the stack,
and won't be alive by the time we get around to running the
pipeline.  Instead, copy it to the SkArenaAlloc we thread
through just for this purpose.

This would be a beginner's mistake, except that I wrote
the API myself...

Bug: chromium:794406
Change-Id: I9f9581f07a14ab501762f050e2c26f2e55a0c253
Reviewed-on: https://skia-review.googlesource.com/85340
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-12-14 21:00:57 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Push much of the SkColorSpace_Base interface up to SkColorSpace 2017-12-12 19:34:29 +00:00
bin bin/try: No prompt for a single matching job 2017-12-11 18:32:08 +00:00
debugger Add GrGLMakeNativeInterface factory that returns sk_sp<const GrGLInterface>. 2017-12-11 17:54:38 +00:00
dm Push much of the SkColorSpace_Base interface up to SkColorSpace 2017-12-12 19:34:29 +00:00
docs fix broken flatten example and update usingBookmaker 2017-12-14 15:42:26 +00:00
example Add GrGLMakeNativeInterface factory that returns sk_sp<const GrGLInterface>. 2017-12-11 17:54:38 +00:00
experimental resources: orgainize directory. 2017-12-08 17:16:00 +00:00
fuzz Fuzz skpicture with ReadBuffer 2017-12-12 19:11:09 +00:00
gm Add strip 2pt conical GM 2017-12-13 21:11:10 +00:00
gn Suppress warnings of unused variables. 2017-12-14 19:13:08 +00:00
include make SkColorSpace_New real 2017-12-14 19:02:17 +00:00
infra Add cert dimension for Mac Builders. 2017-12-14 20:40:27 +00:00
platform_tools apps/build.gradle: skiaOut is now absolute since a2e7f5ae10 2017-12-11 17:16:58 +00:00
resources resources: orgainize directory. 2017-12-08 17:16:00 +00:00
samplecode CCPR: Don't use instanced draw calls with geometry shaders 2017-12-11 17:27:38 +00:00
site fix broken flatten example and update usingBookmaker 2017-12-14 15:42:26 +00:00
src Don't pass a stack address as a pipeline context pointer. 2017-12-14 21:00:57 +00:00
tests make SkColorSpace_New real 2017-12-14 19:02:17 +00:00
third_party Update Windows clang asset 2017-12-08 16:55:10 +00:00
tools pre-api change, preparing for expanding metadata 2017-12-14 15:37:23 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS fix use of uninitialized flag in SkCodec 2017-10-09 19:17:05 +00:00
BUILD.gn binary_resources.cpp only compiles if skia_embed_resources 2017-12-13 19:30:32 +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 skia/third_party/externals/angle2/ 9d4d7f06f..f15f9cec3 (1 commit) 2017-12-14 19:13:07 +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 PostUploadHook needs to return something 2017-12-07 18:40:09 +00:00
public.bzl clean up float-cast-overflow blacklist 2017-12-13 20:09:10 +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 Removed general bot upload permissions, whitespace change to test 2017-12-04 13:03:34 +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.