Flutter Engine
The Flutter Engine
|
#include <PathRendererChain.h>
Classes | |
struct | Options |
Public Types | |
enum class | DrawType { kColor , kStencil , kStencilAndColor } |
Public Member Functions | |
PathRendererChain (GrRecordingContext *, const Options &) | |
PathRenderer * | getPathRenderer (const PathRenderer::CanDrawPathArgs &, DrawType, PathRenderer::StencilSupport *) |
skgpu::ganesh::AtlasPathRenderer * | getAtlasPathRenderer () |
PathRenderer * | getTessellationPathRenderer () |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Keeps track of an ordered list of path renderers. When a path needs to be drawn this list is scanned to find the most preferred renderer. To add your path renderer to the list implement the GrPathRenderer::AddPathRenderers function.
Definition at line 28 of file PathRendererChain.h.
|
strong |
Documents how the caller plans to use a GrPathRenderer to draw a path. It affects the PR returned by getPathRenderer
Enumerator | |
---|---|
kColor | |
kStencil | |
kStencilAndColor |
Definition at line 38 of file PathRendererChain.h.
skgpu::ganesh::PathRendererChain::PathRendererChain | ( | GrRecordingContext * | context, |
const Options & | options | ||
) |
Definition at line 31 of file PathRendererChain.cpp.
|
inline |
Returns a direct pointer to the atlas path renderer, or null if it is not in the chain.
Definition at line 54 of file PathRendererChain.h.
PathRenderer * skgpu::ganesh::PathRendererChain::getPathRenderer | ( | const PathRenderer::CanDrawPathArgs & | args, |
DrawType | drawType, | ||
PathRenderer::StencilSupport * | stencilSupport | ||
) |
Returns a GrPathRenderer compatible with the request if one is available. If the caller is drawing the path to the stencil buffer then stencilSupport can be used to determine whether the path can be rendered with arbitrary stencil rules or not. See comments on StencilSupport in GrPathRenderer.h.
Definition at line 72 of file PathRendererChain.cpp.
|
inline |
Returns a direct pointer to the tessellation path renderer, or null if it is not in the chain.
Definition at line 58 of file PathRendererChain.h.