9#include "flutter/fml/mapping.h"
19 std::shared_ptr<const fml::Mapping> allocation)
72 const auto source_byte_size = size_.
Area() * bpp;
73 if (allocation_->GetSize() < source_byte_size) {
77 auto rgba_allocation = std::make_shared<Allocation>();
78 if (!rgba_allocation->Truncate(size_.
Area() * 4u,
false)) {
82 const uint8_t*
source = allocation_->GetMapping();
83 uint8_t*
dest = rgba_allocation->GetBuffer();
85 for (
size_t i = 0, j = 0;
i < source_byte_size;
i += bpp, j += 4u) {
116 std::make_shared<fml::NonOwnedMapping>(
117 rgba_allocation->GetBuffer(),
118 rgba_allocation->GetLength(),
119 [rgba_allocation](
auto,
auto) {})
DecompressedImage ConvertToRGBA() const
const std::shared_ptr< const fml::Mapping > & GetAllocation() const
const ISize & GetSize() const
uint32_t uint32_t * format
#define FML_CHECK(condition)
static float max(float r, float g, float b)
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
static size_t GetBytesPerPixel(DecompressedImage::Format format)
constexpr Type Area() const