#include <SurfaceManager.h>
Definition at line 39 of file SurfaceManager.h.
◆ CpuOrGpu
◆ ~SurfaceManager()
virtual SurfaceManager::~SurfaceManager |
( |
| ) |
|
|
virtualdefault |
◆ SurfaceManager()
SurfaceManager::SurfaceManager |
( |
std::string |
config, |
|
|
SkColorInfo |
colorInfo, |
|
|
CpuOrGpu |
cpuOrGpu |
|
) |
| |
|
inlineprotected |
Definition at line 84 of file SurfaceManager.h.
85 : fConfig(config), fColorInfo(colorInfo), fCpuOrGpu(cpuOrGpu) {}
◆ flush()
virtual void SurfaceManager::flush |
( |
| ) |
|
|
inlinevirtual |
◆ FromConfig()
Definition at line 120 of file GaneshGLSurfaceManager.cpp.
121 {
122 if (config == "gles") {
124 config,
125 surfaceOptions,
131 1);
132 }
133 if (config == "gles_msaa4") {
135 config,
136 surfaceOptions,
142 4);
143 }
144 if (config == "gles_msaa8") {
146 config,
147 surfaceOptions,
153 8);
154 }
155 if (config == "gles_msaa8_noReduceOpsTaskSplitting") {
159 config,
160 surfaceOptions,
161 grContextOptions,
166 8);
167 }
168 return nullptr;
169}
std::unique_ptr< SurfaceManager > makeGLESSurfaceManager(std::string config, SurfaceOptions surfaceOptions, GrContextOptions grContextOptions, sk_gpu_test::GrContextFactory::ContextOverrides contextOverrides, SkColorInfo colorInfo, SurfaceType surfaceType, uint32_t surfaceFlags, int sampleCount)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static sk_sp< SkColorSpace > MakeSRGB()
Enable fReduceOpsTaskSplitting
◆ getGaneshContextInfo()
◆ getGoldKeyValuePairs()
std::map< std::string, std::string > SurfaceManager::getGoldKeyValuePairs |
( |
std::string |
cpuName, |
|
|
std::string |
gpuName |
|
) |
| const |
Definition at line 125 of file SurfaceManager.cpp.
126 {
127 std::map<std::string, std::string> kvPairs = {
128 {"surface_config", fConfig},
134 };
135 kvPairs.merge(getCpuOrGpuKeyValuePairs(cpuName, gpuName));
136 return kvPairs;
137}
static std::string identify_transfer_fn(SkColorSpace *cs)
static std::string identify_gamut(SkColorSpace *cs)
SkAlphaType alphaType() const
SkColorSpace * colorSpace() const
SkColorType colorType() const
◆ getPerfKeyValuePairs()
std::map< std::string, std::string > SurfaceManager::getPerfKeyValuePairs |
( |
std::string |
cpuName, |
|
|
std::string |
gpuName |
|
) |
| const |
Definition at line 139 of file SurfaceManager.cpp.
140 {
141 return getCpuOrGpuKeyValuePairs(cpuName, gpuName);
142}
◆ getSurface()
◆ isCpuOrGpuBound()
The documentation for this class was generated from the following files: