OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| 11 #include "SkPath.h" |
11 #include "SkRandom.h" | 12 #include "SkRandom.h" |
12 | 13 |
13 namespace skiagm { | 14 namespace skiagm { |
14 | 15 |
15 class EmptyPathGM : public GM { | 16 class EmptyPathGM : public GM { |
16 public: | 17 public: |
17 EmptyPathGM() {} | 18 EmptyPathGM() {} |
18 | 19 |
19 protected: | 20 protected: |
20 SkString onShortName() { | 21 SkString onShortName() { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 private: | 126 private: |
126 typedef GM INHERITED; | 127 typedef GM INHERITED; |
127 }; | 128 }; |
128 | 129 |
129 ////////////////////////////////////////////////////////////////////////////// | 130 ////////////////////////////////////////////////////////////////////////////// |
130 | 131 |
131 static GM* MyFactory(void*) { return new EmptyPathGM; } | 132 static GM* MyFactory(void*) { return new EmptyPathGM; } |
132 static GMRegistry reg(MyFactory); | 133 static GMRegistry reg(MyFactory); |
133 | 134 |
134 } | 135 } |
OLD | NEW |