Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
TriangulatingPathRenderer.h
Go to the documentation of this file.
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 TriangulatingPathRenderer_DEFINED
9#define TriangulatingPathRenderer_DEFINED
10
11#if !defined(SK_ENABLE_OPTIMIZE_SIZE)
12
14
15namespace skgpu::ganesh {
16
17/**
18 * Subclass that renders the path by converting to screen-space trapezoids plus
19 * extra 1-pixel geometry for AA.
20 */
22public:
24#if defined(GR_TEST_UTILS)
25 void setMaxVerbCount(int maxVerbCount) { fMaxVerbCount = maxVerbCount; }
26#endif
27
28 const char* name() const override { return "Triangulating"; }
29
30private:
31 CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
32
36
37 bool onDrawPath(const DrawPathArgs&) override;
38
39 int fMaxVerbCount;
40};
41
42} // namespace skgpu::ganesh
43
44#endif // SK_ENABLE_OPTIMIZE_SIZE
45
46#endif // TriangulatingPathRenderer_DEFINED
bool onDrawPath(const DrawPathArgs &) override
CanDrawPath onCanDrawPath(const CanDrawPathArgs &) const override
StencilSupport onGetStencilSupport(const GrStyledShape &) const override