Flutter Engine
The Flutter Engine
decompressed_image.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_PLAYGROUND_IMAGE_DECOMPRESSED_IMAGE_H_
6#define FLUTTER_IMPELLER_PLAYGROUND_IMAGE_DECOMPRESSED_IMAGE_H_
7
8#include <memory>
9
10#include "flutter/fml/mapping.h"
12
13namespace impeller {
14
16 public:
17 enum class Format {
19 kGrey,
20 kGreyAlpha,
21 kRGB,
22 kRGBA,
23 };
24
26
29 std::shared_ptr<const fml::Mapping> allocation);
30
32
33 const ISize& GetSize() const;
34
35 bool IsValid() const;
36
37 Format GetFormat() const;
38
39 const std::shared_ptr<const fml::Mapping>& GetAllocation() const;
40
42
43 private:
44 ISize size_;
45 Format format_ = Format::kInvalid;
46 std::shared_ptr<const fml::Mapping> allocation_;
47 bool is_valid_ = false;
48};
49
50} // namespace impeller
51
52#endif // FLUTTER_IMPELLER_PLAYGROUND_IMAGE_DECOMPRESSED_IMAGE_H_
@ kInvalid
DecompressedImage ConvertToRGBA() const
const std::shared_ptr< const fml::Mapping > & GetAllocation() const
const ISize & GetSize() const
@ kRGBA
Definition: embedder.h:607
uint32_t uint32_t * format
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
Definition: switches.h:259