Flutter Engine
The Flutter Engine
SmallPathRenderer.h
Go to the documentation of this file.
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
14
15class GrStyledShape;
16
17namespace skgpu::ganesh {
18
19class SmallPathRenderer final : public PathRenderer {
20public:
21 SmallPathRenderer() = default;
22
23 const char* name() const override { return "Small"; }
24
25private:
26 StencilSupport onGetStencilSupport(const GrStyledShape&) const override {
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
const char * name() const override