Go to file
fmalita 0ce4f230eb Apply linear gradient premul in 4f
(spotted by reed@)

Instead of converting to SkPMColor first, apply the premul in 4f and
then just store.

A modified bench shows a significant speedup:

  17/17  MB	1	690µs	695µs	695µs	700µs	0%	█▅▁▄▆▅▁▅▆▃	8888	gradient_linear_clamp_3color
  17/17  MB	1	832µs	837µs	839µs	870µs	1%	█▁▁▂▂▂▂▂▂▂	8888	gradient_linear_clamp_hicolor
  17/17  MB	1	651µs	659µs	665µs	701µs	3%	▆█▅▁▂▂▁▁▂▂	8888	gradient_linear_clamp

vs.

  17/17  MB	1	1.03ms	1.03ms	1.04ms	1.08ms	2%	██▇▁▁▁▁▁▁▁	8888	gradient_linear_clamp_3color
  17/17  MB	1	1.17ms	1.18ms	1.18ms	1.22ms	1%	█▄▂▁▁▁▁▁▁▁	8888	gradient_linear_clamp_hicolor
  17/17  MB	1	1.1ms	1.15ms	1.14ms	1.16ms	2%	▇▇▇▇▇▇██▁▁	8888	gradient_linear_clamp

R=reed@google.com,brianosman@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2409583003

Review-Url: https://codereview.chromium.org/2409583003
2016-12-06 08:57:47 -08:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Add destination color space to shader ContextRec 2016-12-05 21:48:59 +00:00
bin Build for Android from Windows, work in progress. 2016-10-26 14:37:43 +00:00
debugger SkEncodeImage: no more link-time registration 2016-11-30 22:48:56 +00:00
dm Add a context stack to Reporter, for better error messages 2016-12-05 18:30:46 +00:00
example bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
experimental [SVGDom] Add fill-rule support 2016-12-06 16:05:41 +00:00
fuzz Rename SkSL::GLSLCapsFactory to SkSL::ShaderCapsFactory 2016-11-29 21:12:45 +00:00
gm Add destination color space to shader ContextRec 2016-12-05 21:48:59 +00:00
gn -pie applies only to executables 2016-12-06 16:38:31 +00:00
gyp SkEncodeImage: no more link-time registration 2016-11-30 22:48:56 +00:00
include Add destination color space to shader ContextRec 2016-12-05 21:48:59 +00:00
infra Update SKP version 2016-12-06 16:51:38 +00:00
platform_tools Archive or update unsupported Android scripts and third-party dependencies. 2016-12-02 14:11:24 +00:00
resources Do not create an SkRawCodec with zero dimensions 2016-12-02 22:23:35 +00:00
samplecode Make ANGLE SampleApp work again 2016-12-05 15:27:50 +00:00
site docs: Update Perf docs. 2016-12-01 20:51:04 +00:00
src Apply linear gradient premul in 4f 2016-12-06 08:57:47 -08:00
tests Divide up CodecTest 2016-12-06 16:57:40 +00:00
third_party GIF: Internal cleanup - remove color map parameter 2016-12-05 20:28:34 +00:00
tools fiddle: Don't run F16 by default, it doesn't work with OSMesa. 2016-12-02 16:27:16 +00:00
.gitignore Remove skia.conf from .gitignore 2016-10-26 14:50:09 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fix typo in GrGLCaps 2016-11-18 23:20:51 +00:00
BUILD.gn Make ANGLE SampleApp work again 2016-12-05 15:27:50 +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 Update PIEX 2016-11-28 13:55:48 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
fix-gn-sln.py VS script: Handle variation among configurations 2016-11-21 16:35:39 +00: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 Do not use post upload hooks for 'GOLD_TRYBOT_URL' 2016-11-23 18:34:23 +00:00
public.bzl Merge changes from internal cl/140385880. 2016-11-28 22:21:34 +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 Blame this CL for GTX660 changes. 2016-11-02 22:03:53 +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.