diff options
author | 2015-08-20 07:57:51 -0700 | |
---|---|---|
committer | 2015-08-20 07:57:52 -0700 | |
commit | 99fe82260633fcf5d92cca38d12ef0937ecca61c (patch) | |
tree | 258dedccd2b908de58f6b1ae7c67dbfbe7208866 /include/private | |
parent | 915881fe743f9a789037695f543bc6ea189cd0cb (diff) |
Use static_assert instead of SK_COMPILE_ASSERT.
Now that static_assert is allowed, there is no need to use a non-
standard compile time assertion
Review URL: https://codereview.chromium.org/1306443004
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/SkRecords.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/SkRecords.h b/include/private/SkRecords.h index 1f2807842c..4268bb469c 100644 --- a/include/private/SkRecords.h +++ b/include/private/SkRecords.h @@ -247,7 +247,7 @@ struct RegionOpAndAA { SkRegion::Op op : 31; // This really only needs to be 3, but there's no win today to do so. unsigned aa : 1; // MSVC won't pack an enum with an bool, so we call this an unsigned. }; -SK_COMPILE_ASSERT(sizeof(RegionOpAndAA) == 4, RegionOpAndAASize); +static_assert(sizeof(RegionOpAndAA) == 4, "RegionOpAndAASize"); RECORD3(ClipPath, SkIRect, devBounds, PreCachedPath, path, RegionOpAndAA, opAA); RECORD3(ClipRRect, SkIRect, devBounds, SkRRect, rrect, RegionOpAndAA, opAA); |