Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
ops
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
13
#include "
src/gpu/ganesh/PathRenderer.h
"
14
15
namespace
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
*/
21
class
TriangulatingPathRenderer
final :
public
PathRenderer
{
22
public
:
23
TriangulatingPathRenderer
();
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
30
private
:
31
CanDrawPath
onCanDrawPath(
const
CanDrawPathArgs&)
const override
;
32
33
StencilSupport
onGetStencilSupport(
const
GrStyledShape
&)
const override
{
34
return
kNoSupport_StencilSupport
;
35
}
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
PathRenderer.h
GrStyledShape
Definition:
GrStyledShape.h:49
skgpu::ganesh::PathRenderer
Definition:
PathRenderer.h:36
skgpu::ganesh::PathRenderer::StencilSupport
StencilSupport
Definition:
PathRenderer.h:60
skgpu::ganesh::PathRenderer::kNoSupport_StencilSupport
@ kNoSupport_StencilSupport
Definition:
PathRenderer.h:61
skgpu::ganesh::PathRenderer::CanDrawPath
CanDrawPath
Definition:
PathRenderer.h:75
skgpu::ganesh::TriangulatingPathRenderer
Definition:
TriangulatingPathRenderer.h:21
skgpu::ganesh::TriangulatingPathRenderer::TriangulatingPathRenderer
TriangulatingPathRenderer()
Definition:
TriangulatingPathRenderer.cpp:582
skgpu::ganesh::TriangulatingPathRenderer::name
const char * name() const override
Definition:
TriangulatingPathRenderer.h:28
skgpu::ganesh
Definition:
TessellateBench.cpp:24
Generated on Sun Jun 23 2024 21:56:24 for Flutter Engine by
1.9.4