aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkBmpCodec.h
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/SkBmpCodec.h
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/SkBmpCodec.h')
-rw-r--r--src/codec/SkBmpCodec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/SkBmpCodec.h b/src/codec/SkBmpCodec.h
index 651f1be248..3196ae1126 100644
--- a/src/codec/SkBmpCodec.h
+++ b/src/codec/SkBmpCodec.h
@@ -102,8 +102,8 @@ protected:
* BMPs are typically encoded as BGRA/BGR so this is a more efficient choice
* than RGBA.
*/
- static const SkColorType kXformSrcColorType = kBGRA_8888_SkColorType;
- static const auto kXformSrcColorFormat = SkColorSpaceXform::kBGRA_8888_ColorFormat;
+ static constexpr SkColorType kXformSrcColorType = kBGRA_8888_SkColorType;
+ static constexpr auto kXformSrcColorFormat = SkColorSpaceXform::kBGRA_8888_ColorFormat;
private: