| Flutter Impeller |

Public Member Functions | List of all members
impeller::egl::Config Class Reference

An EGL config. These are returned by the display to indicate support for a specific config descriptor. More...

`#include <config.h>`

## Public Member Functions
| ~Config ()
bool | IsValid () const
const ConfigDescriptor & | GetDescriptor () const
const EGLConfig & | GetHandle () const
| Config (ConfigDescriptor descriptor, EGLConfig config)

## Detailed Description

An EGL config. These are returned by the display to indicate support for a specific config descriptor.

There is no ability to construct these manually except for testing.

Definition at line 64 of file config.h.

## Constructor & Destructor Documentation

## ◆ ~Config()

impeller::egl::Config::~Config | ( |  | ) |
| default

## ◆ Config()

impeller::egl::Config::Config | ( | ConfigDescriptor | descriptor,
|  | EGLConfig | config
| ) |  |

Definition at line 12 of file config.cc.

13 : desc_(descriptor), config_(config) {}

## Member Function Documentation

## ◆ GetDescriptor()

const ConfigDescriptor & impeller::egl::Config::GetDescriptor | ( |  | ) | const

Definition at line 17 of file config.cc.

17 {
18 return desc_;
19 }

Referenced by impeller::egl::Display::CreateContext().

## ◆ GetHandle()

const EGLConfig & impeller::egl::Config::GetHandle | ( |  | ) | const

Definition at line 21 of file config.cc.

21 {
22 return config_;
23 }

Referenced by impeller::egl::Display::CreateContext(), impeller::egl::Display::CreatePixelBufferSurface(), and impeller::egl::Display::CreateWindowSurface().

## ◆ IsValid()

bool impeller::egl::Config::IsValid | ( |  | ) | const

Definition at line 25 of file config.cc.

25 {
26 return config_ != nullptr;
27 }

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

- impeller/toolkit/egl/config.h
- impeller/toolkit/egl/config.cc