Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
impeller
toolkit
gles
texture.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_IMPELLER_TOOLKIT_GLES_TEXTURE_H_
6
#define FLUTTER_IMPELLER_TOOLKIT_GLES_TEXTURE_H_
7
8
#include "flutter/fml/unique_object.h"
9
#include "flutter/impeller/toolkit/gles/gles.h"
10
11
namespace
impeller
{
12
13
// Simple holder of an GLTexture and the owning EGLDisplay.
14
struct
GLTexture
{
15
GLuint
texture_name
;
16
17
constexpr
bool
operator==
(
const
GLTexture
& other)
const
{
18
return
texture_name
== other.
texture_name
;
19
}
20
21
constexpr
bool
operator!=
(
const
GLTexture
& other)
const
{
22
return
!(*
this
== other);
23
}
24
};
25
26
struct
GLTextureTraits
{
27
static
GLTexture
InvalidValue
() {
return
{0}; }
28
29
static
bool
IsValid
(
const
GLTexture
&
value
) {
30
return
value
!=
InvalidValue
();
31
}
32
33
static
void
Free
(
GLTexture
image
) {
34
glDeleteTextures(1, &
image
.texture_name);
35
}
36
};
37
38
using
UniqueGLTexture
=
fml::UniqueObject<GLTexture, GLTextureTraits>
;
39
40
}
// namespace impeller
41
42
#endif
// FLUTTER_IMPELLER_TOOLKIT_GLES_TEXTURE_H_
fml::UniqueObject< GLTexture, GLTextureTraits >
value
uint8_t value
Definition:
fl_standard_message_codec.cc:36
SkRecords::image
sk_sp< const SkImage > image
Definition:
SkRecords.h:269
impeller
Definition:
texture.h:18
impeller::GLTextureTraits
Definition:
texture.h:26
impeller::GLTextureTraits::Free
static void Free(GLTexture image)
Definition:
texture.h:33
impeller::GLTextureTraits::InvalidValue
static GLTexture InvalidValue()
Definition:
texture.h:27
impeller::GLTextureTraits::IsValid
static bool IsValid(const GLTexture &value)
Definition:
texture.h:29
impeller::GLTexture
Definition:
texture.h:14
impeller::GLTexture::operator==
constexpr bool operator==(const GLTexture &other) const
Definition:
texture.h:17
impeller::GLTexture::operator!=
constexpr bool operator!=(const GLTexture &other) const
Definition:
texture.h:21
impeller::GLTexture::texture_name
GLuint texture_name
Definition:
texture.h:15
Generated on Sun Jun 23 2024 21:55:05 for Flutter Engine by
1.9.4