Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GaneshGLSurfaceManager Class Reference
Inheritance diagram for GaneshGLSurfaceManager:
SurfaceManager

Public Member Functions

 GaneshGLSurfaceManager (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
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 ~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 21 of file GaneshGLSurfaceManager.cpp.

Constructor & Destructor Documentation

◆ GaneshGLSurfaceManager()

GaneshGLSurfaceManager::GaneshGLSurfaceManager ( 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 23 of file GaneshGLSurfaceManager.cpp.

29 : SurfaceManager(config, colorInfo, CpuOrGpu::kGPU)
30 , fContextFactory(std::move(contextFactory))
31 , fContextInfo(contextInfo)
32 , fContext(context)
33 , fSurface(surface) {}
VkSurfaceKHR surface
Definition main.cc:49

Member Function Documentation

◆ flush()

void GaneshGLSurfaceManager::flush ( )
inlineoverridevirtual

Reimplemented from SurfaceManager.

Definition at line 37 of file GaneshGLSurfaceManager.cpp.

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

◆ getGaneshContextInfo()

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

Reimplemented from SurfaceManager.

Definition at line 39 of file GaneshGLSurfaceManager.cpp.

39{ return &fContextInfo; }

◆ getSurface()

sk_sp< SkSurface > GaneshGLSurfaceManager::getSurface ( )
inlineoverridevirtual

Implements SurfaceManager.

Definition at line 35 of file GaneshGLSurfaceManager.cpp.

35{ return fSurface; }

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