| Flutter Impeller |

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
impeller::CompressedImage Class Referenceabstract

`#include <compressed_image.h>`

Inheritance diagram for impeller::CompressedImage:

## Public Member Functions
virtual | ~CompressedImage ()
virtual DecompressedImage | Decode () const =0
bool | IsValid () const

## Protected Member Functions
| CompressedImage (std::shared_ptr< const fml::Mapping > allocation)

## Protected Attributes
const std::shared_ptr< const fml::Mapping > | source_

## Detailed Description

Definition at line 17 of file compressed_image.h.

## Constructor & Destructor Documentation

## ◆ ~CompressedImage()

impeller::CompressedImage::~CompressedImage | ( |  | ) |
| virtual default

## ◆ CompressedImage()

impeller::CompressedImage::CompressedImage | ( | std::shared_ptr< const fml::Mapping > | allocation | ) |
| explicit protected

Definition at line 9 of file compressed_image.cc.

10 : source_(std::move(allocation)) {}
impeller::CompressedImage::source_
const std::shared_ptr< const fml::Mapping > source_
Definition: compressed_image.h:26

## Member Function Documentation

## ◆ Decode()

virtual DecompressedImage impeller::CompressedImage::Decode | ( |  | ) | const
| pure virtual

Implemented in impeller::CompressedImageSkia.

## ◆ IsValid()

bool impeller::CompressedImage::IsValid | ( |  | ) | const

Definition at line 14 of file compressed_image.cc.

14 {
15 return static_cast<bool>(source_);
16 }

References source_.

Referenced by impeller::CompressedImageSkia::Decode().

## Member Data Documentation

## ◆ source_

const std::shared_ptr<const fml::Mapping> impeller::CompressedImage::source_
| protected

Definition at line 26 of file compressed_image.h.

Referenced by impeller::CompressedImageSkia::Decode(), and IsValid().

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

- impeller/playground/image/compressed_image.h
- impeller/playground/image/compressed_image.cc