#include <vulkan_surface_pool.h>
Public Member Functions | |
| VulkanSurfacePool (vulkan::VulkanProvider &vulkan_provider, sk_sp< GrDirectContext > context) | |
| ~VulkanSurfacePool () | |
| std::unique_ptr< VulkanSurface > | CreateSurface (const SkISize &size) |
| std::unique_ptr< VulkanSurface > | AcquireSurface (const SkISize &size) |
| void | SubmitSurface (std::unique_ptr< SurfaceProducerSurface > surface) |
| void | AgeAndCollectOldBuffers () |
| void | ShrinkToFit () |
Static Public Attributes | |
| static constexpr int | kMaxSurfaces = 12 |
| static constexpr int | kMaxSurfaceAge = 3 |
Definition at line 18 of file vulkan_surface_pool.h.
| flutter_runner::VulkanSurfacePool::VulkanSurfacePool | ( | vulkan::VulkanProvider & | vulkan_provider, |
| sk_sp< GrDirectContext > | context | ||
| ) |
Definition at line 32 of file vulkan_surface_pool.cc.
References FML_CHECK, FML_DCHECK, flutter_runner::GetCurrentProcessId(), and flutter_runner::GetCurrentProcessName().
| flutter_runner::VulkanSurfacePool::~VulkanSurfacePool | ( | ) |
Definition at line 52 of file vulkan_surface_pool.cc.
| std::unique_ptr< VulkanSurface > flutter_runner::VulkanSurfacePool::AcquireSurface | ( | const SkISize & | size | ) |
Definition at line 54 of file vulkan_surface_pool.cc.
| void flutter_runner::VulkanSurfacePool::AgeAndCollectOldBuffers | ( | ) |
Definition at line 167 of file vulkan_surface_pool.cc.
References CreateSurface(), FML_LOG, surface, TRACE_EVENT0, TRACE_EVENT1, and TRACE_EVENT_INSTANT0.
| std::unique_ptr< VulkanSurface > flutter_runner::VulkanSurfacePool::CreateSurface | ( | const SkISize & | size | ) |
Definition at line 119 of file vulkan_surface_pool.cc.
References FML_LOG, surface, and TRACE_EVENT2.
Referenced by AgeAndCollectOldBuffers(), and ShrinkToFit().
| void flutter_runner::VulkanSurfacePool::ShrinkToFit | ( | ) |
Definition at line 207 of file vulkan_surface_pool.cc.
References CreateSurface(), FML_LOG, surface, and TRACE_EVENT0.
| void flutter_runner::VulkanSurfacePool::SubmitSurface | ( | std::unique_ptr< SurfaceProducerSurface > | surface | ) |
Definition at line 94 of file vulkan_surface_pool.cc.
References TRACE_EVENT0.
|
staticconstexpr |
Definition at line 24 of file vulkan_surface_pool.h.
|
staticconstexpr |
Definition at line 22 of file vulkan_surface_pool.h.