| 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 27 of file image.h.

## Member Function Documentation

## ◆ Free()

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

Definition at line 36 of file image.h.

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

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

## ◆ InvalidValue()

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

Definition at line 28 of file image.h.

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

Referenced by IsValid().

## ◆ IsValid()

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

Definition at line 32 of file image.h.

32 {
33 return value != InvalidValue();
34 }
value
int32_t value
Definition: dl_golden_unittests.cc:459
impeller::EGLImageWithDisplayTraits::InvalidValue
static EGLImageWithDisplay InvalidValue()
Definition: image.h:28

References InvalidValue(), and value.

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

- impeller/toolkit/egl/image.h