473 Commits

Author SHA1 Message Date
Jonah Williams
cce79157ff expose bold text flag in accessibility features for iOS (flutter/engine#6072) 2018-08-28 12:38:54 -07:00
liyuqian
3766540e1e Rename clipMode to clipBehavior in compositing.dart (flutter/engine#6053)
This is a follow up of https://github.com/flutter/engine/pull/5853
2018-08-20 12:56:30 -07:00
Siva
1890290fdb Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9 (flutter/engine#5985)
* Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9

This rolls includes the following changes :

1be785ae2d Clean up some dead code
7b9fb893d2 [vm] Add a service method for 'invoke' as the dual to 'eval'.
099f1504fa Mention -O flag in CHANGELOG
79f69abace [vm/compiler] breakage fix: add missing break
96a1e9985f Fix the pkg bot
7818db20a7 Add analysis hint for invalid use of @visibleForTemplate code.
71d96019d1 [vm/compiler] Introduce 64-bit NEGATE - all archs.
5013a2ccc4 Remove spurious line.
ef2f777625 Mark some analyzer tests as being flaky
cf560fe17b Fix a couple of the tests failing on the analyzer with fasta parser bot
63c11693e6 [gardening] Fix language_2/type_variable_promotion_test.
d0f28884ff [VM] Fix expression evaluation implementation: Never register temporary/unused classes with the system.
e2a1807fc2 [gardening] Update status for io/compile_all_test in PRODUCT AOT mode
f7ff739448 Insert date of 2.0.0 release in Changelog
bcabad6014 [vm] Fix SIMARM64 build on Windows.
af02ccae83 [infra] Fix filesets for new vm-kernel-precomp builders
8e2f28e264 Update homebrew to drop the @2 tab and fix for 2.0
ba119d7292 [VM] Remove "$compiler == precompiler" sections from language_2_precompiler.status
f3a2c0e28f [release] Prepare changelog for 2.1.0-dev.0.0
88cba7d860 [vm/kernel/bytecode] Fix arguments descriptor for List._fromLiteral call in bytecode
bd45ec0c4b [vm, gc] Refactor PageSpace::CollectGarbage to ensure the safepoint and task count remain well-scoped even with early exits.
8195fd8c64 Repair dart2js/string_interpolation_test
a0b335ac6c Try no implicit casts in pkg/analyzer_cli.
3d25d3761b Update pub - leave packages directories alone
327db5e9ab [vm] Fix kernel_isolate use_field_guard flag for kbc
a1ca88f554 Resolve invocation arguments to parameters.

* Address source format error.
2018-08-09 16:24:16 -07:00
amirh
9d38d63147 Allow freezing a texture. (flutter/engine#5938)
This is needed to avoid jank when resizing an embedded Android view.
See
https://github.com/flutter/flutter/issues/19572#issuecomment-410400724
2018-08-07 14:43:19 -07:00
Ben Konyi
10e272f154 Persist DartCallbackCache contents across launches (flutter/engine#5947)
* Updated DartCallbackCache to write callback cache to disk which is
restored on engine startup
* Ensure cache isn't moved off disk in iOS
2018-08-07 14:37:19 -07:00
Jonah Williams
9d5862edbb Add hasImplicitScrolling SemanticFlag and support in Android bridge (flutter/engine#5941) 2018-08-06 13:57:00 -07:00
Petr Hosek
438316f98d Replace acquire+release thread annotation with excludes (flutter/engine#5944)
The behavior of acquire+release annotation handling has changed in
https://reviews.llvm.org/D49355 which breaks the build with the new
Clang. However, as has been pointed out, the acquire+release isn't
the right way to prevent double locking as the annotations negate
each other; the correct way is to use excludes or negative requires.
Using excludes annotations also requires using std::lock_guard instead
of std::unique_lock because the latter doesn't have the thread
annotations due to deferred locking which is not needed in Flutter and
so std::lock_guard is a sufficient alternative.
2018-08-05 18:25:43 -07:00
amirh
c5dfa3a45c Don't drop MotionEvents with unknown tool type. (flutter/engine#5931)
Instead, send them with the new unknown PointerDeviceKind.

We hit this when running `adb shell input tap` in tests which sends events with
an unknown tool type.

This also fills in a missing conversion for TOOL_TYPE_ERASER.
2018-08-02 16:05:55 -07:00
Chinmay Garde
3e5e79b737 Fix sundry Fuchsia build issues after the tonic/fxl migration. (flutter/engine#5920) 2018-08-01 13:29:45 -07:00
Jonah Williams
3a3f6ca0ee Initial support for more finely-grained a11y features on Window (flutter/engine#5901) 2018-07-31 18:18:19 -07:00
Jonah Williams
7fe563529c Add word movement granularities to android (flutter/engine#5902) 2018-07-30 17:53:17 -07:00
Stanislav Baranov
caf14ff364 Fix compilation trace memory management problem
This fixes issue with compilation trace buffer getting released upon return from VM code to Dart code, before it gets change to save to a file in natives.dart saveCompilationTrace().
2018-07-26 16:08:12 -07:00
Chinmay Garde
6ab2c166fd Remove all dependencies on Garnet. (flutter/engine#5869) 2018-07-26 12:49:34 -07:00
liyuqian
9ff7e1a350 Rename clip to clipBehavior in compositing.dart (flutter/engine#5868)
The is a follow up of https://github.com/flutter/engine/pull/5853
2018-07-25 15:39:01 -07:00
Jonah Williams
4cf4ffab2e Support customizing standard accessibility actions on Android. (flutter/engine#5823) 2018-07-25 15:26:02 -07:00
Chinmay Garde
62289623fc Remove //flutter/glue and use FML directly. (flutter/engine#5862) 2018-07-25 13:20:48 -07:00
liyuqian
2c526e8068 Rename clip mode to clip behavior (flutter/engine#5853)
* Rename clip mode to clip behavior

So we're consistent across flutter/flutter and flutter/engine

* Clang format
2018-07-25 09:57:10 -07:00
Jason Simmons
ebbdba1aea Migrate to a standalone Tonic repository separated from Topaz (flutter/engine#5817) 2018-07-23 11:49:35 -07:00
liyuqian
f48703bb9b Remove trailing white spaces (flutter/engine#5734)
* Remove trailing white spaces

* Fix clang-format
2018-07-20 13:47:55 -07:00
Jonah Williams
6526a25097 Semantics framework updates (flutter/engine#5601) 2018-07-20 11:17:59 -07:00
Jonah Williams
c8516387e2 Revert rollback of "add assistiveTechnologyEnabled to window" (flutter/engine#5750) 2018-07-16 09:04:20 -07:00
Jonah Williams
b07e9faa35 Revert "Add assistiveTechnologyEnabled flag to window" (flutter/engine#5746)
Reverts flutter/engine#5740
2018-07-13 15:55:49 -07:00
Jonah Williams
71e01bf548 Add assistiveTechnologyEnabled flag to window (flutter/engine#5740) 2018-07-13 13:47:31 -07:00
liyuqian
9f3465f4c3 Add ClipMode to ClipPath/ClipRRect and PhysicalShape layers (flutter/engine#5647)
For flutter/flutter#18057
2018-07-13 12:38:16 -07:00
Jonah Williams
982f46d00b fix typo in interop code (flutter/engine#5743) 2018-07-13 12:37:42 -07:00
Ben Konyi
9cec23702e Background Execution Implementation for iOS (flutter/engine#5539) 2018-07-13 10:55:24 -07:00
Jason Simmons
436c78278a Return a failure exit code in flutter_tester if an uncaught error occurs in a microtask (flutter/engine#5736) 2018-07-13 09:44:22 -07:00
Jason Simmons
d8bd42fbb3 Retain the original image's color type when encoding in raw unmodified format (flutter/engine#5735) 2018-07-12 17:12:21 -07:00
Jason Simmons
4a8d1fcafb Convert lazy SkImages to raster images when extracting pixel data (flutter/engine#5713)
Fixes https://github.com/flutter/flutter/issues/19214
2018-07-11 12:33:36 -07:00
Jonah Williams
5bf14b1e4d Custom accessibility (local context) action support for iOS and Android. (flutter/engine#5597) 2018-07-11 10:27:50 -07:00
liyuqian
605252cad0 Remove trailing white spaces (flutter/engine#5708)
So our future pull requests won't be polluted by the white space changes.
2018-07-10 14:26:14 -07:00
liyuqian
886c0120b2 Add anti-alias switch to canvas clip calls (flutter/engine#5670)
This is a reland of #5638. We removed the restoreToCount, made doAntiAlias named, and updated the comments.
2018-07-09 16:25:04 -07:00
liyuqian
8e45851a3c Revert "Add antiAlias and saveCount to clipPath and restore (#5638)" (flutter/engine#5660)
This reverts commit dfa02e5881f31bd75736d3b7bc2a21dc954d5c84.

Reason for revert: need to fix several things including the framework test in order to unblock the engine roll.

TBR: @matthew-carroll
2018-07-02 16:55:24 -07:00
liyuqian
dfa02e5881 Add antiAlias and saveCount to clipPath and restore (flutter/engine#5638)
This would enable us to solve https://github.com/flutter/flutter/issues/18057
2018-06-29 16:24:12 -07:00
Chris Bracken
0b939b3cf1 Assert in place of ArgumentError for null checks (flutter/engine#5612)
For consistency with the rest of dart:ui, check required parameters with
assert(param != null) rather than throwing ArgumentError. ArgumentError
is typically reserved for checking the validity of non-null args -- e.g.
that a list has the required number of elements.
2018-06-25 16:33:33 -07:00
Jason Simmons
ae15662103 Purge the Skia font cache after deleting an engine's FontCollection (flutter/engine#5598)
See https://github.com/flutter/flutter/issues/18728
2018-06-25 13:23:46 -07:00
Taryn
640d8eba0f Fix Colors.fromARGB docs to mention the fromRGBO constructor (flutter/engine#5604) 2018-06-24 14:18:22 -07:00
bungeman
cfac654e9c Change ports/SkFontMgr.h to core/SkFontMgr.h (flutter/engine#5593)
Skia is moving ports/SkFontMgr.h to core/SkFontMgr.h. The existing
ports/SkFontMgr.h is now just a forwarding header to keep users working
through the transition. Update includes to point to the new location.
2018-06-22 11:04:58 -04:00
Jason Simmons
3ba597336a Add a rowBytes parameter to decodeImageFromPixels (flutter/engine#5573)
See https://github.com/flutter/flutter/issues/9184
2018-06-21 18:05:54 -07:00
Ryan Macnak
e8df7055bc Replace AssetResolver GetAsBuffer with GetAsMapping. (flutter/engine#5546)
Toward no-copy loading of kernel.
2018-06-19 14:24:19 -07:00
Chinmay Garde
ac0d77e6ab Use SkImageFilter::MakeMatrixFilter instead of importing an internal Skia header. (flutter/engine#5569)
Part of fixing https://bugs.chromium.org/p/skia/issues/detail?id=7741
2018-06-19 13:26:06 -07:00
Alexander Aprelev
ed3090321a Roll dart sdk to 4c9689c1d2da97d0aa25cf16cc90c2e463ad157f (flutter/engine#5559)
* Roll dart sdk to 4c9689c1d2da97d0aa25cf16cc90c2e463ad157f

Changes since last roll:
```
4c9689c1d2 [vm] Support pluggable expression compiler for `evaluate` service api call.
d70c38eed8 [Gardening] Mark test as flaky on also non-kernel (legacy)
060ee6769e Make CastStreamSubscription.onData handle a null callback
f7289aa219 Remove specification of naming conventions.
87131780cb Add appendix to spec which specifies JavaScript integer behavior.
dfeaf79cef Fix VM accepting too many overlarge hex numbers in int.parse.
c84a9f46b2 Recompute ClassHierarchy after adding noSuchMethod forwarding stubs
b558a9c2f4 Handle missing compile-time errors
3df126c497 [gardening] Update status for vm-kernel-linux-debug
e22706793d Treat objects with .call as "subtypes" of function types
b960e5a3ed [gardening] Mark standalone_2/io/directory_test as Crash on dartkp/debug
e2d72aad91 Prepare tools/bots/try_benchmarks.sh for Dart 2.
de5f9ea95f Add --use-fasta-parser flags to dartanalyzer and the analysis server.
e2d903c4dc Remove packages/ directory resolution from CFE
aabb78f56a Update checked-in SDK to 2.0.0-dev.63.0 on mac and linux.
bc8d77231d Improve flags documentation, reenable hints in dart2js.
209a602769 Tweak for fixes tests - use orElse to avoid exception.
0e4c158847 Issue 33458. Suggest 'Create Class' Quick Fix for creation without new.
44650cc9eb Pass the location of vm_platform to compile_platform from the commandline.
0bac650833 switch to dart_action until prebuilt Windows Dart VM is updated
82ed18cdb9 Update checked-in Windows SDK to 2.0.0-dev.63.0
2394097e44 Support for including/excluding the same path in ContextRoot.isAnalyzed().
f59389b688 Optimize .runtimeType impact based on usage
ee1f7f5a93 Fix newly reported warnings
afa8ff6292 Add a resource provider that supports file overlays
a63cf8e0cb Add --no-preview-dart-2 flag.
2a396d5315 [vm/intrinsics] Intrinsify 64-bit int typed data.
dd8988c9b2 - Moved all WebGL rendering/drawing constants to synthesized class WebGL. - Removed obsolete Dartium/_blink code.
541dd195bb Enable creating full kernel files in addition to outlines from the bazel worker for kernel.
8e9e8e1da0 Fix various bugs and regularize behavior of returns statements in various kinds of functions.
f1d1da6164 [vm/precomp] Reduce the size of slow-path code in precompiled mode.
b51d3d4146 Key string should be avoided
1e906c3f7e Add no-op entry point for IncrementalCompiler
aeeb7baa96 Change error message to not use imperative tone
309baedc72 Mark some frequently flaky co19 dart2js tests.
1a08341730 Analyzer status file update
ac039abc83 Add option to check if a dill is self-contained
f479435bca - Removed custom handling of fill - it was wrong the method is now overloaded. - Associate the JS class SpeechSyntesisVoice with the correct Dart class (DDC). - Top-level querySelectorAll wasn't generic. - Handle "static" for attributes in the IDLs.
d2a37231b3 optimize await in async* methods in dartdevc
8f0106e490 Update more Analyzer fasta tests
53c2a6f9d5 Cleanup remaining unescape string call sites
1ef4399df0 Run dartfmt --fix for dart2 on pkg/dev_compiler
38eda19be6 Fix resolve_input_uri_test on windows.
5bf6436bc9 Initial implementations of two generators
03bcc495f7 [fuchsia] Migrate process creation to fdio_spawn_vmo
0cf860f361 Remove pub_build_validity test
c015e8d303 Improve invalid string literal error recovery
84f077842b Update CHANGELOG.md for 2.0.0-dev.63 release
7757fa784a [vm] Remove redundant Profiler::DumpStackTrace().
2bc9025be3 Consider initializing formals during top-level type inference
9df6426adb Mark the library analyzer.dart as being deprecated
bd956620fe Remove code that is causing a couple of hints
d99aeb3e13 [kernel] Update Fuchsia suspend to use new API.
6f44d3f208 Issue 2287. Move all, but constructors and fields set in constructors, from StatelessWidget into State.
729e9942bd Support multiple files in messages test.
99575f79ca Split ContextAwareGenerator and its subclasses
41a8b79475 Use the inferred type of const lists/maps to for constant evaluation.
2972ca61f8 Fix continue in invalidation logic
c54a302495 [VM] Evaluate symbols in kernel2kernel constant evaluator in AOT (even in non-const contexts)
4a7ccd5c9a Deleted TODO comment in Scoping
8dca855de1 Specify dynamic type of Futures/... returned from async/... functions
385d825469 Make frontend_server initialize from dill work again
2716b6f9a6 Add test to frontend_server that mimics the flutter benchmarks
17d2839a03 Fixed tests for FF difference.
6779ea0cc6 GN rules: add libraries_specification_uri argument to the  compile_platform template.
12b33ada44 [VM interpreter] Support NativeCall kernel bytecode.
db72134f90 [vm/inliner] Add smi return type of clamped convertors.
33feee3b03 [vm/kernel/bytecode] Fix arguments passing in native factory constructors
c30ce41ae6 Add hook to use single-root in fasta scripts and make use of it when creating the dart2js platform files.
34ee27a52d Update to the latest pub
bfb9a4eab8 linter 0.1.53
dfe6385eb0 Fix a Dart 2 runtime cast failure
f7ef66f5b0 Issue 33412. Fix for race condition in knownFiles during search.
aca417a256 Fix test and expected failure.
664f756914 [vm] Reduce maximum new generation size and growth rate.
bd603ba3c6 Record dependencies via CompilerContext
```
2018-06-18 20:56:50 -07:00
Jason Simmons
2c651a9de5 Create images from uncompressed pixel data (flutter/engine#5550)
Fixes https://github.com/flutter/flutter/issues/9184
2018-06-18 11:37:47 -07:00
Andrew Wilson
f03c5ed766 Make window metrics doubles to reduce rounding issues. (flutter/engine#5556) 2018-06-18 10:36:58 -07:00
Andrew Wilson
504172abbe Revert "Make window metrics doubles to reduce rounding issues."
This reverts commit 564095bca0cb6ec993d94b4561ca2733851243d3.
2018-06-18 09:47:37 -07:00
Andrew Wilson
564095bca0 Make window metrics doubles to reduce rounding issues. 2018-06-18 09:43:30 -07:00
Chinmay Garde
87576b3405 On snapshot, perform a device to host transfer for images resident on the GPU. (flutter/engine#5538) 2018-06-14 18:04:13 -07:00
Jason Simmons
97cf68d6c8 Lazily load fonts that are embedded within the application (flutter/engine#5533)
Previously the engine would load all embedded fonts listed in the app's
font manifest during startup.  This change creates a Skia font manager that
is backed by the engine's AssetManager and can load embedded font assets
on demand.
2018-06-14 16:13:56 -07:00
Jason Simmons
3877686f88 Maintain a FontCollection for each engine instance instead of a process-wide singleton (flutter/engine#5521) 2018-06-13 14:28:21 -07:00
Ben Konyi
a3b839a0bf IsolateNameServer reland (flutter/engine#5519)
* Reland "Added IsolateNameServer functionality (#5410)"

This reverts commit 1598c7ad7b830b298647c17a0c85f3648f6b737d.

* Fixed issue with isolate_name_server_test which caused test to timeout

* Disabled thread_annotations on Android as they aren't supported in the
NDK headers for std::mutex. Readded thread annotations to
IsolateNameServer.
2018-06-13 11:57:10 -07:00