Flutter Impeller
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 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

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