Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::testing::TestGPUSurfaceVulkanDelegate Class Reference
Inheritance diagram for flutter::testing::TestGPUSurfaceVulkanDelegate:
flutter::GPUSurfaceVulkanDelegate

Public Member Functions

 TestGPUSurfaceVulkanDelegate ()
 
const vulkan::VulkanProcTablevk () override
 Obtain a reference to the Vulkan implementation's proc table.
 
FlutterVulkanImage AcquireImage (const DlISize &size) override
 Called by the engine to fetch a VkImage for writing the next frame.
 
bool PresentImage (VkImage image, VkFormat format) override
 Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing.
 
- Public Member Functions inherited from flutter::GPUSurfaceVulkanDelegate
virtual ~GPUSurfaceVulkanDelegate ()
 

Detailed Description

Definition at line 32 of file gpu_surface_vulkan_impeller_unittests.cc.

Constructor & Destructor Documentation

◆ TestGPUSurfaceVulkanDelegate()

flutter::testing::TestGPUSurfaceVulkanDelegate::TestGPUSurfaceVulkanDelegate ( )
inline

Definition at line 34 of file gpu_surface_vulkan_impeller_unittests.cc.

35 : vk_(fml::MakeRefCounted<vulkan::VulkanProcTable>(
36 vkGetInstanceProcAddr)),
37 test_context_(fml::MakeRefCounted<TestVulkanContext>()) {}

Member Function Documentation

◆ AcquireImage()

FlutterVulkanImage flutter::testing::TestGPUSurfaceVulkanDelegate::AcquireImage ( const DlISize size)
inlineoverridevirtual

Called by the engine to fetch a VkImage for writing the next frame.

Implements flutter::GPUSurfaceVulkanDelegate.

Definition at line 41 of file gpu_surface_vulkan_impeller_unittests.cc.

41 {
42 if (!test_surface_ || surface_size_ != size) {
43 test_surface_ = TestVulkanSurface::Create(*test_context_, size);
44 surface_size_ = size;
45 }
46
47 return {
48 .struct_size = sizeof(FlutterVulkanImage),
49 .image = test_surface_
50 ? reinterpret_cast<uint64_t>(test_surface_->GetImage())
51 : 0u,
52 .format = VK_FORMAT_R8G8B8A8_UNORM,
53 };
54 }
static std::unique_ptr< TestVulkanSurface > Create(const TestVulkanContext &context, const DlISize &surface_size)
FlutterVulkanImage * image
uint32_t uint32_t * format
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size

References flutter::testing::TestVulkanSurface::Create(), image, and flutter::size.

◆ PresentImage()

bool flutter::testing::TestGPUSurfaceVulkanDelegate::PresentImage ( VkImage  image,
VkFormat  format 
)
inlineoverridevirtual

Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing.

Implements flutter::GPUSurfaceVulkanDelegate.

Definition at line 56 of file gpu_surface_vulkan_impeller_unittests.cc.

56{ return true; }

◆ vk()

const vulkan::VulkanProcTable & flutter::testing::TestGPUSurfaceVulkanDelegate::vk ( )
inlineoverridevirtual

Obtain a reference to the Vulkan implementation's proc table.

Implements flutter::GPUSurfaceVulkanDelegate.

Definition at line 39 of file gpu_surface_vulkan_impeller_unittests.cc.

39{ return *vk_; }

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