blob: d959421776528c3b51ec41ab4257ccd02c489840 [file] [log] [blame]
kkinnunen18996512015-04-26 23:18:49 -07001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrDashLinePathRenderer_DEFINED
9#define GrDashLinePathRenderer_DEFINED
10
11#include "GrPathRenderer.h"
12
13class GrDashLinePathRenderer : public GrPathRenderer {
bsalomon0aff2fa2015-07-31 06:48:27 -070014private:
15 bool onCanDrawPath(const CanDrawPathArgs&) const override;
kkinnunen18996512015-04-26 23:18:49 -070016
bsalomon8acedde2016-06-24 10:42:16 -070017 StencilSupport onGetStencilSupport(const GrShape&) const override {
robertphillipse7d4b2f2015-08-13 07:57:10 -070018 return kNoSupport_StencilSupport;
kkinnunen18996512015-04-26 23:18:49 -070019 }
20
bsalomon0aff2fa2015-07-31 06:48:27 -070021 bool onDrawPath(const DrawPathArgs&) override;
22
kkinnunen18996512015-04-26 23:18:49 -070023 SkAutoTUnref<GrGpu> fGpu;
24 typedef GrPathRenderer INHERITED;
25};
26
27
28#endif