blob: b523493badb966ee3d02b08d924112d2a7a0d85e [file] [log] [blame]
bsalomon@google.comaeb21602011-08-30 18:13:44 +00001
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
14class GrAAHairLinePathRenderer : public GrPathRenderer {
15public:
bsalomoned0bcad2015-05-04 10:36:42 -070016 static GrPathRenderer* Create() { return SkNEW(GrAAHairLinePathRenderer); }
bsalomon@google.comaeb21602011-08-30 18:13:44 +000017
bsalomoned0bcad2015-05-04 10:36:42 -070018 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.com74758112013-08-17 07:01:54 +000024
jvanverth@google.com681ccf02013-08-16 14:51:51 +000025 typedef SkTArray<SkPoint, true> PtArray;
26 typedef SkTArray<int, true> IntArray;
27 typedef SkTArray<float, true> FloatArray;
skia.committer@gmail.com74758112013-08-17 07:01:54 +000028
bsalomon@google.comaeb21602011-08-30 18:13:44 +000029protected:
bsalomoned0bcad2015-05-04 10:36:42 -070030 bool onDrawPath(GrDrawTarget*,
31 GrPipelineBuilder*,
32 GrColor,
33 const SkMatrix& viewMatrix,
34 const SkPath&,
35 const GrStrokeInfo&,
36 bool antiAlias) override;
rmistry@google.comd6176b02012-08-23 18:14:13 +000037
bsalomon@google.comaeb21602011-08-30 18:13:44 +000038private:
bsalomoned0bcad2015-05-04 10:36:42 -070039 GrAAHairLinePathRenderer() {}
bsalomon@google.comaeb21602011-08-30 18:13:44 +000040
bsalomon@google.comaeb21602011-08-30 18:13:44 +000041 typedef GrPathRenderer INHERITED;
42};
43
44
45#endif