Flutter Engine
The Flutter Engine
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 ConfigDescriptorGetDescriptor () 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 63 of file config.h.

Constructor & Destructor Documentation

◆ ~Config()

Config::~Config ( )
default

◆ Config()

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 & Config::GetDescriptor ( ) const

Definition at line 17 of file config.cc.

17 {
18 return desc_;
19}

◆ GetHandle()

const EGLConfig & Config::GetHandle ( ) const

Definition at line 21 of file config.cc.

21 {
22 return config_;
23}

◆ IsValid()

bool 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: