Index: src/core/SkPictureRecord.cpp |
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp |
index 55262ad5710848b53bc14f5d8529b034ecf4a89a..2281d16145df790d27fcfb639e62aead2d8e4e46 100644 |
--- a/src/core/SkPictureRecord.cpp |
+++ b/src/core/SkPictureRecord.cpp |
@@ -105,8 +105,7 @@ static inline size_t get_paint_offset(DrawType op, size_t opSize) { |
1, // DRAW_IMAGE_RECT - right after op code |
}; |
- SK_COMPILE_ASSERT(sizeof(gPaintOffsets) == LAST_DRAWTYPE_ENUM + 1, |
- need_to_be_in_sync); |
+ static_assert(sizeof(gPaintOffsets) == LAST_DRAWTYPE_ENUM + 1, "need_to_be_in_sync"); |
SkASSERT((unsigned)op <= (unsigned)LAST_DRAWTYPE_ENUM); |
int overflow = 0; |