Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: tools/PictureRenderer.h

Issue 1306443004: Use static_assert instead of SK_COMPILE_ASSERT. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ImageDecodingTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureRenderer.h
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h
index ca36961b43a4600a2ee3d7a73793736465f39c09..a06604bc87ec365748a8f1802d384c06206c1d2e 100644
--- a/tools/PictureRenderer.h
+++ b/tools/PictureRenderer.h
@@ -71,11 +71,12 @@ public:
kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e.g., blurs)
};
- SK_COMPILE_ASSERT(!(kMaskFilter_DrawFilterFlag & SkPaint::kAllFlags), maskfilter_flag_must_be_greater);
- SK_COMPILE_ASSERT(!(kHinting_DrawFilterFlag & SkPaint::kAllFlags),
- hinting_flag_must_be_greater);
- SK_COMPILE_ASSERT(!(kSlightHinting_DrawFilterFlag & SkPaint::kAllFlags),
- slight_hinting_flag_must_be_greater);
+ static_assert(!(kMaskFilter_DrawFilterFlag & SkPaint::kAllFlags),
+ "maskfilter_flag_must_be_greater");
+ static_assert(!(kHinting_DrawFilterFlag & SkPaint::kAllFlags),
+ "hinting_flag_must_be_greater");
+ static_assert(!(kSlightHinting_DrawFilterFlag & SkPaint::kAllFlags),
+ "slight_hinting_flag_must_be_greater");
/**
* Called with each new SkPicture to render.
« no previous file with comments | « tests/ImageDecodingTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698