Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkiaGraphicsPort Class Reference
Inheritance diagram for SkiaGraphicsPort:
GraphicsPort

Public Member Functions

 SkiaGraphicsPort (SkCanvas *canvas)
 
void drawRect (const SkRect &r, SkColor c) override
 
- Public Member Functions inherited from GraphicsPort
 GraphicsPort (SkCanvas *canvas)
 
virtual ~GraphicsPort ()
 
void save ()
 
void saveLayer (const SkRect &bounds, SkAlpha alpha)
 
void restore ()
 
void translate (float x, float y)
 
void scale (float s)
 
void clip (const SkRect &r)
 
void drawOval (const SkRect &r, SkColor c)
 
virtual void drawRect (const SkRect &r, SkColor c)
 
SkCanvaspeekCanvas () const
 

Additional Inherited Members

- Protected Attributes inherited from GraphicsPort
SkCanvasfCanvas
 

Detailed Description

Definition at line 49 of file rasterhandleallocator.cpp.

Constructor & Destructor Documentation

◆ SkiaGraphicsPort()

SkiaGraphicsPort::SkiaGraphicsPort ( SkCanvas canvas)
inline

Definition at line 51 of file rasterhandleallocator.cpp.

51: GraphicsPort(canvas) {}
GraphicsPort(SkCanvas *canvas)

Member Function Documentation

◆ drawRect()

void SkiaGraphicsPort::drawRect ( const SkRect r,
SkColor  c 
)
inlineoverridevirtual

Reimplemented from GraphicsPort.

Definition at line 53 of file rasterhandleallocator.cpp.

53 {
55 canvas->drawRect(r, SkPaint(SkColor4f::FromColor(c)));
56 }
SkRasterHandleAllocator::Handle accessTopRasterHandle() const
Definition: SkCanvas.cpp:2841
void drawRect(const SkRect &rect, const SkPaint &paint)
Definition: SkCanvas.cpp:1673

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