Flutter Engine
The Flutter Engine
Functions
SkImageEncoderPriv.h File Reference
#include "include/core/SkImageInfo.h"
#include "include/core/SkPixmap.h"
#include "src/core/SkImageInfoPriv.h"

Go to the source code of this file.

Functions

static bool SkPixmapIsValid (const SkPixmap &src)
 

Function Documentation

◆ SkPixmapIsValid()

static bool SkPixmapIsValid ( const SkPixmap src)
inlinestatic

Definition at line 15 of file SkImageEncoderPriv.h.

15 {
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}
static bool SkImageInfoIsValid(const SkImageInfo &info)