Go to file
mtklein dbfd7ab108 Replace a lot of 'static const' with 'constexpr' or 'const'.
'static const' means, there must be at most one of these, and initialize it at
compile time if possible or runtime if necessary.  This leads to unexpected
code execution, and TSAN* will complain about races on the guard variables.

Generally 'constexpr' or 'const' are better choices.  Neither can cause races:
they're either intialized at compile time (constexpr) or intialized each time
independently (const).

This CL prefers constexpr where possible, and uses const where not.  It even
prefers constexpr over const where they don't make a difference... I want to have
lots of examples of constexpr for people to see and mimic.

The scoped-to-class static has nothing to do with any of this, and is not changed.

* Not yet on the bots, which use an older TSAN.

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

Review-Url: https://codereview.chromium.org/2300623005
2016-09-01 11:24:54 -07:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Some tests around surface creation and snapshotting with color space 2016-08-30 07:07:59 -07:00
bin cleanup dead nanomsg and build_overrides 2016-08-27 06:50:11 -07:00
cmake CMake: require libjpeg-turbo, not libjpeg 2016-08-23 11:01:33 -07:00
debugger Remove some ancillary users of SkSurface::MakeRenderTargetDirect 2016-08-01 05:53:23 -07:00
dm Some tests around surface creation and snapshotting with color space 2016-08-30 07:07:59 -07:00
example Get Mac viewer working with SDL 2016-08-04 12:30:31 -07:00
experimental [SVGDom] Don't truncate opacity scalars 2016-08-29 05:54:42 -07:00
fuzz Create gradient fuzzers 2016-08-12 06:26:03 -07:00
gm Replace a lot of 'static const' with 'constexpr' or 'const'. 2016-09-01 11:24:54 -07:00
gn GN: add extra_ldflags 2016-09-01 09:15:44 -07:00
gyp Build LSAN suppressions into the test binaries. 2016-09-01 07:06:54 -07:00
include Flush some non-substantive Ganesh changes 2016-08-31 15:06:24 -07:00
infra preserve GN_Android in compile -> test mapper 2016-09-01 08:47:25 -07:00
platform_tools Cleanup use of legacy SkSurface creation methods a bit 2016-08-23 06:39:35 -07:00
resources Parse ICC profiles from webps 2016-08-24 07:36:06 -07:00
samplecode Optimizations and more documentation of SkShadowShader 2016-08-31 11:15:21 -07:00
site Add docs for GN/Android 2016-08-29 10:27:16 -07:00
src Disable MSAAPathRender for Android Framework builds 2016-09-01 10:13:04 -07:00
tests pathops coincident work 2016-08-31 14:36:30 -07:00
third_party Update FreeType dependency from 2.6.1 to 2.6.5. 2016-08-31 12:48:18 -07:00
tools Remove empty {lsan,ubsan}.supp files. 2016-09-01 08:08:03 -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 Build LSAN suppressions into the test binaries. 2016-09-01 07:06:54 -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 Update FreeType dependency from 2.6.1 to 2.6.5. 2016-08-31 12:48:18 -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 Include resources directory in google3 sync. 2015-10-20 13:00:48 -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 Enable Gerrit support in Skia's PostUploadHook 2016-09-01 09:54:01 -07:00
public.bzl Remove SkBitmap::getTexture() 2016-08-30 12:52:49 -07: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 for GTX960 diffs. 2016-09-01 05:38:54 -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.