Flutter Engine
The Flutter Engine
third_party
skia
src
core
SkSurfacePriv.h
Go to the documentation of this file.
1
/*
2
* Copyright 2014 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 SkSurfacePriv_DEFINED
9
#define SkSurfacePriv_DEFINED
10
11
#include "
include/core/SkSurfaceProps.h
"
12
13
struct
SkImageInfo
;
14
15
static
inline
SkSurfaceProps
SkSurfacePropsCopyOrDefault
(
const
SkSurfaceProps
* props) {
16
return
props ? *props :
SkSurfaceProps
();
17
}
18
19
constexpr
size_t
kIgnoreRowBytesValue
=
static_cast<
size_t
>
(~0);
20
21
bool
SkSurfaceValidateRasterInfo
(
const
SkImageInfo
&,
size_t
rb =
kIgnoreRowBytesValue
);
22
23
#endif
SkSurfacePropsCopyOrDefault
static SkSurfaceProps SkSurfacePropsCopyOrDefault(const SkSurfaceProps *props)
Definition:
SkSurfacePriv.h:15
SkSurfaceValidateRasterInfo
bool SkSurfaceValidateRasterInfo(const SkImageInfo &, size_t rb=kIgnoreRowBytesValue)
Definition:
SkSurface_Raster.cpp:36
kIgnoreRowBytesValue
constexpr size_t kIgnoreRowBytesValue
Definition:
SkSurfacePriv.h:19
SkSurfaceProps.h
SkSurfaceProps
Definition:
SkSurfaceProps.h:53
SkImageInfo
Definition:
SkImageInfo.h:208
Generated on Sun Jun 23 2024 21:56:15 for Flutter Engine by
1.9.4