Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 968a2fc

Browse files
author
Kaushik Iska
committed
Merge branch 'master' of github.com:flutter/engine into 26380
2 parents 735dd2e + 050dcaa commit 968a2fc

25 files changed

+1140
-115
lines changed

DEPS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ vars = {
2323
'fuchsia_git': 'https://fuchsia.googlesource.com',
2424
'github_git': 'https://github.com',
2525
'skia_git': 'https://skia.googlesource.com',
26-
'skia_revision': '3f42e98f461af6f9022fa3fd3f3ab98b34dd81c3',
26+
'skia_revision': '70ebd9ca0616f54450a38d4f0f952810595a441b',
2727

2828
# When updating the Dart revision, ensure that all entries that are
2929
# dependencies of Dart are also updated to match the entries in the
3030
# Dart SDK's DEPS file for that revision of Dart. The DEPS file for
3131
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
3232
# You can use //tools/dart/create_updated_flutter_deps.py to produce
3333
# updated revision list of existing dependencies.
34-
'dart_revision': '011a1239fc4c0ed140ddce4773cc791da1936cd4',
34+
'dart_revision': '71bee8f05eb40e2f3b49ed57b8f46421f4432179',
3535

3636
# WARNING: DO NOT EDIT MANUALLY
3737
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@@ -116,7 +116,7 @@ allowed_hosts = [
116116
]
117117

118118
deps = {
119-
'src': 'https://github.com/flutter/buildroot.git' + '@' + '19317704cfb7be72c7d81953f634674ea8bee5ea',
119+
'src': 'https://github.com/flutter/buildroot.git' + '@' + '13ca742ec8b3d7761877197d74b003d3e646d805',
120120

121121
# Fuchsia compatibility
122122
#

ci/licenses_golden/licenses_flutter

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ FILE: ../../../flutter/shell/platform/android/android_context_gl.cc
396396
FILE: ../../../flutter/shell/platform/android/android_context_gl.h
397397
FILE: ../../../flutter/shell/platform/android/android_environment_gl.cc
398398
FILE: ../../../flutter/shell/platform/android/android_environment_gl.h
399+
FILE: ../../../flutter/shell/platform/android/android_exports.lst
399400
FILE: ../../../flutter/shell/platform/android/android_external_texture_gl.cc
400401
FILE: ../../../flutter/shell/platform/android/android_external_texture_gl.h
401402
FILE: ../../../flutter/shell/platform/android/android_native_window.cc

ci/licenses_golden/licenses_skia

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: ac0db7893a7157f0a715889abf470568
1+
Signature: 9fbc0d30a3a9de96a9a329b406654e52
22

33
UNUSED LICENSES:
44

ci/licenses_golden/licenses_third_party

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 7732a4b1a615c93a42144e598900f9ac
1+
Signature: 8c93c6ef0de9e89d30fad2c99c899a75
22

33
UNUSED LICENSES:
44

common/settings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ struct Settings {
105105
bool verbose_logging = false;
106106
std::string log_tag = "flutter";
107107
std::string icu_data_path;
108+
MappingCallback icu_mapper;
108109

109110
// Assets settings
110111
fml::UniqueFD::element_type assets_dir =

fml/icu_util.cc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "flutter/fml/build_config.h"
1111
#include "flutter/fml/logging.h"
1212
#include "flutter/fml/mapping.h"
13+
#include "flutter/fml/native_library.h"
1314
#include "flutter/fml/paths.h"
1415
#include "third_party/icu/source/common/unicode/udata.h"
1516

@@ -22,6 +23,10 @@ class ICUContext {
2223
valid_ = SetupMapping(icu_data_path) && SetupICU();
2324
}
2425

26+
ICUContext(std::unique_ptr<Mapping> mapping) : mapping_(std::move(mapping)) {
27+
valid_ = SetupICU();
28+
}
29+
2530
~ICUContext() = default;
2631

2732
bool SetupMapping(const std::string& icu_data_path) {
@@ -99,5 +104,17 @@ void InitializeICU(const std::string& icu_data_path) {
99104
[&icu_data_path]() { InitializeICUOnce(icu_data_path); });
100105
}
101106

107+
void InitializeICUFromMappingOnce(std::unique_ptr<Mapping> mapping) {
108+
static ICUContext* context = new ICUContext(std::move(mapping));
109+
FML_CHECK(context->IsValid())
110+
<< "Unable to initialize the ICU context from a mapping.";
111+
}
112+
113+
void InitializeICUFromMapping(std::unique_ptr<Mapping> mapping) {
114+
std::call_once(g_icu_init_flag, [mapping = std::move(mapping)]() mutable {
115+
InitializeICUFromMappingOnce(std::move(mapping));
116+
});
117+
}
118+
102119
} // namespace icu
103120
} // namespace fml

fml/icu_util.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
#include <string>
99

1010
#include "flutter/fml/macros.h"
11+
#include "flutter/fml/mapping.h"
1112

1213
namespace fml {
1314
namespace icu {
1415

1516
void InitializeICU(const std::string& icu_data_path = "");
1617

18+
void InitializeICUFromMapping(std::unique_ptr<Mapping> mapping);
19+
1720
} // namespace icu
1821
} // namespace fml
1922

0 commit comments

Comments
 (0)