blob: 029f1ab46363d9a83a3efb8c77efe729f03d9676 [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:
Robert Phillipsa6286052020-04-13 10:55:08 -040017 const char* name() const final { return "DashLine"; }
18
Chris Dalton5ed44232017-09-07 13:22:46 -060019 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
kkinnunen18996512015-04-26 23:18:49 -070020
Michael Ludwig2686d692020-04-17 20:21:37 +000021 StencilSupport onGetStencilSupport(const GrStyledShape&) const override {
robertphillipse7d4b2f2015-08-13 07:57:10 -070022 return kNoSupport_StencilSupport;
kkinnunen18996512015-04-26 23:18:49 -070023 }
24
bsalomon0aff2fa2015-07-31 06:48:27 -070025 bool onDrawPath(const DrawPathArgs&) override;
26
Hal Canary144caf52016-11-07 17:57:18 -050027 sk_sp<GrGpu> fGpu;
kkinnunen18996512015-04-26 23:18:49 -070028 typedef GrPathRenderer INHERITED;
29};
30
31
32#endif