5#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_IMAGE_H_
6#define FLUTTER_IMPELLER_TOOLKIT_EGL_IMAGE_H_
8#include "flutter/fml/unique_object.h"
9#include "flutter/impeller/toolkit/egl/egl.h"
23 return !(*
this == other);
29 return {EGL_NO_IMAGE, EGL_NO_DISPLAY};
46 EGLImageKHR
image = EGL_NO_IMAGE_KHR;
54 return !(*
this == other);
60 return {EGL_NO_IMAGE_KHR, EGL_NO_DISPLAY};
68 eglDestroyImageKHR(
image.display,
image.image);
sk_sp< const SkImage > image
static void Free(EGLImageKHRWithDisplay image)
static bool IsValid(const EGLImageKHRWithDisplay &value)
static EGLImageKHRWithDisplay InvalidValue()
constexpr bool operator==(const EGLImageKHRWithDisplay &other) const
constexpr bool operator!=(const EGLImageKHRWithDisplay &other) const
static bool IsValid(const EGLImageWithDisplay &value)
static void Free(EGLImageWithDisplay image)
static EGLImageWithDisplay InvalidValue()
constexpr bool operator==(const EGLImageWithDisplay &other) const
constexpr bool operator!=(const EGLImageWithDisplay &other) const