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

Commit 2a87dc3

Browse files
Merge branch 'master' into roll-rapidjson
2 parents 32e7078 + b98a39e commit 2a87dc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+489
-109
lines changed

DEPS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ vars = {
2626
'skia_git': 'https://skia.googlesource.com',
2727
# OCMock is for testing only so there is no google clone
2828
'ocmock_git': 'https://github.com/erikdoe/ocmock.git',
29-
'skia_revision': 'af99f3ee60177fe5f20f5d7e995540852f8b0d66',
29+
'skia_revision': '2aee7d24da8f53d5c493c86a62fe7d5bda0ed2a2',
3030

3131
# When updating the Dart revision, ensure that all entries that are
3232
# dependencies of Dart are also updated to match the entries in the
3333
# Dart SDK's DEPS file for that revision of Dart. The DEPS file for
3434
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
3535
# You can use //tools/dart/create_updated_flutter_deps.py to produce
3636
# updated revision list of existing dependencies.
37-
'dart_revision': 'c8ed304e979a283f10e28a4104e0da31a3f114ff',
37+
'dart_revision': '68e904e444dcfdce6acbce49e949df675f44674b',
3838

3939
# WARNING: DO NOT EDIT MANUALLY
4040
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@@ -529,7 +529,7 @@ deps = {
529529
'packages': [
530530
{
531531
'package': 'fuchsia/sdk/core/mac-amd64',
532-
'version': '6h3IHoN06A4cvumNQ92hnYAs89rNFxu_tnQJ0awXfhEC'
532+
'version': 'Ke00YoQY3gr6XjjvRphHcHlYUnNly2QpRtyZUPvkgPkC'
533533
}
534534
],
535535
'condition': 'host_os == "mac"',
@@ -549,7 +549,7 @@ deps = {
549549
'packages': [
550550
{
551551
'package': 'fuchsia/sdk/core/linux-amd64',
552-
'version': 'Tszo5lUJw4pMkhAqlHOsAZfuMWHcLEdrCk2X56cxNKAC'
552+
'version': 'VJv0H274DVlq71Q_dUGYrsM4cDQFW0GniDIuYcX3XtcC'
553553
}
554554
],
555555
'condition': 'host_os == "linux"',

ci/licenses_golden/licenses_flutter

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@ FILE: ../../../flutter/shell/gpu/gpu_surface_software_delegate.cc
603603
FILE: ../../../flutter/shell/gpu/gpu_surface_software_delegate.h
604604
FILE: ../../../flutter/shell/gpu/gpu_surface_vulkan.cc
605605
FILE: ../../../flutter/shell/gpu/gpu_surface_vulkan.h
606+
FILE: ../../../flutter/shell/gpu/gpu_surface_vulkan_delegate.cc
607+
FILE: ../../../flutter/shell/gpu/gpu_surface_vulkan_delegate.h
606608
FILE: ../../../flutter/shell/platform/android/AndroidManifest.xml
607609
FILE: ../../../flutter/shell/platform/android/android_context_gl.cc
608610
FILE: ../../../flutter/shell/platform/android/android_context_gl.h

ci/licenses_golden/licenses_fuchsia

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: b47a2e0b85d0f0730a965160e75f46a8
1+
Signature: 7eee75c10d5417c5bff805c87dd1183b
22

33
UNUSED LICENSES:
44

@@ -483,6 +483,7 @@ FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.audio/meta.json
483483
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.drm/meta.json
484484
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.playback/meta.json
485485
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sessions2/meta.json
486+
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sounds/meta.json
486487
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media/meta.json
487488
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.mediacodec/meta.json
488489
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.mem/meta.json
@@ -1403,6 +1404,8 @@ FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sessions2/images.fidl
14031404
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sessions2/meta.json
14041405
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sessions2/player.fidl
14051406
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sessions2/publisher.fidl
1407+
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sounds/meta.json
1408+
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sounds/sound_player.fidl
14061409
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media/audio_consumer.fidl
14071410
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media/audio_core.fidl
14081411
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media/meta.json
@@ -2177,6 +2180,7 @@ FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.audio/meta.json
21772180
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.drm/meta.json
21782181
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.playback/meta.json
21792182
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sessions2/meta.json
2183+
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media.sounds/meta.json
21802184
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.media/meta.json
21812185
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.mediacodec/meta.json
21822186
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.mem/meta.json

ci/licenses_golden/licenses_skia

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 36875dca0b44ca56ffdb6a9227249afb
1+
Signature: f8c0f0571265c025ed51b5a016fafb68
22

33
UNUSED LICENSES:
44

@@ -5610,6 +5610,7 @@ LIBRARY: skia
56105610
ORIGIN: ../../../third_party/skia/gm/3d.cpp + ../../../third_party/skia/LICENSE
56115611
TYPE: LicenseType.bsd
56125612
FILE: ../../../third_party/skia/gm/3d.cpp
5613+
FILE: ../../../third_party/skia/gm/bc1_transparency.cpp
56135614
FILE: ../../../third_party/skia/gm/bicubic.cpp
56145615
FILE: ../../../third_party/skia/gm/compressed_textures.cpp
56155616
FILE: ../../../third_party/skia/gm/exoticformats.cpp

ci/licenses_golden/licenses_third_party

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: d4172921f48473fbb848a21f0ec3b6da
1+
Signature: d5e9bd72c17a7fa0003170ac337e5223
22

33
UNUSED LICENSES:
44

@@ -7472,6 +7472,26 @@ FILE: ../../../third_party/dart/runtime/bin/ffi_test/clobber_x86.S
74727472
FILE: ../../../third_party/dart/runtime/bin/ffi_test/ffi_test_functions_helpers.S
74737473
FILE: ../../../third_party/dart/runtime/docs/compiler/images/catch-block-entry-0.png
74747474
FILE: ../../../third_party/dart/runtime/docs/compiler/images/catch-block-entry-1.png
7475+
FILE: ../../../third_party/dart/runtime/docs/images/aot-ic-dictionary.png
7476+
FILE: ../../../third_party/dart/runtime/docs/images/aot-ic-linear.png
7477+
FILE: ../../../third_party/dart/runtime/docs/images/aot-ic-monomorphic.png
7478+
FILE: ../../../third_party/dart/runtime/docs/images/aot-ic-singletarget.png
7479+
FILE: ../../../third_party/dart/runtime/docs/images/aot-ic-unlinked.png
7480+
FILE: ../../../third_party/dart/runtime/docs/images/aot.png
7481+
FILE: ../../../third_party/dart/runtime/docs/images/dart-to-kernel.png
7482+
FILE: ../../../third_party/dart/runtime/docs/images/flutter-cfe.png
7483+
FILE: ../../../third_party/dart/runtime/docs/images/images.graffle!images
7484+
FILE: ../../../third_party/dart/runtime/docs/images/inline-cache-1.png
7485+
FILE: ../../../third_party/dart/runtime/docs/images/isolates.png
7486+
FILE: ../../../third_party/dart/runtime/docs/images/kernel-loaded-1.png
7487+
FILE: ../../../third_party/dart/runtime/docs/images/kernel-loaded-2.png
7488+
FILE: ../../../third_party/dart/runtime/docs/images/kernel-service.png
7489+
FILE: ../../../third_party/dart/runtime/docs/images/optimizing-compilation.png
7490+
FILE: ../../../third_party/dart/runtime/docs/images/raw-function-lazy-compile.png
7491+
FILE: ../../../third_party/dart/runtime/docs/images/snapshot-appjit.png
7492+
FILE: ../../../third_party/dart/runtime/docs/images/snapshot-with-code.png
7493+
FILE: ../../../third_party/dart/runtime/docs/images/snapshot.png
7494+
FILE: ../../../third_party/dart/runtime/docs/images/unoptimized-compilation.png
74757495
FILE: ../../../third_party/dart/runtime/docs/infra/images/isolated-out-browser.png
74767496
FILE: ../../../third_party/dart/runtime/docs/infra/images/isolated-out-link.png
74777497
FILE: ../../../third_party/dart/runtime/observatory/lib/elements.dart
@@ -7482,6 +7502,10 @@ FILE: ../../../third_party/dart/runtime/observatory/web/favicon.ico
74827502
FILE: ../../../third_party/dart/runtime/observatory/web/index.html
74837503
FILE: ../../../third_party/dart/runtime/observatory/web/third_party/trace_viewer_full.html
74847504
FILE: ../../../third_party/dart/runtime/observatory/web/timeline.html
7505+
FILE: ../../../third_party/dart/runtime/tools/wiki/styles/style.scss
7506+
FILE: ../../../third_party/dart/runtime/tools/wiki/templates/includes/auto-refresh.html
7507+
FILE: ../../../third_party/dart/runtime/tools/wiki/templates/includes/favicon.html
7508+
FILE: ../../../third_party/dart/runtime/tools/wiki/templates/page.html
74857509
FILE: ../../../third_party/dart/samples/ffi/sqlite/docs/lib/scenario-default.svg
74867510
FILE: ../../../third_party/dart/samples/ffi/sqlite/docs/lib/scenario-full.svg
74877511
FILE: ../../../third_party/dart/sdk/lib/html/html_common/conversions_dart2js.dart
@@ -7755,6 +7779,11 @@ TYPE: LicenseType.bsd
77557779
FILE: ../../../third_party/dart/benchmarks/ListCopy/dart/ListCopy.dart
77567780
FILE: ../../../third_party/dart/benchmarks/TypedDataDuplicate/dart/TypedDataDuplicate.dart
77577781
FILE: ../../../third_party/dart/runtime/observatory/bin/heap_snapshot.dart
7782+
FILE: ../../../third_party/dart/runtime/tools/wiki/xref_extractor/bin/main.dart
7783+
FILE: ../../../third_party/dart/runtime/tools/wiki/xref_extractor/lib/cquery_driver.dart
7784+
FILE: ../../../third_party/dart/runtime/tools/wiki/xref_extractor/lib/xref_extractor.dart
7785+
FILE: ../../../third_party/dart/runtime/vm/compiler/aot/dispatch_table_generator.cc
7786+
FILE: ../../../third_party/dart/runtime/vm/compiler/aot/dispatch_table_generator.h
77587787
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/abi.cc
77597788
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/abi.h
77607789
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/call.cc
@@ -7771,6 +7800,8 @@ FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/native_representation.cc
77717800
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/native_representation.h
77727801
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/recognized_method.cc
77737802
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/recognized_method.h
7803+
FILE: ../../../third_party/dart/runtime/vm/dispatch_table.cc
7804+
FILE: ../../../third_party/dart/runtime/vm/dispatch_table.h
77747805
FILE: ../../../third_party/dart/runtime/vm/field_table.cc
77757806
FILE: ../../../third_party/dart/runtime/vm/field_table.h
77767807
FILE: ../../../third_party/dart/runtime/vm/timeline_macos.cc

common/settings.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ struct Settings {
122122
// the VM service.
123123
bool disable_service_auth_codes = true;
124124

125+
// Determine whether the vmservice should fallback to automatic port selection
126+
// after failing to bind to a specified port.
127+
bool enable_service_port_fallback = false;
128+
125129
// Font settings
126130
bool use_test_fonts = false;
127131

flow/skia_gpu_object_unittests.cc

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,10 @@ TEST_F(SkiaGpuObjectTest, ObjectDestructor) {
8888
std::shared_ptr<fml::AutoResetWaitableEvent> latch =
8989
std::make_shared<fml::AutoResetWaitableEvent>();
9090
fml::TaskQueueId dtor_task_queue_id(0);
91-
91+
auto object = sk_make_sp<TestSkObject>(latch, &dtor_task_queue_id);
9292
{
93-
auto object = sk_make_sp<TestSkObject>(latch, &dtor_task_queue_id);
94-
SkiaGPUObject<TestSkObject> sk_object(object, unref_queue());
95-
ASSERT_EQ(sk_object.get(), object);
96-
ASSERT_EQ(dtor_task_queue_id, 0);
93+
SkiaGPUObject<TestSkObject> sk_object(std::move(object), unref_queue());
94+
// Verify that the default SkiaGPUObject dtor queues and unref.
9795
}
9896

9997
latch->Wait();
@@ -106,29 +104,9 @@ TEST_F(SkiaGpuObjectTest, ObjectReset) {
106104
fml::TaskQueueId dtor_task_queue_id(0);
107105
SkiaGPUObject<TestSkObject> sk_object(
108106
sk_make_sp<TestSkObject>(latch, &dtor_task_queue_id), unref_queue());
109-
107+
// Verify that explicitly resetting the GPU object queues and unref.
110108
sk_object.reset();
111109
ASSERT_EQ(sk_object.get(), nullptr);
112-
113-
latch->Wait();
114-
ASSERT_EQ(dtor_task_queue_id, unref_task_runner()->GetTaskQueueId());
115-
}
116-
117-
TEST_F(SkiaGpuObjectTest, ObjectResetBeforeDestructor) {
118-
std::shared_ptr<fml::AutoResetWaitableEvent> latch =
119-
std::make_shared<fml::AutoResetWaitableEvent>();
120-
fml::TaskQueueId dtor_task_queue_id(0);
121-
122-
{
123-
auto object = sk_make_sp<TestSkObject>(latch, &dtor_task_queue_id);
124-
SkiaGPUObject<TestSkObject> sk_object(object, unref_queue());
125-
ASSERT_EQ(sk_object.get(), object);
126-
ASSERT_EQ(dtor_task_queue_id, 0);
127-
128-
sk_object.reset();
129-
ASSERT_EQ(sk_object.get(), nullptr);
130-
}
131-
132110
latch->Wait();
133111
ASSERT_EQ(dtor_task_queue_id, unref_task_runner()->GetTaskQueueId());
134112
}

flutter_frontend_server/lib/server.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ class _FlutterFrontendCompiler implements frontend.CompilerInterface {
7070
expression, definitions, typeDefinitions, libraryUri, klass, isStatic);
7171
}
7272

73+
Future<Null> compileExpressionToJs(
74+
String libraryUri,
75+
int line,
76+
int column,
77+
Map<String,String> jsModules,
78+
Map<String,String> jsFrameValues,
79+
String moduleName,
80+
String expression) {
81+
throw UnimplementedError('Compile expression to JS is not supported');
82+
}
83+
7384
@override
7485
void reportError(String msg) {
7586
_compiler.reportError(msg);

fml/platform/win/file_win.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static DWORD GetShareFlags(FilePermission permission) {
7676
}
7777

7878
static DWORD GetFileAttributesForUtf8Path(const char* absolute_path) {
79-
return ::GetFileAttributes(ConvertToWString(absolute_path).c_str());
79+
return ::GetFileAttributes(StringToWideString(absolute_path).c_str());
8080
}
8181

8282
static DWORD GetFileAttributesForUtf8Path(const fml::UniqueFD& base_directory,
@@ -272,7 +272,7 @@ bool IsFile(const std::string& path) {
272272
}
273273

274274
bool UnlinkDirectory(const char* path) {
275-
if (!::RemoveDirectory(ConvertToWString(path).c_str())) {
275+
if (!::RemoveDirectory(StringToWideString(path).c_str())) {
276276
FML_DLOG(ERROR) << "Could not remove directory: '" << path << "'. "
277277
<< GetLastErrorMessage();
278278
return false;
@@ -291,7 +291,7 @@ bool UnlinkDirectory(const fml::UniqueFD& base_directory, const char* path) {
291291
}
292292

293293
bool UnlinkFile(const char* path) {
294-
if (!::DeleteFile(ConvertToWString(path).c_str())) {
294+
if (!::DeleteFile(StringToWideString(path).c_str())) {
295295
FML_DLOG(ERROR) << "Could not remove file: '" << path << "'. "
296296
<< GetLastErrorMessage();
297297
return false;

fml/platform/win/native_library_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NativeLibrary::NativeLibrary(const char* path)
1616
return;
1717
}
1818

19-
handle_ = ::LoadLibrary(ConvertToWString(path).c_str());
19+
handle_ = ::LoadLibrary(StringToWideString(path).c_str());
2020
}
2121

2222
NativeLibrary::NativeLibrary(Handle handle, bool close_handle)

0 commit comments

Comments
 (0)