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 uint32_t onGetFlags() const SK_OVERRIDE { | |
60 return kSkipTiled_Flag; | |
61 } | |
62 | 59 |
63 virtual SkString onShortName() { | 60 virtual SkString onShortName() { |
64 return SkString("fatpathfill"); | 61 return SkString("fatpathfill"); |
65 } | 62 } |
66 | 63 |
67 virtual SkISize onISize() { | 64 virtual SkISize onISize() { |
68 return SkISize::Make(SMALL_W * ZOOM, SMALL_H * ZOOM * REPEAT_LOOP); | 65 return SkISize::Make(SMALL_W * ZOOM, SMALL_H * ZOOM * REPEAT_LOOP); |
69 } | 66 } |
70 | 67 |
71 virtual void onDraw(SkCanvas* canvas) { | 68 virtual void onDraw(SkCanvas* canvas) { |
(...skipping 16 matching lines...) Expand all Loading... |
88 } | 85 } |
89 } | 86 } |
90 | 87 |
91 private: | 88 private: |
92 typedef skiagm::GM INHERITED; | 89 typedef skiagm::GM INHERITED; |
93 }; | 90 }; |
94 | 91 |
95 /////////////////////////////////////////////////////////////////////////////// | 92 /////////////////////////////////////////////////////////////////////////////// |
96 | 93 |
97 DEF_GM(return new FatPathFillGM;) | 94 DEF_GM(return new FatPathFillGM;) |
OLD | NEW |