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

Public Member Functions

 StaticSkp (sk_sp< SkPicture > skp)
 
int drawAndFlushAndSync (GrDirectContext *context, SkSurface *surface, GpuSync &gpuSync) override
 
- Public Member Functions inherited from SkpProducer
virtual ~SkpProducer ()
 
virtual int drawAndFlushAndSync (GrDirectContext *, SkSurface *surface, GpuSync &gpuSync)=0
 

Detailed Description

Definition at line 151 of file skpbench.cpp.

Constructor & Destructor Documentation

◆ StaticSkp()

StaticSkp::StaticSkp ( sk_sp< SkPicture skp)
inline

Definition at line 153 of file skpbench.cpp.

153: fSkp(skp) {}
Definition: __init__.py:1

Member Function Documentation

◆ drawAndFlushAndSync()

int StaticSkp::drawAndFlushAndSync ( GrDirectContext context,
SkSurface surface,
GpuSync gpuSync 
)
inlineoverridevirtual

Implements SkpProducer.

Definition at line 155 of file skpbench.cpp.

157 {
158 draw_skp_and_flush_with_sync(context, surface, fSkp.get(), gpuSync);
159 return 1;
160 }
T * get() const
Definition: SkRefCnt.h:303
VkSurfaceKHR surface
Definition: main.cc:49
static void draw_skp_and_flush_with_sync(GrDirectContext *, SkSurface *, const SkPicture *, GpuSync &)
Definition: skpbench.cpp:680

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