Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
skgpu::graphite::DrawList::Draw Struct Reference

#include <DrawList.h>

Public Member Functions

 Draw (const Renderer *renderer, const Transform &transform, const Geometry &geometry, const Clip &clip, DrawOrder order, const PaintParams *paint, const StrokeStyle *stroke)
 

Public Attributes

const RendererfRenderer
 
DrawParams fDrawParams
 
std::optional< PaintParamsfPaintParams
 

Detailed Description

Definition at line 94 of file DrawList.h.

Constructor & Destructor Documentation

◆ Draw()

skgpu::graphite::DrawList::Draw::Draw ( const Renderer renderer,
const Transform transform,
const Geometry geometry,
const Clip clip,
DrawOrder  order,
const PaintParams paint,
const StrokeStyle stroke 
)
inline

Definition at line 99 of file DrawList.h.

102 : fRenderer(renderer)
103 , fDrawParams(transform, geometry, clip, order, stroke)
104 , fPaintParams(paint ? std::optional<PaintParams>(*paint) : std::nullopt) {}
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Definition SkPath.cpp:3824
const Paint & paint
Definition ref_ptr.h:256
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
Definition p3.cpp:47
const Renderer * fRenderer
Definition DrawList.h:95
std::optional< PaintParams > fPaintParams
Definition DrawList.h:97

Member Data Documentation

◆ fDrawParams

DrawParams skgpu::graphite::DrawList::Draw::fDrawParams

Definition at line 96 of file DrawList.h.

◆ fPaintParams

std::optional<PaintParams> skgpu::graphite::DrawList::Draw::fPaintParams

Definition at line 97 of file DrawList.h.

◆ fRenderer

const Renderer* skgpu::graphite::DrawList::Draw::fRenderer

Definition at line 95 of file DrawList.h.


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