Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::BackgroundDescriptorPoolVK Class Referencefinal

Public Member Functions

 BackgroundDescriptorPoolVK (BackgroundDescriptorPoolVK &&)=default
 
 BackgroundDescriptorPoolVK (vk::UniqueDescriptorPool &&pool, std::weak_ptr< DescriptorPoolRecyclerVK > recycler)
 
 ~BackgroundDescriptorPoolVK ()
 

Detailed Description

Definition at line 33 of file descriptor_pool_vk.cc.

Constructor & Destructor Documentation

◆ BackgroundDescriptorPoolVK() [1/2]

impeller::BackgroundDescriptorPoolVK::BackgroundDescriptorPoolVK ( BackgroundDescriptorPoolVK &&  )
default

◆ BackgroundDescriptorPoolVK() [2/2]

impeller::BackgroundDescriptorPoolVK::BackgroundDescriptorPoolVK ( vk::UniqueDescriptorPool &&  pool,
std::weak_ptr< DescriptorPoolRecyclerVK recycler 
)
inlineexplicit

Definition at line 37 of file descriptor_pool_vk.cc.

40 : pool_(std::move(pool)), recycler_(std::move(recycler)) {}
AutoreleasePool pool

◆ ~BackgroundDescriptorPoolVK()

impeller::BackgroundDescriptorPoolVK::~BackgroundDescriptorPoolVK ( )
inline

Definition at line 42 of file descriptor_pool_vk.cc.

42 {
43 auto const recycler = recycler_.lock();
44
45 // Not only does this prevent recycling when the context is being destroyed,
46 // but it also prevents the destructor from effectively being called twice;
47 // once for the original BackgroundCommandPoolVK() and once for the moved
48 // BackgroundCommandPoolVK().
49 if (!recycler) {
50 return;
51 }
52
53 recycler->Reclaim(std::move(pool_));
54 }

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