|
12 | 12 | #include "flutter/common/task_runners.h"
|
13 | 13 | #include "flutter/flow/surface.h"
|
14 | 14 | #include "flutter/fml/macros.h"
|
| 15 | +#include "flutter/fml/mapping.h" |
15 | 16 | #include "flutter/fml/memory/weak_ptr.h"
|
16 | 17 | #include "flutter/lib/ui/semantics/custom_accessibility_action.h"
|
17 | 18 | #include "flutter/lib/ui/semantics/semantics_node.h"
|
@@ -235,8 +236,8 @@ class PlatformView {
|
235 | 236 | ///
|
236 | 237 | virtual void LoadDartDeferredLibrary(
|
237 | 238 | intptr_t loading_unit_id,
|
238 |
| - const uint8_t* snapshot_data, |
239 |
| - const uint8_t* snapshot_instructions) = 0; |
| 239 | + std::unique_ptr<fml::Mapping> snapshot_data, |
| 240 | + std::unique_ptr<fml::Mapping> snapshot_instructions) = 0; |
240 | 241 |
|
241 | 242 | // TODO(garyq): Implement a proper asset_resolver replacement instead of
|
242 | 243 | // overwriting the entire asset manager.
|
@@ -645,9 +646,10 @@ class PlatformView {
|
645 | 646 | /// @param[in] snapshot_data Dart snapshot instructions of the loading
|
646 | 647 | /// unit's shared library.
|
647 | 648 | ///
|
648 |
| - virtual void LoadDartDeferredLibrary(intptr_t loading_unit_id, |
649 |
| - const uint8_t* snapshot_data, |
650 |
| - const uint8_t* snapshot_instructions); |
| 649 | + virtual void LoadDartDeferredLibrary( |
| 650 | + intptr_t loading_unit_id, |
| 651 | + std::unique_ptr<fml::Mapping> snapshot_data, |
| 652 | + std::unique_ptr<fml::Mapping> snapshot_instructions); |
651 | 653 |
|
652 | 654 | // TODO(garyq): Implement a proper asset_resolver replacement instead of
|
653 | 655 | // overwriting the entire asset manager.
|
|
0 commit comments