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 "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
11 #include "SkPath.h" | |
12 #include "SkShader.h" | 11 #include "SkShader.h" |
13 | 12 |
14 static void test4(SkCanvas* canvas) { | 13 static void test4(SkCanvas* canvas) { |
15 SkPaint paint; | 14 SkPaint paint; |
16 paint.setAntiAlias(true); | 15 paint.setAntiAlias(true); |
17 SkPoint pts[] = { | 16 SkPoint pts[] = { |
18 {10, 160}, {610, 160}, | 17 {10, 160}, {610, 160}, |
19 {610, 160}, {10, 160}, | 18 {610, 160}, {10, 160}, |
20 | 19 |
21 {610, 160}, {610, 160}, | 20 {610, 160}, {610, 160}, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 private: | 178 private: |
180 typedef GM INHERITED; | 179 typedef GM INHERITED; |
181 }; | 180 }; |
182 | 181 |
183 ////////////////////////////////////////////////////////////////////////////// | 182 ////////////////////////////////////////////////////////////////////////////// |
184 | 183 |
185 static GM* MyFactory(void*) { return new AARectModesGM; } | 184 static GM* MyFactory(void*) { return new AARectModesGM; } |
186 static GMRegistry reg(MyFactory); | 185 static GMRegistry reg(MyFactory); |
187 | 186 |
188 } | 187 } |
OLD | NEW |