mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL adds the ability to load Dart snapshot files created by sky_packager in Sky. Using a snapshot lets us transmit all the code for an app in a single blob and should improve startup time. Later CLs will make this codepath easier to use and evaluate performance. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1197133004.
18 lines
533 B
C++
18 lines
533 B
C++
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SKY_TOOLS_PACKAGER_LOADER_H_
|
|
#define SKY_TOOLS_PACKAGER_LOADER_H_
|
|
|
|
#include <string>
|
|
|
|
#include "dart/runtime/include/dart_api.h"
|
|
|
|
Dart_Handle HandleLibraryTag(Dart_LibraryTag tag,
|
|
Dart_Handle library,
|
|
Dart_Handle url);
|
|
void LoadScript(const std::string& url);
|
|
|
|
#endif // SKY_TOOLS_PACKAGER_LOADER_H_
|