Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::TestSkObject Class Reference
Inheritance diagram for flutter::testing::TestSkObject:
SkRefCnt SkRefCntBase flutter::testing::TestResourceContext

Public Member Functions

 TestSkObject (std::shared_ptr< fml::AutoResetWaitableEvent > latch, fml::TaskQueueId *dtor_task_queue_id)
 
virtual ~TestSkObject ()
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Detailed Description

Definition at line 21 of file skia_gpu_object_unittests.cc.

Constructor & Destructor Documentation

◆ TestSkObject()

flutter::testing::TestSkObject::TestSkObject ( std::shared_ptr< fml::AutoResetWaitableEvent latch,
fml::TaskQueueId dtor_task_queue_id 
)
inline

Definition at line 23 of file skia_gpu_object_unittests.cc.

25 : latch_(std::move(latch)), dtor_task_queue_id_(dtor_task_queue_id) {}

◆ ~TestSkObject()

virtual flutter::testing::TestSkObject::~TestSkObject ( )
inlinevirtual

Definition at line 27 of file skia_gpu_object_unittests.cc.

27 {
28 if (dtor_task_queue_id_) {
29 *dtor_task_queue_id_ = fml::MessageLoop::GetCurrentTaskQueueId();
30 }
31 latch_->Signal();
32 }
static TaskQueueId GetCurrentTaskQueueId()
Definition: message_loop.cc:76

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