| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 // This test only works with the GPU backend. | 8 // This test only works with the GPU backend. |
| 9 | 9 |
| 10 #include "gm.h" | 10 #include "gm.h" |
| 11 | 11 |
| 12 #if SK_SUPPORT_GPU | 12 #if SK_SUPPORT_GPU |
| 13 | 13 |
| 14 #include "GrContext.h" | 14 #include "GrContext.h" |
| 15 #include "GrDefaultGeoProcFactory.h" | 15 #include "GrDefaultGeoProcFactory.h" |
| 16 #include "GrDrawContextPriv.h" | 16 #include "GrDrawContextPriv.h" |
| 17 #include "GrPathUtils.h" | 17 #include "GrPathUtils.h" |
| 18 #include "GrTest.h" | 18 #include "GrTest.h" |
| 19 #include "SkColorPriv.h" | 19 #include "SkColorPriv.h" |
| 20 #include "SkDevice.h" | |
| 21 #include "SkGeometry.h" | 20 #include "SkGeometry.h" |
| 22 #include "SkTLList.h" | 21 #include "SkTLList.h" |
| 23 | 22 |
| 24 #include "batches/GrTestBatch.h" | 23 #include "batches/GrTestBatch.h" |
| 25 #include "batches/GrVertexBatch.h" | 24 #include "batches/GrVertexBatch.h" |
| 26 | 25 |
| 27 #include "effects/GrConvexPolyEffect.h" | 26 #include "effects/GrConvexPolyEffect.h" |
| 28 | 27 |
| 29 /** outset rendered rect to visualize anti-aliased poly edges */ | 28 /** outset rendered rect to visualize anti-aliased poly edges */ |
| 30 static SkRect outset(const SkRect& unsorted) { | 29 static SkRect outset(const SkRect& unsorted) { |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 PathList fPaths; | 261 PathList fPaths; |
| 263 RectList fRects; | 262 RectList fRects; |
| 264 | 263 |
| 265 typedef GM INHERITED; | 264 typedef GM INHERITED; |
| 266 }; | 265 }; |
| 267 | 266 |
| 268 DEF_GM(return new ConvexPolyEffect;) | 267 DEF_GM(return new ConvexPolyEffect;) |
| 269 } | 268 } |
| 270 | 269 |
| 271 #endif | 270 #endif |
| OLD | NEW |