Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | Friends | List of all members
skgpu::graphite::Renderer Class Reference

#include <Renderer.h>

Public Member Functions

const RenderStepstep (int i) const
 
SkSpan< const RenderStep *const > steps () const
 
const char * name () const
 
DrawTypeFlags drawTypes () const
 
int numRenderSteps () const
 
bool requiresMSAA () const
 
bool emitsPrimitiveColor () const
 
bool outsetBoundsForAA () const
 
SkEnumBitMask< DepthStencilFlagsdepthStencilFlags () const
 
Coverage coverage () const
 

Static Public Attributes

static constexpr int kMaxRenderSteps = 4
 

Friends

class RendererProvider
 

Detailed Description

Definition at line 223 of file Renderer.h.

Member Function Documentation

◆ coverage()

Coverage skgpu::graphite::Renderer::coverage ( ) const
inline

Definition at line 254 of file Renderer.h.

254{ return RenderStep::GetCoverage(fStepFlags); }

◆ depthStencilFlags()

SkEnumBitMask< DepthStencilFlags > skgpu::graphite::Renderer::depthStencilFlags ( ) const
inline

Definition at line 252 of file Renderer.h.

252{ return fDepthStencilFlags; }

◆ drawTypes()

DrawTypeFlags skgpu::graphite::Renderer::drawTypes ( ) const
inline

Definition at line 239 of file Renderer.h.

239{ return fDrawTypes; }

◆ emitsPrimitiveColor()

bool skgpu::graphite::Renderer::emitsPrimitiveColor ( ) const
inline

Definition at line 245 of file Renderer.h.

245 {
246 return SkToBool(fStepFlags & StepFlags::kEmitsPrimitiveColor);
247 }
static constexpr bool SkToBool(const T &x)
Definition: SkTo.h:35

◆ name()

const char * skgpu::graphite::Renderer::name ( ) const
inline

Definition at line 238 of file Renderer.h.

238{ return fName.c_str(); }

◆ numRenderSteps()

int skgpu::graphite::Renderer::numRenderSteps ( ) const
inline

Definition at line 240 of file Renderer.h.

240{ return fStepCount; }

◆ outsetBoundsForAA()

bool skgpu::graphite::Renderer::outsetBoundsForAA ( ) const
inline

Definition at line 248 of file Renderer.h.

248 {
249 return SkToBool(fStepFlags & StepFlags::kOutsetBoundsForAA);
250 }

◆ requiresMSAA()

bool skgpu::graphite::Renderer::requiresMSAA ( ) const
inline

Definition at line 242 of file Renderer.h.

242 {
243 return SkToBool(fStepFlags & StepFlags::kRequiresMSAA);
244 }

◆ step()

const RenderStep & skgpu::graphite::Renderer::step ( int  i) const
inline

Definition at line 229 of file Renderer.h.

229 {
230 SkASSERT(i >= 0 && i < fStepCount);
231 return *fSteps[i];
232 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ steps()

SkSpan< const RenderStep *const > skgpu::graphite::Renderer::steps ( ) const
inline

Definition at line 233 of file Renderer.h.

233 {
234 SkASSERT(fStepCount > 0); // steps() should only be called on valid Renderers.
235 return {fSteps.data(), static_cast<size_t>(fStepCount) };
236 }

Friends And Related Function Documentation

◆ RendererProvider

friend class RendererProvider
friend

Definition at line 257 of file Renderer.h.

Member Data Documentation

◆ kMaxRenderSteps

constexpr int skgpu::graphite::Renderer::kMaxRenderSteps = 4
staticconstexpr

Definition at line 227 of file Renderer.h.


The documentation for this class was generated from the following file: