OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #include "gm.h" | 7 #include "gm.h" |
9 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
10 #include "SkPaint.h" | 9 #include "SkPaint.h" |
11 #include "SkPath.h" | 10 #include "SkPath.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 dotPaint.setStrokeWidth(7); | 193 dotPaint.setStrokeWidth(7); |
195 | 194 |
196 for (size_t i = 0; i < SK_ARRAY_COUNT(procs); ++i) { | 195 for (size_t i = 0; i < SK_ARRAY_COUNT(procs); ++i) { |
197 SkPath path; | 196 SkPath path; |
198 procs[i](&path, fPts); | 197 procs[i](&path, fPts); |
199 canvas->drawPoints(SkCanvas::kPoints_PointMode, 3, fPts, dotPaint); | 198 canvas->drawPoints(SkCanvas::kPoints_PointMode, 3, fPts, dotPaint); |
200 canvas->drawPath(path, strokePaint); | 199 canvas->drawPath(path, strokePaint); |
201 canvas->translate(0, 40); | 200 canvas->translate(0, 40); |
202 } | 201 } |
203 } | 202 } |
204 | 203 |
205 private: | 204 private: |
206 typedef GM INHERITED; | 205 typedef GM INHERITED; |
207 }; | 206 }; |
208 DEF_GM( return new EmptyStrokeGM; ) | 207 DEF_GM( return new EmptyStrokeGM; ) |
209 | 208 |
210 } | 209 } |
OLD | NEW |