Home | History | Annotate | Download | only in egl

Lines Matching defs:SurfaceConfig

80 class SurfaceConfig
104 typedef bool (*CompareFunc) (const SurfaceConfig& a, const SurfaceConfig& b);
106 static bool compareCaveat (const SurfaceConfig& a, const SurfaceConfig& b)
111 static bool compareColorBufferType (const SurfaceConfig& a, const SurfaceConfig& b)
116 static bool compareColorBufferBits (const SurfaceConfig& a, const SurfaceConfig& b)
135 static bool compareAttributeSmaller (const SurfaceConfig& a, const SurfaceConfig& b)
140 SurfaceConfig (EGLConfig config, ConfigInfo &info)
156 friend bool operator== (const SurfaceConfig& a, const SurfaceConfig& b)
158 for (std::map<EGLenum, AttribRule>::const_iterator iter = SurfaceConfig::defaultRules.begin(); iter != SurfaceConfig::defaultRules.end(); iter++)
167 bool compareTo (const SurfaceConfig& b, bool skipColorBufferBits=false) const
169 static const SurfaceConfig::CompareFunc compareFuncs[] =
171 SurfaceConfig::compareCaveat,
172 SurfaceConfig::compareColorBufferType,
173 SurfaceConfig::compareColorBufferBits,
174 SurfaceConfig::compareAttributeSmaller<EGL_BUFFER_SIZE>,
175 SurfaceConfig::compareAttributeSmaller<EGL_SAMPLE_BUFFERS>,
176 SurfaceConfig::compareAttributeSmaller<EGL_SAMPLES>,
177 SurfaceConfig::compareAttributeSmaller<EGL_DEPTH_SIZE>,
178 SurfaceConfig::compareAttributeSmaller<EGL_STENCIL_SIZE>,
179 SurfaceConfig::compareAttributeSmaller<EGL_ALPHA_MASK_SIZE>,
180 SurfaceConfig::compareAttributeSmaller<EGL_CONFIG_ID>
188 if (skipColorBufferBits && (compareFuncs[ndx] == SurfaceConfig::compareColorBufferBits))
245 const std::map<EGLenum, AttribRule> SurfaceConfig::defaultRules = SurfaceConfig::initAttribRules();
255 bool operator() (const SurfaceConfig& a, const SurfaceConfig& b)
270 : m_rules(SurfaceConfig::defaultRules)
276 DE_ASSERT(SurfaceConfig::defaultRules.find(name) != SurfaceConfig::defaultRules.end());
293 DE_ASSERT(SurfaceConfig::defaultRules.find(name) != SurfaceConfig::defaultRules.end());
297 bool isMatch (const SurfaceConfig& config)
344 std::vector<SurfaceConfig> filter (const std::vector<SurfaceConfig>& configs)
346 std::vector<SurfaceConfig> out;
348 for (std::vector<SurfaceConfig>::const_iterator iter = configs.begin(); iter != configs.end(); iter++)
372 std::vector<SurfaceConfig> configs;
374 configs.push_back(SurfaceConfig(eglConfigs[ndx], configInfos[ndx]));
380 std::vector<SurfaceConfig> filteredConfigs = configFilter.filter(configs);