Flutter Engine
The Flutter Engine
embedder_resources.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_RUNTIME_EMBEDDER_RESOURCES_H_
6#define FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
7
8namespace flutter {
9namespace runtime {
10
12 const char* path_;
13 const char* resource_;
15};
16
17} // namespace runtime
18} // namespace flutter
19
20namespace flutter {
21
23 public:
24 explicit EmbedderResources(runtime::ResourcesEntry* resources_table);
25
26 static const int kNoSuchInstance;
27
28 int ResourceLookup(const char* path, const char** resource);
29 const char* Path(int idx);
30
31 private:
32 runtime::ResourcesEntry* At(int idx);
33
34 runtime::ResourcesEntry* resources_table_;
35};
36
37} // namespace flutter
38
39#endif // FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
static SkString resource(SkPDFResourceType type, int index)
const char * Path(int idx)
static const int kNoSuchInstance
int ResourceLookup(const char *path, const char **resource)
EmbedderResources(runtime::ResourcesEntry *resources_table)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57