OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const SkScalar slideBoundary = 5; | 63 const SkScalar slideBoundary = 5; |
64 | 64 |
65 | 65 |
66 class InversePathsGM : public GM { | 66 class InversePathsGM : public GM { |
67 public: | 67 public: |
68 InversePathsGM() { | 68 InversePathsGM() { |
69 | 69 |
70 } | 70 } |
71 | 71 |
72 protected: | 72 protected: |
| 73 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 74 return kSkipTiled_Flag; |
| 75 } |
| 76 |
73 virtual SkString onShortName() { | 77 virtual SkString onShortName() { |
74 return SkString("inverse_paths"); | 78 return SkString("inverse_paths"); |
75 } | 79 } |
76 | 80 |
77 virtual SkISize onISize() { | 81 virtual SkISize onISize() { |
78 return make_isize(800, 900); | 82 return make_isize(800, 900); |
79 } | 83 } |
80 | 84 |
81 virtual void onDraw(SkCanvas* canvas) { | 85 virtual void onDraw(SkCanvas* canvas) { |
82 SkScalar cx = slideWidth / 2 + slideBoundary; | 86 SkScalar cx = slideWidth / 2 + slideBoundary; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 141 } |
138 } | 142 } |
139 } | 143 } |
140 | 144 |
141 private: | 145 private: |
142 typedef GM INHERITED; | 146 typedef GM INHERITED; |
143 }; | 147 }; |
144 | 148 |
145 DEF_GM( return new InversePathsGM; ) | 149 DEF_GM( return new InversePathsGM; ) |
146 } | 150 } |
OLD | NEW |