Flutter Engine
The Flutter Engine
shell
platform
fuchsia
flutter
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
11
namespace
flutter_runner
{
12
13
/// The metadata that can be passed by a Flutter component via
14
/// the `program` field.
15
struct
ProgramMetadata
{
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_
flutter_runner
Definition:
accessibility_bridge.cc:20
flutter_runner::ProgramMetadata
Definition:
program_metadata.h:15
flutter_runner::ProgramMetadata::assets_path
std::string assets_path
Definition:
program_metadata.h:25
flutter_runner::ProgramMetadata::expose_dirs
std::vector< std::string > expose_dirs
A list of additional directories that we will expose in out/.
Definition:
program_metadata.h:31
flutter_runner::ProgramMetadata::old_gen_heap_size
std::optional< int64_t > old_gen_heap_size
The preferred heap size for the Flutter component in megabytes.
Definition:
program_metadata.h:28
flutter_runner::ProgramMetadata::data_path
std::string data_path
Definition:
program_metadata.h:18
Generated on Sun Jun 23 2024 21:55:15 for Flutter Engine by
1.9.4