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