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