| 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 // This test only works with the GPU backend. | 9 // This test only works with the GPU backend. |
| 10 | 10 |
| 11 #include "gm.h" | 11 #include "gm.h" |
| 12 | 12 |
| 13 #if SK_SUPPORT_GPU | 13 #if SK_SUPPORT_GPU |
| 14 | 14 |
| 15 #include "GrBatchTarget.h" | 15 #include "GrBatchTarget.h" |
| 16 #include "GrContext.h" | 16 #include "GrContext.h" |
| 17 #include "GrDefaultGeoProcFactory.h" | 17 #include "GrDefaultGeoProcFactory.h" |
| 18 #include "GrPathUtils.h" | 18 #include "GrPathUtils.h" |
| 19 #include "GrTest.h" | 19 #include "GrTest.h" |
| 20 #include "SkColorPriv.h" | 20 #include "SkColorPriv.h" |
| 21 #include "SkDevice.h" | 21 #include "SkDevice.h" |
| 22 #include "SkGeometry.h" | 22 #include "SkGeometry.h" |
| 23 #include "SkTLList.h" | 23 #include "SkTLList.h" |
| 24 | 24 |
| 25 #include "batches/GrTestBatch.h" | 25 #include "batches/GrTestBatch.h" |
| 26 #include "batches/GrVertexBatch.h" |
| 26 | 27 |
| 27 #include "effects/GrConvexPolyEffect.h" | 28 #include "effects/GrConvexPolyEffect.h" |
| 28 | 29 |
| 29 namespace skiagm { | 30 namespace skiagm { |
| 30 | 31 |
| 31 class ConvexPolyTestBatch : public GrTestBatch { | 32 class ConvexPolyTestBatch : public GrTestBatch { |
| 32 public: | 33 public: |
| 33 struct Geometry : public GrTestBatch::Geometry { | 34 struct Geometry : public GrTestBatch::Geometry { |
| 34 SkRect fBounds; | 35 SkRect fBounds; |
| 35 }; | 36 }; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 SkTLList<SkPath> fPaths; | 272 SkTLList<SkPath> fPaths; |
| 272 SkTLList<SkRect> fRects; | 273 SkTLList<SkRect> fRects; |
| 273 | 274 |
| 274 typedef GM INHERITED; | 275 typedef GM INHERITED; |
| 275 }; | 276 }; |
| 276 | 277 |
| 277 DEF_GM( return SkNEW(ConvexPolyEffect); ) | 278 DEF_GM( return SkNEW(ConvexPolyEffect); ) |
| 278 } | 279 } |
| 279 | 280 |
| 280 #endif | 281 #endif |
| OLD | NEW |