| Flutter Impeller |

Public Member Functions | List of all members
IMPELLER_HPP_NAMESPACE::Mapping Class Reference

`#include <impeller.hpp>`

## Public Member Functions
| Mapping (const uint8_t *mapping, size_t size, std::function< void()> release_callback)
| ~Mapping ()
const uint8_t * | GetMapping () const
size_t | GetSize () const

## Detailed Description

Definition at line 339 of file impeller.hpp.

## Constructor & Destructor Documentation

## ◆ Mapping()

IMPELLER_HPP_NAMESPACE::Mapping::Mapping | ( | const uint8_t * | mapping,
|  | size_t | size,
|  | std::function< void()> | release_callback
| ) |  |
| inline

Definition at line 341 of file impeller.hpp.

344 : mapping_(mapping),
345 size_(size),
346 release_callback_(std::move(release_callback)) {}

## ◆ ~Mapping()

IMPELLER_HPP_NAMESPACE::Mapping::~Mapping | ( |  | ) |
| inline

Definition at line 348 of file impeller.hpp.

348 {
349 if (release_callback_) {
350 release_callback_();
351 }
352 }

## Member Function Documentation

## ◆ GetMapping()

const uint8_t* IMPELLER_HPP_NAMESPACE::Mapping::GetMapping | ( |  | ) | const
| inline

Definition at line 354 of file impeller.hpp.

354 { return mapping_; }

Referenced by IMPELLER_HPP_NAMESPACE::ColorSource::FragmentProgram(), and IMPELLER_HPP_NAMESPACE::ImageFilter::FragmentProgram().

## ◆ GetSize()

size_t IMPELLER_HPP_NAMESPACE::Mapping::GetSize | ( |  | ) | const
| inline

Definition at line 356 of file impeller.hpp.

356 { return size_; }

Referenced by IMPELLER_HPP_NAMESPACE::ColorSource::FragmentProgram(), and IMPELLER_HPP_NAMESPACE::ImageFilter::FragmentProgram().

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

- impeller/toolkit/interop/impeller.hpp