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

Unified Diff: bench/DashBench.cpp

Issue 13852013: Fix gyp files to allow ninja to build 64 bit on Mac. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix build by handling kLineTypeCount in switch Created 7 years, 8 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 | « no previous file | gyp/common_conditions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/DashBench.cpp
diff --git a/bench/DashBench.cpp b/bench/DashBench.cpp
index 3853a20488d54d8a31d3836e38b9ff7ba5b30571..5d320a2822911914ba4f2ab5513c7d5238acb69c 100644
--- a/bench/DashBench.cpp
+++ b/bench/DashBench.cpp
@@ -323,12 +323,13 @@ public:
enum LineType {
kHori_LineType,
kVert_LineType,
- kDiag_LineType
+ kDiag_LineType,
+ kLineTypeCount
};
static const char* LineTypeName(LineType lt) {
static const char* gNames[] = { "hori", "vert", "diag" };
- SkASSERT((size_t)lt <= SK_ARRAY_COUNT(gNames));
+ SK_COMPILE_ASSERT(kLineTypeCount == SK_ARRAY_COUNT(gNames), names_wrong_size);
return gNames[lt];
}
@@ -356,6 +357,9 @@ public:
case kDiag_LineType:
matrix.setRotate(45, cx, cy);
break;
+ case kLineTypeCount:
+ // Not a real enum value.
+ break;
}
const SkScalar overshoot = 100*1000;
« no previous file with comments | « no previous file | gyp/common_conditions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698