Go to file
Mike Reed 194cab0fd3 use slope-guess for faster charToGlyph
Made up a threshold between linear and slope searching.
For a count of 100 here are the before and after timings.
The first two lines are being changed. The latter 2 are
the native look-ups for mac.

Before

  15/15  MB	115	2.33µs	2.34µs	2.34µs	2.34µs	0%	▆▁▄█▇▇▂▄█▆	nonrendering	cmap_findcache_charToGlyph
  15/15  MB	66	3.47µs	3.48µs	3.49µs	3.55µs	1%	█▁▁▁▂▁▁▁▁▄	nonrendering	cmap_addcache_charToGlyph
  15/15  MB	1	1.1µs	1.13µs	1.21µs	1.98µs	22%	█▂▁▁▁▁▁▁▁▂	nonrendering	cmap_face_charToGlyph
  15/15  MB	190	1.09µs	1.1µs	1.19µs	1.64µs	17%	▁▁▁▆█▁▁▁▁▁	nonrendering	cmap_font_charToGlyph

After

  15/15  MB	447	448ns	449ns	448ns	449ns	0%	▂▅█▅▁▆█▂▁▆	nonrendering	cmap_findcache_charToGlyph
  15/15  MB	95	2.79µs	3.03µs	3µs	3.06µs	3%	▇▇▇▇▇███▄▁	nonrendering	cmap_addcache_charToGlyph
  15/15  MB	1	1.15µs	1.16µs	1.25µs	1.99µs	21%	█▂▁▁▁▁▁▁▁▁	nonrendering	cmap_face_charToGlyph
  15/15  MB	186	1.09µs	1.1µs	1.12µs	1.27µs	5%	█▁▁▁▂▁▁▁▁▁	nonrendering	cmap_font_charToGlyph


Bug: skia:
Change-Id: If7da4eef3cce248393815071f342607f0c8140bb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/208044
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2019-04-15 19:35:59 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench use slope-guess for faster charToGlyph 2019-04-15 19:35:59 +00:00
bin tools: bin/sync just alias for git-sync-deps now 2019-02-22 20:05:05 +00:00
dm extract ToolUtils::colortype_depth() 2019-04-09 20:32:15 +00:00
docker Include wasm debugger in continuous build part 2 2019-04-01 19:51:43 +00:00
docs/examples New factories for SkShaders 2019-04-09 19:15:01 +00:00
example Use SkTileMode instead of nested enum 2019-04-03 15:24:18 +00:00
experimental externs needed for cpu/gpu switch 2019-04-10 13:47:21 +00:00
fuzz New factories for SkShaders 2019-04-09 19:15:01 +00:00
gm Support domain clamping and transform matrices in YUVToRGB effects 2019-04-12 19:43:38 +00:00
gn Add callback to flush for knowing when gpu is finished work. 2019-04-15 13:52:28 +00:00
include always zero SkMallocPixelRefs 2019-04-15 15:50:58 +00:00
infra Add LenovoYogaC630 (Win arm64 bot) 2019-04-15 15:35:48 +00:00
modules [skottie] 'Add' layer blend mode support 2019-04-15 17:47:39 +00:00
platform_tools SkAnimTimer -> AnimTimer 2019-03-20 18:26:35 +00:00
resources Add planet emoji font. 2019-03-19 17:49:22 +00:00
samplecode remove SkMixer, since we have explicit lerps/blends in SkShader 2019-04-10 20:59:30 +00:00
site Remove bookmaker sources and data files 2019-03-25 18:56:29 +00:00
src use slope-guess for faster charToGlyph 2019-04-15 19:35:59 +00:00
tests use slope-guess for faster charToGlyph 2019-04-15 19:35:59 +00:00
third_party Roll skia/third_party/skcms 0da672fc2c69..668026c511f3 (1 commits) 2019-04-15 16:32:18 +00:00
tools dump stack trace in FM on failure 2019-04-15 19:15:39 +00:00
.clang-format restore .clang-format 2019-03-21 15:52:32 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +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 fix metal build errors with preprocessor definitions 2019-03-28 18:47:37 +00:00
BUILD.gn dump stack trace in FM on failure 2019-04-15 19:15:39 +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 cfc73cc1af5e..065f8dc35f9d (12 commits) 2019-04-15 05:01:51 +00: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 mtklein to api approvals 2019-04-02 15:16:56 +00:00
public.bzl buildifier public.bzl 2019-03-27 19:00:04 +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.