コード例 #1
0
ファイル: egl_display_impl.cpp プロジェクト: epowers/arc
const EglConfigImpl* EglDisplayImpl::GetConfig(EGLConfig cfg) const {
  for (ConfigSet::const_iterator i = configs_.begin(); i != configs_.end();
       ++i) {
    if (i->GetKey() == cfg) {
      return &*i;
    }
  }
  return NULL;
}
コード例 #2
0
ファイル: egl_display_impl.cpp プロジェクト: epowers/arc
bool EglDisplayImpl::IsValidConfig(EGLConfig config) const {
  for (ConfigSet::const_iterator i = configs_.begin(); i != configs_.end();
       ++i) {
    if (config == i->GetKey()) {
      return true;
    }
  }
  return false;
}