OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | |
8 #include "gm.h" | 7 #include "gm.h" |
9 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
10 #include "SkPath.h" | |
11 #include "SkPaint.h" | 9 #include "SkPaint.h" |
12 #include "SkRandom.h" | 10 #include "SkRandom.h" |
13 | 11 |
14 namespace skiagm { | 12 namespace skiagm { |
15 | 13 |
16 class LinePathGM : public GM { | 14 class LinePathGM : public GM { |
17 public: | 15 public: |
18 LinePathGM() {} | 16 LinePathGM() {} |
19 | 17 |
20 protected: | 18 protected: |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 297 |
300 ////////////////////////////////////////////////////////////////////////////// | 298 ////////////////////////////////////////////////////////////////////////////// |
301 | 299 |
302 static GM* LinePathFactory(void*) { return new LinePathGM; } | 300 static GM* LinePathFactory(void*) { return new LinePathGM; } |
303 static GMRegistry regLinePath(LinePathFactory); | 301 static GMRegistry regLinePath(LinePathFactory); |
304 | 302 |
305 static GM* LineClosePathFactory(void*) { return new LineClosePathGM; } | 303 static GM* LineClosePathFactory(void*) { return new LineClosePathGM; } |
306 static GMRegistry regLineClosePath(LineClosePathFactory); | 304 static GMRegistry regLineClosePath(LineClosePathFactory); |
307 | 305 |
308 } | 306 } |
OLD | NEW |