Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GaneshVulkanSurfaceManager Class Reference
Inheritance diagram for GaneshVulkanSurfaceManager:
SurfaceManager

Public Member Functions

 GaneshVulkanSurfaceManager (std::unique_ptr< sk_gpu_test::GrContextFactory > contextFactory, sk_gpu_test::ContextInfo contextInfo, GrDirectContext *context, sk_sp< SkSurface > surface, std::string config, SkColorInfo colorInfo)
 
sk_sp< SkSurfacegetSurface () override
 
void flush () override
 
sk_gpu_test::ContextInfogetGaneshContextInfo () override
 
- Public Member Functions inherited from SurfaceManager
virtual sk_sp< SkSurfacegetSurface ()=0
 
virtual void flush ()
 
std::map< std::string, std::string > getGoldKeyValuePairs (std::string cpuName, std::string gpuName) const
 
std::map< std::string, std::string > getPerfKeyValuePairs (std::string cpuName, std::string gpuName) const
 
CpuOrGpu isCpuOrGpuBound () const
 
virtual sk_gpu_test::ContextInfogetGaneshContextInfo ()
 
virtual ~SurfaceManager ()=default
 

Additional Inherited Members

- Public Types inherited from SurfaceManager
enum class  CpuOrGpu { kCPU , kGPU }
 
- Static Public Member Functions inherited from SurfaceManager
static std::unique_ptr< SurfaceManagerFromConfig (std::string config, SurfaceOptions surfaceOptions)
 
- Protected Member Functions inherited from SurfaceManager
 SurfaceManager (std::string config, SkColorInfo colorInfo, CpuOrGpu cpuOrGpu)
 

Detailed Description

Definition at line 17 of file GaneshVulkanSurfaceManager.cpp.

Constructor & Destructor Documentation

◆ GaneshVulkanSurfaceManager()

GaneshVulkanSurfaceManager::GaneshVulkanSurfaceManager ( std::unique_ptr< sk_gpu_test::GrContextFactory contextFactory,
sk_gpu_test::ContextInfo  contextInfo,
GrDirectContext context,
sk_sp< SkSurface surface,
std::string  config,
SkColorInfo  colorInfo 
)
inline

Definition at line 19 of file GaneshVulkanSurfaceManager.cpp.

25 : SurfaceManager(config, colorInfo, CpuOrGpu::kGPU)
26 , fContextFactory(std::move(contextFactory))
27 , fContextInfo(contextInfo)
28 , fContext(context)
29 , fSurface(surface) {}
SurfaceManager(std::string config, SkColorInfo colorInfo, CpuOrGpu cpuOrGpu)
VkSurfaceKHR surface
Definition: main.cc:49

Member Function Documentation

◆ flush()

void GaneshVulkanSurfaceManager::flush ( )
inlineoverridevirtual

Reimplemented from SurfaceManager.

Definition at line 33 of file GaneshVulkanSurfaceManager.cpp.

33{ fContext->flushAndSubmit(fSurface.get(), GrSyncCpu::kYes); }
void flushAndSubmit(GrSyncCpu sync=GrSyncCpu::kNo)
T * get() const
Definition: SkRefCnt.h:303

◆ getGaneshContextInfo()

sk_gpu_test::ContextInfo * GaneshVulkanSurfaceManager::getGaneshContextInfo ( )
inlineoverridevirtual

Reimplemented from SurfaceManager.

Definition at line 35 of file GaneshVulkanSurfaceManager.cpp.

35{ return &fContextInfo; }

◆ getSurface()

sk_sp< SkSurface > GaneshVulkanSurfaceManager::getSurface ( )
inlineoverridevirtual

Implements SurfaceManager.

Definition at line 31 of file GaneshVulkanSurfaceManager.cpp.

31{ return fSurface; }

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