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
tools
DecodeUtils.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2023 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
#include "
tools/DecodeUtils.h
"
9
10
#include "
include/core/SkBitmap.h
"
11
#include "
include/core/SkColorSpace.h
"
12
#include "
include/core/SkData.h
"
13
#include "
include/core/SkImageGenerator.h
"
14
#include "
include/core/SkImageInfo.h
"
15
#include "
src/image/SkImageGeneratorPriv.h
"
16
17
#include <memory>
18
#include <utility>
19
20
namespace
ToolUtils
{
21
22
bool
DecodeDataToBitmap
(
sk_sp<SkData>
data
,
SkBitmap
*
dst
) {
23
std::unique_ptr<SkImageGenerator>
gen
(
SkImageGenerators::MakeFromEncoded
(std::move(
data
)));
24
return
gen
&&
dst
->tryAllocPixels(
gen
->getInfo()) &&
25
gen
->getPixels(
26
gen
->getInfo().makeColorSpace(
nullptr
),
dst
->getPixels(),
dst
->rowBytes());
27
}
28
29
}
// namespace ToolUtils
DecodeUtils.h
SkBitmap.h
SkColorSpace.h
SkData.h
SkImageGeneratorPriv.h
SkImageGenerator.h
SkImageInfo.h
SkBitmap
Definition:
SkBitmap.h:59
sk_sp< SkData >
SkImageGenerators::MakeFromEncoded
std::unique_ptr< SkImageGenerator > MakeFromEncoded(sk_sp< SkData > data, std::optional< SkAlphaType > at)
Definition:
SkImageGenerator_FromEncoded.cpp:35
ToolUtils
Definition:
DecodeUtils.cpp:20
ToolUtils::DecodeDataToBitmap
bool DecodeDataToBitmap(sk_sp< SkData > data, SkBitmap *dst)
Definition:
DecodeUtils.cpp:22
dom.gen
def gen()
Definition:
dom.py:77
gen
Definition:
gen.py:1
gn.cp.dst
dst
Definition:
cp.py:12
data
std::shared_ptr< const fml::Mapping > data
Definition:
texture_gles.cc:63
Generated on Sun Jun 23 2024 21:56:49 for Flutter Engine by
1.9.4