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

Unified Diff: gm/rrects.cpp

Issue 193163002: Fix no GPU build after r13728 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698