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
third_party
skia
src
gpu
ganesh
GrBackendUtils.h
Go to the documentation of this file.
1
/*
2
* Copyright 2020 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef GrBackendUtils_DEFINED
9
#define GrBackendUtils_DEFINED
10
11
class
GrBackendFormat
;
12
enum class
SkTextureCompressionType
;
13
14
#include <cstddef>
15
16
SkTextureCompressionType
GrBackendFormatToCompressionType
(
const
GrBackendFormat
&
format
);
17
18
// Returns the number of bytes per texel block for the given format. All non compressed formats
19
// are treated as having a block size of 1x1, so this is equivalent to bytesPerPixel.
20
size_t
GrBackendFormatBytesPerBlock
(
const
GrBackendFormat
&
format
);
21
22
// Returns the number of bytes per pixel for the given format. All compressed formats will return 0.
23
size_t
GrBackendFormatBytesPerPixel
(
const
GrBackendFormat
&
format
);
24
25
int
GrBackendFormatStencilBits
(
const
GrBackendFormat
&
format
);
26
27
#endif
GrBackendFormatBytesPerPixel
size_t GrBackendFormatBytesPerPixel(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:84
GrBackendFormatToCompressionType
SkTextureCompressionType GrBackendFormatToCompressionType(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:22
GrBackendFormatStencilBits
int GrBackendFormatStencilBits(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:91
GrBackendFormatBytesPerBlock
size_t GrBackendFormatBytesPerBlock(const GrBackendFormat &format)
Definition:
GrBackendUtils.cpp:52
SkTextureCompressionType
SkTextureCompressionType
Definition:
SkTextureCompressionType.h:20
GrBackendFormat
Definition:
GrBackendSurface.h:44
format
uint32_t uint32_t * format
Definition:
fl_texture_registrar_test.cc:41
Generated on Sun Jun 23 2024 21:56:19 for Flutter Engine by
1.9.4