1/* 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 DashLinePathRenderer_DEFINED 9#define DashLinePathRenderer_DEFINED 10 11#include "src/gpu/v1/PathRenderer.h" 12 13class GrGpu; 14 15namespace skgpu::v1 { 16 17class DashLinePathRenderer final : public PathRenderer { 18public: 19 DashLinePathRenderer() = default; 20 21 const char* name() const override { return "DashLine"; } 22 23private: 24 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override; 25 26 StencilSupport onGetStencilSupport(const GrStyledShape&) const override { 27 return kNoSupport_StencilSupport; 28 } 29 30 bool onDrawPath(const DrawPathArgs&) override; 31 32 sk_sp<GrGpu> fGpu; 33}; 34 35} // namespace skgpu::v1 36 37#endif // DashLinePathRenderer_DEFINED 38