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