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

Commit 6bd80bb

Browse files
committed
Merge remote-tracking branch 'upstream/master' into image_wrap
2 parents 31d47de + ddd3d01 commit 6bd80bb

File tree

68 files changed

+1599
-685
lines changed

Some content is hidden

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

68 files changed

+1599
-685
lines changed

DEPS

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ 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': 'c21dc07a78b914dd9d992f2d66b38187e7126a72',
29+
'skia_revision': 'a38945abe337019886f3b6bdcac4a7e3060870c2',
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': '2cec6af2652ff859979987f568d18193df48163e',
37+
'dart_revision': '2b8d00ac48e7b0b9b72e227db844256fbb87d11b',
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
4141
'dart_args_tag': '1.6.0',
4242
'dart_boringssl_gen_rev': '429ccb1877f7987a6f3988228bc2440e61293499',
4343
'dart_boringssl_rev': '4dfd5af70191b068aebe567b8e29ce108cee85ce',
44-
'dart_collection_rev': '583693680fc067e34ca5b72503df25e8b80579f9',
44+
'dart_collection_rev': '65d3e58ee5289528ec280d361a67a631d65b3d7f',
4545
'dart_dart_style_tag': '1.3.7',
4646
'dart_http_retry_tag': '0.1.1',
4747
'dart_http_throttle_tag': '1.0.2',
4848
'dart_intl_tag': '0.16.1',
49-
'dart_linter_tag': '0.1.118',
49+
'dart_linter_tag': '0.1.119',
5050
'dart_oauth2_tag': '1.6.0',
5151
'dart_protobuf_rev': '3746c8fd3f2b0147623a8e3db89c3ff4330de760',
5252
'dart_pub_rev': '04e237f78b2302d7f20d0b362554425e8deb8add',
@@ -163,7 +163,7 @@ deps = {
163163
Var('dart_git') + '/args.git' + '@' + Var('dart_args_tag'),
164164

165165
'src/third_party/dart/third_party/pkg/async':
166-
Var('dart_git') + '/async.git@128c461a97dbdbd9336ba000ba5a5c02e79b8651',
166+
Var('dart_git') + '/async.git@3fedad22c6940650526a86adebbf2872b81c2805',
167167

168168
'src/third_party/dart/third_party/pkg/bazel_worker':
169169
Var('dart_git') + '/bazel_worker.git@26680d5e249b249c7216ab2fed0ac8ed4ee285c5',
@@ -232,7 +232,7 @@ deps = {
232232
Var('dart_git') + '/linter.git' + '@' + Var('dart_linter_tag'),
233233

234234
'src/third_party/dart/third_party/pkg/logging':
235-
Var('dart_git') + '/logging.git@9561ba016ae607747ae69b846c0e10958ca58ed4',
235+
Var('dart_git') + '/logging.git@1590ba0b648a51e7eb3895c612e4b72f72623b6f',
236236

237237
'src/third_party/dart/third_party/pkg/markdown':
238238
Var('dart_git') + '/markdown.git@dbeafd47759e7dd0a167602153bb9c49fb5e5fe7',
@@ -349,7 +349,7 @@ deps = {
349349
Var('dart_git') + '/package_config.git@9c586d04bd26fef01215fd10e7ab96a3050cfa64',
350350

351351
'src/third_party/dart/tools/sdks':
352-
{'packages': [{'version': 'version:2.10.0-79.0.dev', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
352+
{'packages': [{'version': 'version:2.10.0-110.3.beta', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
353353

354354
# WARNING: end of dart dependencies list that is cleaned up automatically - see create_updated_flutter_deps.py.
355355

@@ -516,7 +516,7 @@ deps = {
516516
'packages': [
517517
{
518518
'package': 'fuchsia/sdk/core/mac-amd64',
519-
'version': '2nHpC_AEOz0oVODsc65QrKSPY3VEdG9FzHhu03zq-tgC'
519+
'version': 'WcbX470pSuGWDXDCGAzGWK5nuDCs450msAwPRfAuTGgC'
520520
}
521521
],
522522
'condition': 'host_os == "mac"',
@@ -536,7 +536,7 @@ deps = {
536536
'packages': [
537537
{
538538
'package': 'fuchsia/sdk/core/linux-amd64',
539-
'version': 'Qi0ptKLxNLDkuSKwxaoe5tmmCdfzPZxB4S5D6IQnmDEC'
539+
'version': 'VgNGzw-DQgPmqPjzWLF0pcdQXGYdpmBH79JRE3QZbJcC'
540540
}
541541
],
542542
'condition': 'host_os == "linux"',

ci/licenses_golden/licenses_flutter

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ FILE: ../../../flutter/assets/directory_asset_bundle.cc
1919
FILE: ../../../flutter/assets/directory_asset_bundle.h
2020
FILE: ../../../flutter/benchmarking/benchmarking.cc
2121
FILE: ../../../flutter/benchmarking/benchmarking.h
22+
FILE: ../../../flutter/common/constants.h
2223
FILE: ../../../flutter/common/exported_symbols.sym
2324
FILE: ../../../flutter/common/settings.cc
2425
FILE: ../../../flutter/common/settings.h

ci/licenses_golden/licenses_fuchsia

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 6f2a79790cea306db4e190ec0d3a6ee7
1+
Signature: 33483771ca357eaef16a9db67567a89a
22

33
UNUSED LICENSES:
44

@@ -1285,7 +1285,6 @@ FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.cobalt/meta.json
12851285
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.component.runner/meta.json
12861286
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.component/meta.json
12871287
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.data/meta.json
1288-
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.deprecatedtimezone/deprecated_time_service.fidl
12891288
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.deprecatedtimezone/deprecated_time_zone.fidl
12901289
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.deprecatedtimezone/meta.json
12911290
FILE: ../../../fuchsia/sdk/linux/fidl/fuchsia.developer.tiles/meta.json

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: ab6bb712b55598c93bd4290fbef36706
1+
Signature: ae2f29e80f26d815ca253c2e9ec1ba3b
22

33
UNUSED LICENSES:
44

ci/licenses_golden/licenses_third_party

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 3efa8608e94837e1d3aef3cd39f58189
1+
Signature: f58a32a9b7d49316c9500bc956653761
22

33
UNUSED LICENSES:
44

@@ -8105,6 +8105,7 @@ FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/native_type.cc
81058105
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/native_type.h
81068106
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/recognized_method.cc
81078107
FILE: ../../../third_party/dart/runtime/vm/compiler/ffi/recognized_method.h
8108+
FILE: ../../../third_party/dart/runtime/vm/compiler/frontend/kernel_binary_flowgraph_test.cc
81088109
FILE: ../../../third_party/dart/runtime/vm/compiler/stub_code_compiler.cc
81098110
FILE: ../../../third_party/dart/runtime/vm/compiler/write_barrier_elimination.cc
81108111
FILE: ../../../third_party/dart/runtime/vm/compiler/write_barrier_elimination.h

common/constants.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
namespace flutter {
6+
constexpr double kMegaByteSizeInBytes = (1 << 20);
7+
} // namespace flutter

flow/compositor_context.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ enum class RasterStatus {
4545
// only used when thread configuration change occurs.
4646
kEnqueuePipeline,
4747
// Failed to rasterize the frame.
48-
kFailed
48+
kFailed,
49+
// Layer tree was discarded due to LayerTreeDiscardCallback
50+
kDiscarded
4951
};
5052

5153
class CompositorContext {

flow/raster_cache.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <vector>
88

9+
#include "flutter/common/constants.h"
910
#include "flutter/flow/layers/layer.h"
1011
#include "flutter/flow/paint_utils.h"
1112
#include "flutter/fml/logging.h"
@@ -298,12 +299,11 @@ void RasterCache::SetCheckboardCacheImages(bool checkerboard) {
298299

299300
void RasterCache::TraceStatsToTimeline() const {
300301
#if !FLUTTER_RELEASE
301-
constexpr double kMegaBytes = (1 << 20);
302302
FML_TRACE_COUNTER("flutter", "RasterCache", reinterpret_cast<int64_t>(this),
303303
"LayerCount", layer_cache_.size(), "LayerMBytes",
304-
EstimateLayerCacheByteSize() / kMegaBytes, "PictureCount",
305-
picture_cache_.size(), "PictureMBytes",
306-
EstimatePictureCacheByteSize() / kMegaBytes);
304+
EstimateLayerCacheByteSize() / kMegaByteSizeInBytes,
305+
"PictureCount", picture_cache_.size(), "PictureMBytes",
306+
EstimatePictureCacheByteSize() / kMegaByteSizeInBytes);
307307

308308
#endif // !FLUTTER_RELEASE
309309
}

lib/web_ui/lib/src/engine/canvaskit/canvaskit_api.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,7 @@ class SkPictureRecorder {
13061306
/// "borrowed", i.e. their memory is managed by other objects. In the case of
13071307
/// [SkCanvas] it is managed by [SkPictureRecorder].
13081308
@JS()
1309+
@anonymous
13091310
class SkCanvas {
13101311
external void clear(Float32List color);
13111312
external void clipPath(
@@ -1444,11 +1445,13 @@ class SkCanvas {
14441445
}
14451446

14461447
@JS()
1448+
@anonymous
14471449
class SkCanvasSaveLayerWithoutBoundsOverload {
14481450
external void saveLayer(SkPaint paint);
14491451
}
14501452

14511453
@JS()
1454+
@anonymous
14521455
class SkCanvasSaveLayerWithFilterOverload {
14531456
external void saveLayer(
14541457
SkPaint? paint,
@@ -1465,6 +1468,7 @@ class SkPicture {
14651468
}
14661469

14671470
@JS()
1471+
@anonymous
14681472
class SkParagraphBuilderNamespace {
14691473
external SkParagraphBuilder Make(
14701474
SkParagraphStyle paragraphStyle,
@@ -1490,6 +1494,7 @@ class SkParagraphBuilder {
14901494
}
14911495

14921496
@JS()
1497+
@anonymous
14931498
class SkParagraphStyle {}
14941499

14951500
@JS()

lib/web_ui/lib/src/engine/canvaskit/image.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ class CkAnimatedImage implements ui.Image {
100100
final ByteData data = bytes.buffer.asByteData(0, bytes.length);
101101
return Future<ByteData>.value(data);
102102
}
103+
104+
@override
105+
String toString() => '[$width\u00D7$height]';
103106
}
104107

105108
/// A [ui.Image] backed by an `SkImage` from Skia.
@@ -154,6 +157,9 @@ class CkImage implements ui.Image {
154157
final ByteData data = bytes.buffer.asByteData(0, bytes.length);
155158
return Future<ByteData>.value(data);
156159
}
160+
161+
@override
162+
String toString() => '[$width\u00D7$height]';
157163
}
158164

159165
/// A [Codec] that wraps an `SkAnimatedImage`.

0 commit comments

Comments
 (0)