| 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" | |
| 14 #include "SkTLList.h" | 13 #include "SkTLList.h" |
| 15 | 14 |
| 16 static SkBitmap make_bmp(int w, int h) { | 15 static SkBitmap make_bmp(int w, int h) { |
| 17 SkBitmap bmp; | 16 SkBitmap bmp; |
| 18 bmp.allocN32Pixels(w, h, true); | 17 bmp.allocN32Pixels(w, h, true); |
| 19 | 18 |
| 20 SkCanvas canvas(bmp); | 19 SkCanvas canvas(bmp); |
| 21 SkScalar wScalar = SkIntToScalar(w); | 20 SkScalar wScalar = SkIntToScalar(w); |
| 22 SkScalar hScalar = SkIntToScalar(h); | 21 SkScalar hScalar = SkIntToScalar(h); |
| 23 | 22 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 292 |
| 294 SkTLList<Clip> fClips; | 293 SkTLList<Clip> fClips; |
| 295 SkBitmap fBmp; | 294 SkBitmap fBmp; |
| 296 | 295 |
| 297 typedef GM INHERITED; | 296 typedef GM INHERITED; |
| 298 }; | 297 }; |
| 299 | 298 |
| 300 DEF_GM( return SkNEW(ConvexPolyClip); ) | 299 DEF_GM( return SkNEW(ConvexPolyClip); ) |
| 301 | 300 |
| 302 } | 301 } |
| OLD | NEW |