| Index: src/pdf/SkPDFGraphicState.cpp
|
| diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp
|
| index 55f3b3929fea31b3d3434bc36cb413ef000ff182..c4b6c20fe443532af774cf3aefb27d345ead32df 100644
|
| --- a/src/pdf/SkPDFGraphicState.cpp
|
| +++ b/src/pdf/SkPDFGraphicState.cpp
|
| @@ -210,17 +210,17 @@ void SkPDFGraphicState::emitObject(
|
| SkPaint::Join strokeJoin = (SkPaint::Join)fStrokeJoin;
|
| SkXfermode::Mode xferMode = (SkXfermode::Mode)fMode;
|
|
|
| - SK_COMPILE_ASSERT(SkPaint::kButt_Cap == 0, paint_cap_mismatch);
|
| - SK_COMPILE_ASSERT(SkPaint::kRound_Cap == 1, paint_cap_mismatch);
|
| - SK_COMPILE_ASSERT(SkPaint::kSquare_Cap == 2, paint_cap_mismatch);
|
| - SK_COMPILE_ASSERT(SkPaint::kCapCount == 3, paint_cap_mismatch);
|
| + static_assert(SkPaint::kButt_Cap == 0, "paint_cap_mismatch");
|
| + static_assert(SkPaint::kRound_Cap == 1, "paint_cap_mismatch");
|
| + static_assert(SkPaint::kSquare_Cap == 2, "paint_cap_mismatch");
|
| + static_assert(SkPaint::kCapCount == 3, "paint_cap_mismatch");
|
| SkASSERT(strokeCap >= 0 && strokeCap <= 2);
|
| dict->insertInt("LC", strokeCap);
|
|
|
| - SK_COMPILE_ASSERT(SkPaint::kMiter_Join == 0, paint_join_mismatch);
|
| - SK_COMPILE_ASSERT(SkPaint::kRound_Join == 1, paint_join_mismatch);
|
| - SK_COMPILE_ASSERT(SkPaint::kBevel_Join == 2, paint_join_mismatch);
|
| - SK_COMPILE_ASSERT(SkPaint::kJoinCount == 3, paint_join_mismatch);
|
| + static_assert(SkPaint::kMiter_Join == 0, "paint_join_mismatch");
|
| + static_assert(SkPaint::kRound_Join == 1, "paint_join_mismatch");
|
| + static_assert(SkPaint::kBevel_Join == 2, "paint_join_mismatch");
|
| + static_assert(SkPaint::kJoinCount == 3, "paint_join_mismatch");
|
| SkASSERT(strokeJoin >= 0 && strokeJoin <= 2);
|
| dict->insertInt("LJ", strokeJoin);
|
|
|
|
|