Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
Skwasm::TextureSourceWrapper Class Reference

#include <surface.h>

Public Member Functions

 TextureSourceWrapper (unsigned long threadId, SkwasmObject textureSource)
 
 ~TextureSourceWrapper ()
 
SkwasmObject getTextureSource ()
 

Detailed Description

Definition at line 37 of file surface.h.

Constructor & Destructor Documentation

◆ TextureSourceWrapper()

Skwasm::TextureSourceWrapper::TextureSourceWrapper ( unsigned long  threadId,
SkwasmObject  textureSource 
)
inline

Definition at line 39 of file surface.h.

40 : _rasterThreadId(threadId) {
41 skwasm_setAssociatedObjectOnThread(_rasterThreadId, this, textureSource);
42 }
void skwasm_setAssociatedObjectOnThread(unsigned long threadId, void *pointer, SkwasmObject object)

◆ ~TextureSourceWrapper()

Skwasm::TextureSourceWrapper::~TextureSourceWrapper ( )
inline

Definition at line 44 of file surface.h.

44 {
45 skwasm_disposeAssociatedObjectOnThread(_rasterThreadId, this);
46 }
void skwasm_disposeAssociatedObjectOnThread(unsigned long threadId, void *pointer)

Member Function Documentation

◆ getTextureSource()

SkwasmObject Skwasm::TextureSourceWrapper::getTextureSource ( )
inline

Definition at line 48 of file surface.h.

48{ return skwasm_getAssociatedObject(this); }
SkwasmObject skwasm_getAssociatedObject(void *pointer)

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