| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 | 7 |
| 8 #include "gm.h" | 8 #include "gm.h" |
| 9 #include "SkBlurMaskFilter.h" |
| 9 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 10 #include "SkGraphics.h" | 11 #include "SkGraphics.h" |
| 12 #include "SkLayerDrawLooper.h" |
| 13 #include "SkPath.h" |
| 11 #include "SkRandom.h" | 14 #include "SkRandom.h" |
| 12 #include "SkLayerDrawLooper.h" | |
| 13 #include "SkBlurMaskFilter.h" | |
| 14 | 15 |
| 15 static SkRect inset(const SkRect& r) { | 16 static SkRect inset(const SkRect& r) { |
| 16 SkRect rect = r; | 17 SkRect rect = r; |
| 17 rect.inset(r.width() / 8, r.height() / 8); | 18 rect.inset(r.width() / 8, r.height() / 8); |
| 18 return rect; | 19 return rect; |
| 19 } | 20 } |
| 20 | 21 |
| 21 class PathInteriorGM : public skiagm::GM { | 22 class PathInteriorGM : public skiagm::GM { |
| 22 public: | 23 public: |
| 23 PathInteriorGM() { | 24 PathInteriorGM() { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 105 |
| 105 private: | 106 private: |
| 106 | 107 |
| 107 typedef GM INHERITED; | 108 typedef GM INHERITED; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 ////////////////////////////////////////////////////////////////////////////// | 111 ////////////////////////////////////////////////////////////////////////////// |
| 111 | 112 |
| 112 static skiagm::GM* MyFactory(void*) { return new PathInteriorGM; } | 113 static skiagm::GM* MyFactory(void*) { return new PathInteriorGM; } |
| 113 static skiagm::GMRegistry reg(MyFactory); | 114 static skiagm::GMRegistry reg(MyFactory); |
| OLD | NEW |