| Flutter Impeller |

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

`#include <image.h>`

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

## Detailed Description

Definition at line 47 of file image.h.

## Member Function Documentation

## ◆ Free()

static void impeller::EGLImageKHRWithDisplayTraits::Free | ( | EGLImageKHRWithDisplay | image | ) |
| inlinestatic

Definition at line 56 of file image.h.

56 {
57 eglDestroyImageKHR(image.display, image.image);
58 }

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

## ◆ InvalidValue()

static EGLImageKHRWithDisplay impeller::EGLImageKHRWithDisplayTraits::InvalidValue | ( |  | ) |
| inlinestatic

Definition at line 48 of file image.h.

48 {
49 return {EGL_NO_IMAGE_KHR, EGL_NO_DISPLAY};
50 }

Referenced by IsValid().

## ◆ IsValid()

static bool impeller::EGLImageKHRWithDisplayTraits::IsValid | ( | const EGLImageKHRWithDisplay & | value | ) |
| inlinestatic

Definition at line 52 of file image.h.

52 {
53 return value != InvalidValue();
54 }
value
int32_t value
Definition: dl_golden_unittests.cc:459
impeller::EGLImageKHRWithDisplayTraits::InvalidValue
static EGLImageKHRWithDisplay InvalidValue()
Definition: image.h:48

References InvalidValue(), and value.

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

- impeller/toolkit/egl/image.h