| Flutter Impeller |

Public Member Functions | List of all members
impeller::BackgroundCommandPoolVK Class Referencefinal

## Public Member Functions
| BackgroundCommandPoolVK (BackgroundCommandPoolVK &&)=default
| BackgroundCommandPoolVK (vk::UniqueCommandPool &&pool, std::vector< vk::UniqueCommandBuffer > &&buffers, std::weak_ptr< CommandPoolRecyclerVK > recycler)
| ~BackgroundCommandPoolVK ()

## Detailed Description

Definition at line 21 of file command_pool_vk.cc.

## Constructor & Destructor Documentation

## ◆ BackgroundCommandPoolVK() [1/2]

impeller::BackgroundCommandPoolVK::BackgroundCommandPoolVK | ( | BackgroundCommandPoolVK && |  | ) |
| default

## ◆ BackgroundCommandPoolVK() [2/2]

impeller::BackgroundCommandPoolVK::BackgroundCommandPoolVK | ( | vk::UniqueCommandPool && | pool,
|  | std::vector< vk::UniqueCommandBuffer > && | buffers,
|  | std::weak_ptr< CommandPoolRecyclerVK > | recycler
| ) |  |
| inline explicit

Definition at line 25 of file command_pool_vk.cc.

29 : pool_(std::move(pool)),
30 buffers_(std::move(buffers)),
31 recycler_(std::move(recycler)) {}

## ◆ ~BackgroundCommandPoolVK()

impeller::BackgroundCommandPoolVK::~BackgroundCommandPoolVK | ( |  | ) |
| inline

Definition at line 33 of file command_pool_vk.cc.

33 {
34 auto const recycler = recycler_.lock();
35
36 // Not only does this prevent recycling when the context is being destroyed,
37 // but it also prevents the destructor from effectively being called twice;
38 // once for the original BackgroundCommandPoolVK() and once for the moved
39 // BackgroundCommandPoolVK().
40 if (!recycler) {
41 return;
42 }
43
44 recycler->Reclaim(std::move(pool_));
45 }

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

- impeller/renderer/backend/vulkan/command_pool_vk.cc