OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkData.h" | 9 #include "SkData.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 test_surface(canvas, surf0, true); | 182 test_surface(canvas, surf0, true); |
183 canvas->translate(80, 0); | 183 canvas->translate(80, 0); |
184 test_surface(canvas, surf1, true); | 184 test_surface(canvas, surf1, true); |
185 if (surf2) { | 185 if (surf2) { |
186 canvas->translate(80, 0); | 186 canvas->translate(80, 0); |
187 test_surface(canvas, surf2, true); | 187 test_surface(canvas, surf2, true); |
188 } | 188 } |
189 } | 189 } |
190 | 190 |
191 uint32_t onGetFlags() const SK_OVERRIDE { | |
192 return GM::kSkipPicture_Flag | GM::kSkipPipe_Flag; | |
193 } | |
194 | |
195 private: | 191 private: |
196 typedef skiagm::GM INHERITED; | 192 typedef skiagm::GM INHERITED; |
197 }; | 193 }; |
198 DEF_GM( return new ImageGM; ) | 194 DEF_GM( return new ImageGM; ) |
199 | 195 |
200 class ImageResizeGM : public skiagm::GM { | 196 class ImageResizeGM : public skiagm::GM { |
201 enum { | 197 enum { |
202 W = 100, | 198 W = 100, |
203 H = 100, | 199 H = 100, |
204 }; | 200 }; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 } | 278 } |
283 canvas->translate(0, image->height() + 20.0f); | 279 canvas->translate(0, image->height() + 20.0f); |
284 } | 280 } |
285 } | 281 } |
286 | 282 |
287 private: | 283 private: |
288 typedef skiagm::GM INHERITED; | 284 typedef skiagm::GM INHERITED; |
289 }; | 285 }; |
290 DEF_GM( return new ImageResizeGM; ) | 286 DEF_GM( return new ImageResizeGM; ) |
291 | 287 |
OLD | NEW |