| Flutter Impeller |

Static Public Member Functions | List of all members
impeller::EGLImageWithDisplayTraits Struct Reference

`#include <image.h>`

## Static Public Member Functions
static EGLImageWithDisplay | InvalidValue ()
static bool | IsValid (const EGLImageWithDisplay &value)
static void | Free (EGLImageWithDisplay image)

## Detailed Description

Definition at line 26 of file image.h.

## Member Function Documentation

## ◆ Free()

static void impeller::EGLImageWithDisplayTraits::Free | ( | EGLImageWithDisplay | image | ) |
| inline static

Definition at line 35 of file image.h.

35 {
36 eglDestroyImage(image.display, image.image);
37 }

References impeller::EGLImageWithDisplay::display, and impeller::EGLImageWithDisplay::image.

## ◆ InvalidValue()

static EGLImageWithDisplay impeller::EGLImageWithDisplayTraits::InvalidValue | ( |  | ) |
| inline static

Definition at line 27 of file image.h.

27 {
28 return {EGL_NO_IMAGE, EGL_NO_DISPLAY};
29 }

Referenced by IsValid().

## ◆ IsValid()

static bool impeller::EGLImageWithDisplayTraits::IsValid | ( | const EGLImageWithDisplay & | value | ) |
| inline static

Definition at line 31 of file image.h.

31 {
32 return value != InvalidValue();
33 }

References InvalidValue().

The documentation for this struct was generated from the following file:

- impeller/toolkit/egl/image.h

impeller::EGLImageWithDisplayTraits::InvalidValue
static EGLImageWithDisplay InvalidValue()
Definition: image.h:27