OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "gm.h" | 9 #include "gm.h" |
10 | 10 |
11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
12 #include "SkGradientShader.h" | 12 #include "SkGradientShader.h" |
| 13 #include "SkPath.h" |
13 #include "SkTLList.h" | 14 #include "SkTLList.h" |
14 | 15 |
15 static SkBitmap make_bmp(int w, int h) { | 16 static SkBitmap make_bmp(int w, int h) { |
16 SkBitmap bmp; | 17 SkBitmap bmp; |
17 bmp.allocN32Pixels(w, h, true); | 18 bmp.allocN32Pixels(w, h, true); |
18 | 19 |
19 SkCanvas canvas(bmp); | 20 SkCanvas canvas(bmp); |
20 SkScalar wScalar = SkIntToScalar(w); | 21 SkScalar wScalar = SkIntToScalar(w); |
21 SkScalar hScalar = SkIntToScalar(h); | 22 SkScalar hScalar = SkIntToScalar(h); |
22 | 23 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 293 |
293 SkTLList<Clip> fClips; | 294 SkTLList<Clip> fClips; |
294 SkBitmap fBmp; | 295 SkBitmap fBmp; |
295 | 296 |
296 typedef GM INHERITED; | 297 typedef GM INHERITED; |
297 }; | 298 }; |
298 | 299 |
299 DEF_GM( return SkNEW(ConvexPolyClip); ) | 300 DEF_GM( return SkNEW(ConvexPolyClip); ) |
300 | 301 |
301 } | 302 } |
OLD | NEW |