Lines Matching defs:SurfaceConfig
87 class SurfaceConfig
114 typedef bool (*CompareFunc) (const SurfaceConfig& a, const SurfaceConfig& b);
116 static bool compareCaveat (const SurfaceConfig& a, const SurfaceConfig& b)
121 static bool compareColorBufferType (const SurfaceConfig& a, const SurfaceConfig& b)
126 static bool compareColorBufferBits (const SurfaceConfig& a, const SurfaceConfig& b, const tcu::BVec4& specifiedRGBColors, const tcu::BVec2& specifiedLuminanceColors)
157 static bool compareAttributeSmaller (const SurfaceConfig& a, const SurfaceConfig& b)
162 SurfaceConfig (EGLConfig config, ConfigInfo &info)
178 friend bool operator== (const SurfaceConfig& a, const SurfaceConfig& b)
180 for (std::map<EGLenum, AttribRule>::const_iterator iter = SurfaceConfig::defaultRules.begin(); iter != SurfaceConfig::defaultRules.end(); iter++)
189 bool compareTo (const SurfaceConfig& b, const tcu::BVec4& specifiedRGBColors, const tcu::BVec2& specifiedLuminanceColors) const
191 static const SurfaceConfig::CompareFunc compareFuncs[] =
193 SurfaceConfig::compareCaveat,
194 SurfaceConfig::compareColorBufferType,
195 DE_NULL, // SurfaceConfig::compareColorBufferBits,
196 SurfaceConfig::compareAttributeSmaller<EGL_BUFFER_SIZE>,
197 SurfaceConfig::compareAttributeSmaller<EGL_SAMPLE_BUFFERS>,
198 SurfaceConfig::compareAttributeSmaller<EGL_SAMPLES>,
199 SurfaceConfig::compareAttributeSmaller<EGL_DEPTH_SIZE>,
200 SurfaceConfig::compareAttributeSmaller<EGL_STENCIL_SIZE>,
201 SurfaceConfig::compareAttributeSmaller<EGL_ALPHA_MASK_SIZE>,
202 SurfaceConfig::compareAttributeSmaller<EGL_CONFIG_ID>
273 const std::map<EGLenum, AttribRule> SurfaceConfig::defaultRules = SurfaceConfig::initAttribRules();
284 bool operator() (const SurfaceConfig& a, const SurfaceConfig& b)
300 : m_rules(SurfaceConfig::defaultRules)
306 DE_ASSERT(SurfaceConfig::defaultRules.find(name) != SurfaceConfig::defaultRules.end());
323 DE_ASSERT(SurfaceConfig::defaultRules.find(name) != SurfaceConfig::defaultRules.end());
327 bool isMatch (const SurfaceConfig& config)
419 std::vector<SurfaceConfig> filter (const std::vector<SurfaceConfig>& configs)
421 std::vector<SurfaceConfig> out;
423 for (std::vector<SurfaceConfig>::const_iterator iter = configs.begin(); iter != configs.end(); iter++)
444 std::vector<SurfaceConfig> configs;
446 configs.push_back(SurfaceConfig(eglConfigs[ndx], configInfos[ndx]));
452 std::vector<SurfaceConfig> filteredConfigs = configFilter.filter(configs);