Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
SolidColorRenderer Class Reference
Inheritance diagram for SolidColorRenderer:
ClipTileRenderer SkRefCntBase

Public Member Functions

int drawTile (SkCanvas *canvas, const SkRect &rect, const SkPoint clip[4], const bool edgeAA[4], int tileID, int quadID) override
 
void drawBanner (SkCanvas *canvas) override
 
- Public Member Functions inherited from ClipTileRenderer
virtual int drawTile (SkCanvas *canvas, const SkRect &rect, const SkPoint clip[4], const bool edgeAA[4], int tileID, int quadID)=0
 
virtual void drawBanner (SkCanvas *canvas)=0
 
virtual int drawTiles (SkCanvas *canvas)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Member Functions

static sk_sp< ClipTileRendererMake (const SkColor4f &color)
 

Additional Inherited Members

- Protected Member Functions inherited from ClipTileRenderer
SkCanvas::QuadAAFlags maskToFlags (const bool edgeAA[4]) const
 
int clipTile (SkCanvas *canvas, int tileID, const SkRect &baseRect, const SkPoint quad[4], const bool edgeAA[4], const SkPoint lines[], int lineCount, int *quadCount)
 

Detailed Description

Definition at line 621 of file compositor_quads.cpp.

Member Function Documentation

◆ drawBanner()

void SolidColorRenderer::drawBanner ( SkCanvas canvas)
inlineoverridevirtual

Implements ClipTileRenderer.

Definition at line 635 of file compositor_quads.cpp.

635 {
636 draw_text(canvas, "Solid Color");
637 }
static void draw_text(SkCanvas *canvas, const char *text)

◆ drawTile()

int SolidColorRenderer::drawTile ( SkCanvas canvas,
const SkRect rect,
const SkPoint  clip[4],
const bool  edgeAA[4],
int  tileID,
int  quadID 
)
inlineoverridevirtual

Implements ClipTileRenderer.

Definition at line 628 of file compositor_quads.cpp.

629 {
630 canvas->experimental_DrawEdgeAAQuad(rect, clip, this->maskToFlags(edgeAA),
631 fColor.toSkColor(), SkBlendMode::kSrcOver);
632 return 1;
633 }
@ kSrcOver
r = s + (1-sa)*d
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Definition: SkPath.cpp:3892
SkCanvas::QuadAAFlags maskToFlags(const bool edgeAA[4]) const
void experimental_DrawEdgeAAQuad(const SkRect &rect, const SkPoint clip[4], QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode)
Definition: SkCanvas.cpp:1845
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350

◆ Make()

static sk_sp< ClipTileRenderer > SolidColorRenderer::Make ( const SkColor4f color)
inlinestatic

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