blob: ef4a88531c873a73d95da7b212e94a6cc1d6284f [file] [log] [blame]
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef DashLinePathRenderer_DEFINED
#define DashLinePathRenderer_DEFINED
#include "src/gpu/GrPathRenderer.h"
class GrGpu;
namespace skgpu::v1 {
class DashLinePathRenderer final : public GrPathRenderer {
public:
DashLinePathRenderer() = default;
const char* name() const override { return "DashLine"; }
private:
CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
StencilSupport onGetStencilSupport(const GrStyledShape&) const override {
return kNoSupport_StencilSupport;
}
bool onDrawPath(const DrawPathArgs&) override;
sk_sp<GrGpu> fGpu;
using INHERITED = GrPathRenderer;
};
} // namespace skgpu::v1
#endif // DashLinePathRenderer_DEFINED