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