aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkMasks.cpp
diff options
context:
space:
mode:
authorGravatar Leon Scroggins III <scroggo@google.com>2017-10-02 16:28:49 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-03 12:35:58 +0000
commit862c19675edb26ed7cba56ae6ca9f98c1e4cbef1 (patch)
tree446fecbce607a64102f08b43fdd6975e5052efdc /src/codec/SkMasks.cpp
parentdd7ffa5a557bcaa1daebd0f056a8f1bafb992d4d (diff)
Remove static initializers in SkCodec
Bug: 768878 Switch const declarations to constexpr where appropriate. Speculative fix for crbug.com/768878. Change-Id: I7fc356e623ce7a0f2b87e92e9a8ed95d5c423d79 Reviewed-on: https://skia-review.googlesource.com/54101 Commit-Queue: Leon Scroggins <scroggo@google.com> Reviewed-by: Chris Blume <cblume@chromium.org>
Diffstat (limited to 'src/codec/SkMasks.cpp')
-rw-r--r--src/codec/SkMasks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkMasks.cpp b/src/codec/SkMasks.cpp
index ac97a39d78..79892ed922 100644
--- a/src/codec/SkMasks.cpp
+++ b/src/codec/SkMasks.cpp
@@ -14,7 +14,7 @@
* Used to convert 1-7 bit color components into 8-bit color components
*
*/
-const static uint8_t n_bit_to_8_bit_lookup_table[] = {
+static constexpr uint8_t n_bit_to_8_bit_lookup_table[] = {
// 1 bit
0, 255,
// 2 bits