Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
program_metadata.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_SHELL_PLATFORM_FUCHSIA_FLUTTER_PROGRAM_METADATA_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_PROGRAM_METADATA_H_
7
8#include <optional>
9#include <string>
10
11namespace flutter_runner {
12
13/// The metadata that can be passed by a Flutter component via
14/// the `program` field.
16 /// The path where data for the Flutter component should
17 /// be stored.
18 std::string data_path = "";
19
20 /// The path where assets for the Flutter component should
21 /// be stored.
22 ///
23 /// TODO(fxb/89246): No components appear to be using this field. We
24 /// may be able to get rid of this.
25 std::string assets_path = "";
26
27 /// The preferred heap size for the Flutter component in megabytes.
28 std::optional<int64_t> old_gen_heap_size = std::nullopt;
29
30 /// A list of additional directories that we will expose in out/
31 std::vector<std::string> expose_dirs;
32};
33
34} // namespace flutter_runner
35
36#endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_PROGRAM_METADATA_H_
std::vector< std::string > expose_dirs
A list of additional directories that we will expose in out/.
std::optional< int64_t > old_gen_heap_size
The preferred heap size for the Flutter component in megabytes.