Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
SkEncodedInfo::ICCProfile Class Reference

#include <SkEncodedInfo.h>

Public Member Functions

const skcms_ICCProfileprofile () const
 
sk_sp< SkDatadata () const
 

Static Public Member Functions

static std::unique_ptr< ICCProfileMake (sk_sp< SkData >)
 
static std::unique_ptr< ICCProfileMake (const skcms_ICCProfile &)
 

Detailed Description

Definition at line 27 of file SkEncodedInfo.h.

Member Function Documentation

◆ data()

sk_sp< SkData > SkEncodedInfo::ICCProfile::data ( ) const
inline

Definition at line 33 of file SkEncodedInfo.h.

33{ return fData; }

◆ Make() [1/2]

std::unique_ptr< SkEncodedInfo::ICCProfile > SkEncodedInfo::ICCProfile::Make ( const skcms_ICCProfile profile)
static

Definition at line 22 of file SkEncodedInfo.cpp.

23 {
24 return std::unique_ptr<ICCProfile>(new ICCProfile(profile));
25}
const skcms_ICCProfile * profile() const
Definition: SkEncodedInfo.h:32

◆ Make() [2/2]

std::unique_ptr< SkEncodedInfo::ICCProfile > SkEncodedInfo::ICCProfile::Make ( sk_sp< SkData data)
static

Definition at line 12 of file SkEncodedInfo.cpp.

12 {
13 if (data) {
15 if (skcms_Parse(data->data(), data->size(), &profile)) {
16 return std::unique_ptr<ICCProfile>(new ICCProfile(profile, std::move(data)));
17 }
18 }
19 return nullptr;
20}
const void * data() const
Definition: SkData.h:37
size_t size() const
Definition: SkData.h:30
sk_sp< SkData > data() const
Definition: SkEncodedInfo.h:33
static bool skcms_Parse(const void *buf, size_t len, skcms_ICCProfile *profile)
Definition: skcms_public.h:245

◆ profile()

const skcms_ICCProfile * SkEncodedInfo::ICCProfile::profile ( ) const
inline

Definition at line 32 of file SkEncodedInfo.h.

32{ return &fProfile; }

The documentation for this class was generated from the following files: