Fix no GPU build after r13728
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 10 Mar 2014 19:51:46 +0000 (19:51 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 10 Mar 2014 19:51:46 +0000 (19:51 +0000)
Review URL: https://codereview.chromium.org/193163002

git-svn-id: http://skia.googlecode.com/svn/trunk@13731 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/rrects.cpp

index 7dd30ca9008535f96335e9ccd45743110b9439a9..cc76718b0a5f114c98a2b2a7bbc18f1910ffe74b 100644 (file)
@@ -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;