bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
| 9 | #ifndef GrAAHairLinePathRenderer_DEFINED |
| 10 | #define GrAAHairLinePathRenderer_DEFINED |
| 11 | |
| 12 | #include "GrPathRenderer.h" |
| 13 | |
| 14 | class GrAAHairLinePathRenderer : public GrPathRenderer { |
| 15 | public: |
bsalomon | ed0bcad | 2015-05-04 10:36:42 -0700 | [diff] [blame] | 16 | static GrPathRenderer* Create() { return SkNEW(GrAAHairLinePathRenderer); } |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 17 | |
bsalomon | ed0bcad | 2015-05-04 10:36:42 -0700 | [diff] [blame] | 18 | bool canDrawPath(const GrDrawTarget*, |
| 19 | const GrPipelineBuilder*, |
| 20 | const SkMatrix& viewMatrix, |
| 21 | const SkPath&, |
| 22 | const GrStrokeInfo&, |
| 23 | bool antiAlias) const override; |
skia.committer@gmail.com | 7475811 | 2013-08-17 07:01:54 +0000 | [diff] [blame] | 24 | |
jvanverth@google.com | 681ccf0 | 2013-08-16 14:51:51 +0000 | [diff] [blame] | 25 | typedef SkTArray<SkPoint, true> PtArray; |
| 26 | typedef SkTArray<int, true> IntArray; |
| 27 | typedef SkTArray<float, true> FloatArray; |
skia.committer@gmail.com | 7475811 | 2013-08-17 07:01:54 +0000 | [diff] [blame] | 28 | |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 29 | protected: |
bsalomon | ed0bcad | 2015-05-04 10:36:42 -0700 | [diff] [blame] | 30 | bool onDrawPath(GrDrawTarget*, |
| 31 | GrPipelineBuilder*, |
| 32 | GrColor, |
| 33 | const SkMatrix& viewMatrix, |
| 34 | const SkPath&, |
| 35 | const GrStrokeInfo&, |
| 36 | bool antiAlias) override; |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 37 | |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 38 | private: |
bsalomon | ed0bcad | 2015-05-04 10:36:42 -0700 | [diff] [blame] | 39 | GrAAHairLinePathRenderer() {} |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 40 | |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 41 | typedef GrPathRenderer INHERITED; |
| 42 | }; |
| 43 | |
| 44 | |
| 45 | #endif |