blob: 44342420eee1250120662e7243be99c1d57bff08 [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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "src/gpu/GrPathRenderer.h"
kkinnunen18996512015-04-26 23:18:49 -070012
Robert Phillips646e4292017-06-13 12:44:56 -040013class GrGpu;
Greg Daniel77b53f62016-10-18 11:48:51 -040014
kkinnunen18996512015-04-26 23:18:49 -070015class GrDashLinePathRenderer : public GrPathRenderer {
bsalomon0aff2fa2015-07-31 06:48:27 -070016private:
Chris Dalton5ed44232017-09-07 13:22:46 -060017 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
kkinnunen18996512015-04-26 23:18:49 -070018
bsalomon8acedde2016-06-24 10:42:16 -070019 StencilSupport onGetStencilSupport(const GrShape&) const override {
robertphillipse7d4b2f2015-08-13 07:57:10 -070020 return kNoSupport_StencilSupport;
kkinnunen18996512015-04-26 23:18:49 -070021 }
22
bsalomon0aff2fa2015-07-31 06:48:27 -070023 bool onDrawPath(const DrawPathArgs&) override;
24
Hal Canary144caf52016-11-07 17:57:18 -050025 sk_sp<GrGpu> fGpu;
kkinnunen18996512015-04-26 23:18:49 -070026 typedef GrPathRenderer INHERITED;
27};
28
29
30#endif