Index: gm/rrects.cpp |
diff --git a/gm/rrects.cpp b/gm/rrects.cpp |
index 7dd30ca9008535f96335e9ccd45743110b9439a9..cc76718b0a5f114c98a2b2a7bbc18f1910ffe74b 100644 |
--- a/gm/rrects.cpp |
+++ b/gm/rrects.cpp |
@@ -89,10 +89,14 @@ protected: |
SkIntToScalar(kImageHeight)); |
#endif |
+#if SK_SUPPORT_GPU |
int lastEdgeType = (kEffect_Type == fType) ? kLast_GrEffectEdgeType: 0; |
+#else |
+ int lastEdgeType = 0; |
+#endif |
int y = 1; |
- for (int et = (GrEffectEdgeType) 0; et <= lastEdgeType; ++et) { |
+ for (int et = 0; et <= lastEdgeType; ++et) { |
int x = 1; |
for (int curRRect = 0; curRRect < kNumRRects; ++curRRect) { |
bool drew = true; |