Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::testing::MockDeviceHolder Class Reference
Inheritance diagram for impeller::testing::MockDeviceHolder:
impeller::DeviceHolderVK

Public Member Functions

 MockDeviceHolder (vk::Device device)
 
const vk::Device & GetDevice () const override
 
const vk::PhysicalDevice & GetPhysicalDevice () const override
 
- Public Member Functions inherited from impeller::DeviceHolderVK
virtual ~DeviceHolderVK ()=default
 

Detailed Description

Definition at line 242 of file command_pool_vk_unittests.cc.

Constructor & Destructor Documentation

◆ MockDeviceHolder()

impeller::testing::MockDeviceHolder::MockDeviceHolder ( vk::Device  device)
inlineexplicit

Definition at line 244 of file command_pool_vk_unittests.cc.

244: device_(device) {}
VkDevice device
Definition main.cc:69

Member Function Documentation

◆ GetDevice()

const vk::Device & impeller::testing::MockDeviceHolder::GetDevice ( ) const
inlineoverridevirtual

Implements impeller::DeviceHolderVK.

Definition at line 245 of file command_pool_vk_unittests.cc.

245{ return device_; }

◆ GetPhysicalDevice()

const vk::PhysicalDevice & impeller::testing::MockDeviceHolder::GetPhysicalDevice ( ) const
inlineoverridevirtual

Implements impeller::DeviceHolderVK.

Definition at line 246 of file command_pool_vk_unittests.cc.

246 {
247 return physical_device_;
248 }

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