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 "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkPath.h" | 10 #include "SkPath.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 draw_pixel_centers(canvas); | 51 draw_pixel_centers(canvas); |
52 } | 52 } |
53 | 53 |
54 class FatPathFillGM : public skiagm::GM { | 54 class FatPathFillGM : public skiagm::GM { |
55 public: | 55 public: |
56 FatPathFillGM() {} | 56 FatPathFillGM() {} |
57 | 57 |
58 protected: | 58 protected: |
59 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 59 uint32_t onGetFlags() const SK_OVERRIDE { |
60 return kSkipTiled_Flag; | 60 return kSkipTiled_Flag; |
61 } | 61 } |
62 | 62 |
63 virtual SkString onShortName() { | 63 virtual SkString onShortName() { |
64 return SkString("fatpathfill"); | 64 return SkString("fatpathfill"); |
65 } | 65 } |
66 | 66 |
67 virtual SkISize onISize() { | 67 virtual SkISize onISize() { |
68 return SkISize::Make(SMALL_W * ZOOM, SMALL_H * ZOOM * REPEAT_LOOP); | 68 return SkISize::Make(SMALL_W * ZOOM, SMALL_H * ZOOM * REPEAT_LOOP); |
69 } | 69 } |
(...skipping 18 matching lines...) Expand all Loading... |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 private: | 91 private: |
92 typedef skiagm::GM INHERITED; | 92 typedef skiagm::GM INHERITED; |
93 }; | 93 }; |
94 | 94 |
95 /////////////////////////////////////////////////////////////////////////////// | 95 /////////////////////////////////////////////////////////////////////////////// |
96 | 96 |
97 DEF_GM(return new FatPathFillGM;) | 97 DEF_GM(return new FatPathFillGM;) |
OLD | NEW |