Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions | Variables
SkSurfacePriv.h File Reference
#include "include/core/SkSurfaceProps.h"

Go to the source code of this file.

Functions

static SkSurfaceProps SkSurfacePropsCopyOrDefault (const SkSurfaceProps *props)
 
bool SkSurfaceValidateRasterInfo (const SkImageInfo &, size_t rb=kIgnoreRowBytesValue)
 

Variables

constexpr size_t kIgnoreRowBytesValue = static_cast<size_t>(~0)
 

Function Documentation

◆ SkSurfacePropsCopyOrDefault()

static SkSurfaceProps SkSurfacePropsCopyOrDefault ( const SkSurfaceProps props)
inlinestatic

Definition at line 15 of file SkSurfacePriv.h.

15 {
16 return props ? *props : SkSurfaceProps();
17}

◆ SkSurfaceValidateRasterInfo()

bool SkSurfaceValidateRasterInfo ( const SkImageInfo info,
size_t  rb = kIgnoreRowBytesValue 
)

Definition at line 36 of file SkSurface_Raster.cpp.

36 {
38 return false;
39 }
40
41 if (kIgnoreRowBytesValue == rowBytes) {
42 return true;
43 }
44
45 if (!info.validRowBytes(rowBytes)) {
46 return false;
47 }
48
49 uint64_t size = sk_64_mul(info.height(), rowBytes);
50 static const size_t kMaxTotalSize = SK_MaxS32;
51 if (size > kMaxTotalSize) {
52 return false;
53 }
54
55 return true;
56}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition DM.cpp:213
static bool SkImageInfoIsValid(const SkImageInfo &info)
static int64_t sk_64_mul(int64_t a, int64_t b)
Definition SkMath.h:33
static constexpr int32_t SK_MaxS32
Definition SkMath.h:21
constexpr size_t kIgnoreRowBytesValue
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259

Variable Documentation

◆ kIgnoreRowBytesValue

constexpr size_t kIgnoreRowBytesValue = static_cast<size_t>(~0)
constexpr

Definition at line 19 of file SkSurfacePriv.h.