blob: 2e37665e518602c3cfcaea453cc18e67b8d01df6 [file] [log] [blame]
kkinnunen18996512015-04-26 23:18:49 -07001
2/*
3 * Copyright 2015 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 GrDashLinePathRenderer_DEFINED
10#define GrDashLinePathRenderer_DEFINED
11
12#include "GrPathRenderer.h"
13
14class GrDashLinePathRenderer : public GrPathRenderer {
bsalomon0aff2fa2015-07-31 06:48:27 -070015private:
16 bool onCanDrawPath(const CanDrawPathArgs&) const override;
kkinnunen18996512015-04-26 23:18:49 -070017
kkinnunen18996512015-04-26 23:18:49 -070018 StencilSupport onGetStencilSupport(const GrDrawTarget*,
19 const GrPipelineBuilder*,
20 const SkPath&,
21 const GrStrokeInfo&) const override {
22 return kNoSupport_StencilSupport;
23 }
24
bsalomon0aff2fa2015-07-31 06:48:27 -070025 bool onDrawPath(const DrawPathArgs&) override;
26
kkinnunen18996512015-04-26 23:18:49 -070027 SkAutoTUnref<GrGpu> fGpu;
28 typedef GrPathRenderer INHERITED;
29};
30
31
32#endif