Flutter Engine
The Flutter Engine
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)
inlinestatic

Definition at line 36 of file image.h.

36 {
37 eglDestroyImage(image.display, image.image);
38 }
sk_sp< const SkImage > image
Definition: SkRecords.h:269

◆ InvalidValue()

static EGLImageWithDisplay impeller::EGLImageWithDisplayTraits::InvalidValue ( )
inlinestatic

Definition at line 28 of file image.h.

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

◆ IsValid()

static bool impeller::EGLImageWithDisplayTraits::IsValid ( const EGLImageWithDisplay value)
inlinestatic

Definition at line 32 of file image.h.

32 {
33 return value != InvalidValue();
34 }
uint8_t value
static EGLImageWithDisplay InvalidValue()
Definition: image.h:28

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