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

## Member Function Documentation

## ◆ Free()

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

Definition at line 30 of file image.h.

30 {
31 eglDestroyImage(image.display, image.image);
32 }

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

## ◆ InvalidValue()

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

Definition at line 22 of file image.h.

22 {
23 return {EGL_NO_IMAGE, EGL_NO_DISPLAY};
24 }

Referenced by IsValid().

## ◆ IsValid()

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

Definition at line 26 of file image.h.

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

References InvalidValue(), and value.

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

- impeller/toolkit/egl/image.h