diff options
author | Hal Canary <halcanary@google.com> | 2017-06-17 10:38:13 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-19 15:56:33 +0000 |
commit | d6e6e6699a85c6ed79e7d3b01e30d19e361ae049 (patch) | |
tree | 629683240e1596e0adfdc9d659f2687fe8a62cab /src/core/SkUtils.h | |
parent | 6d28730b2b13876601dec60caf49ba89e29c6fad (diff) |
factor out hexadecimal constants.
Now we don't have to rely on the linker to de-duplicate
so many gHex[] constants.
Change-Id: Ia86d3a92648415afdb8d29499b4faded5ed05c7d
Reviewed-on: https://skia-review.googlesource.com/20180
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkUtils.h')
-rw-r--r-- | src/core/SkUtils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkUtils.h b/src/core/SkUtils.h index 2ae6f87eea..832bdbd8fd 100644 --- a/src/core/SkUtils.h +++ b/src/core/SkUtils.h @@ -107,4 +107,10 @@ inline bool SkUnichar_IsVariationSelector(SkUnichar uni) { } return true; } + +namespace SkHexadecimalDigits { + extern const char gUpper[16]; // 0-9A-F + extern const char gLower[16]; // 0-9a-f +} + #endif |