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 */ |
| 7 |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkGradientShader.h" | 9 #include "SkGradientShader.h" |
| 10 #include "SkPath.h" |
10 | 11 |
11 namespace skiagm { | 12 namespace skiagm { |
12 | 13 |
13 class FillTypePerspGM : public GM { | 14 class FillTypePerspGM : public GM { |
14 SkPath fPath; | 15 SkPath fPath; |
15 public: | 16 public: |
16 FillTypePerspGM() {} | 17 FillTypePerspGM() {} |
17 | 18 |
18 void makePath() { | 19 void makePath() { |
19 if (fPath.isEmpty()) { | 20 if (fPath.isEmpty()) { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 private: | 124 private: |
124 typedef GM INHERITED; | 125 typedef GM INHERITED; |
125 }; | 126 }; |
126 | 127 |
127 ////////////////////////////////////////////////////////////////////////////// | 128 ////////////////////////////////////////////////////////////////////////////// |
128 | 129 |
129 static GM* MyFactory(void*) { return new FillTypePerspGM; } | 130 static GM* MyFactory(void*) { return new FillTypePerspGM; } |
130 static GMRegistry reg(MyFactory); | 131 static GMRegistry reg(MyFactory); |
131 | 132 |
132 } | 133 } |
OLD | NEW |