blob: fa1134b10c16f469bf0e27b4d0ade7b64bbdc7be [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/v1/PathRenderer.h"
class GrGpu;
namespace skgpu::v1 {
class DashLinePathRenderer final : public PathRenderer {
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;
};
} // namespace skgpu::v1
#endif // DashLinePathRenderer_DEFINED