Flutter Engine
The Flutter Engine
third_party
skia
src
encode
SkImageEncoderPriv.h
Go to the documentation of this file.
1
/*
2
* Copyright 2016 Google Inc.
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 SkImageEncoderPriv_DEFINED
9
#define SkImageEncoderPriv_DEFINED
10
11
#include "
include/core/SkImageInfo.h
"
12
#include "
include/core/SkPixmap.h
"
13
#include "
src/core/SkImageInfoPriv.h
"
14
15
static
inline
bool
SkPixmapIsValid
(
const
SkPixmap
&
src
) {
16
if
(!
SkImageInfoIsValid
(
src
.info())) {
17
return
false
;
18
}
19
20
if
(!
src
.addr() ||
src
.rowBytes() <
src
.info().minRowBytes()) {
21
return
false
;
22
}
23
24
return
true
;
25
}
26
27
#endif
// SkImageEncoderPriv_DEFINED
SkPixmapIsValid
static bool SkPixmapIsValid(const SkPixmap &src)
Definition:
SkImageEncoderPriv.h:15
SkImageInfoPriv.h
SkImageInfoIsValid
static bool SkImageInfoIsValid(const SkImageInfo &info)
Definition:
SkImageInfoPriv.h:192
SkImageInfo.h
SkPixmap.h
SkPixmap
Definition:
SkPixmap.h:40
mskp_parser.src
src
Definition:
mskp_parser.py:22
Generated on Sun Jun 23 2024 21:56:16 for Flutter Engine by
1.9.4