420 Commits

Author SHA1 Message Date
Jonah Williams
56bad48ab2
expose bold text flag in accessibility features for iOS (#6072) 2018-08-28 12:38:54 -07:00
liyuqian
e26643faf8
Rename clipMode to clipBehavior in compositing.dart (#6053)
This is a follow up of https://github.com/flutter/engine/pull/5853
2018-08-20 12:56:30 -07:00
Siva
d90223fadf
Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9 (#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
7e0bb3bbe8
Allow freezing a texture. (#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
3cbb5e2067
Persist DartCallbackCache contents across launches (#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
a5215ce500
Add hasImplicitScrolling SemanticFlag and support in Android bridge (#5941) 2018-08-06 13:57:00 -07:00
Petr Hosek
c6baaaf75a
Replace acquire+release thread annotation with excludes (#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
3b66f20d96
Don't drop MotionEvents with unknown tool type. (#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
33b412313e
Fix sundry Fuchsia build issues after the tonic/fxl migration. (#5920) 2018-08-01 13:29:45 -07:00
Jonah Williams
dcd2956f88
Initial support for more finely-grained a11y features on Window (#5901) 2018-07-31 18:18:19 -07:00
Jonah Williams
236d633a49
Add word movement granularities to android (#5902) 2018-07-30 17:53:17 -07:00
Stanislav Baranov
244d7a2cde
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
9f8285ac6c
Remove all dependencies on Garnet. (#5869) 2018-07-26 12:49:34 -07:00
liyuqian
1d1c8c7b56
Rename clip to clipBehavior in compositing.dart (#5868)
The is a follow up of https://github.com/flutter/engine/pull/5853
2018-07-25 15:39:01 -07:00
Jonah Williams
d559afb320
Support customizing standard accessibility actions on Android. (#5823) 2018-07-25 15:26:02 -07:00
Chinmay Garde
336c23f846
Remove //flutter/glue and use FML directly. (#5862) 2018-07-25 13:20:48 -07:00
liyuqian
f50e218d99
Rename clip mode to clip behavior (#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
0bad812c72
Migrate to a standalone Tonic repository separated from Topaz (#5817) 2018-07-23 11:49:35 -07:00
liyuqian
e555ea573e
Remove trailing white spaces (#5734)
* Remove trailing white spaces

* Fix clang-format
2018-07-20 13:47:55 -07:00
Jonah Williams
96f5f5b96c
Semantics framework updates (#5601) 2018-07-20 11:17:59 -07:00
Jonah Williams
2e57ecd38f
Revert rollback of "add assistiveTechnologyEnabled to window" (#5750) 2018-07-16 09:04:20 -07:00
Jonah Williams
9af920ef22 Revert "Add assistiveTechnologyEnabled flag to window" (#5746)
Reverts flutter/engine#5740
2018-07-13 15:55:49 -07:00
Jonah Williams
9ece2752aa
Add assistiveTechnologyEnabled flag to window (#5740) 2018-07-13 13:47:31 -07:00
liyuqian
e1cf837a20
Add ClipMode to ClipPath/ClipRRect and PhysicalShape layers (#5647)
For flutter/flutter#18057
2018-07-13 12:38:16 -07:00
Jonah Williams
3eb8c04efc
fix typo in interop code (#5743) 2018-07-13 12:37:42 -07:00
Ben Konyi
672e587e74
Background Execution Implementation for iOS (#5539) 2018-07-13 10:55:24 -07:00
Jason Simmons
500f91bc49
Return a failure exit code in flutter_tester if an uncaught error occurs in a microtask (#5736) 2018-07-13 09:44:22 -07:00
Jason Simmons
75802deb89
Retain the original image's color type when encoding in raw unmodified format (#5735) 2018-07-12 17:12:21 -07:00
Jason Simmons
fc780527fe
Convert lazy SkImages to raster images when extracting pixel data (#5713)
Fixes https://github.com/flutter/flutter/issues/19214
2018-07-11 12:33:36 -07:00
Jonah Williams
48d6e1f891
Custom accessibility (local context) action support for iOS and Android. (#5597) 2018-07-11 10:27:50 -07:00
liyuqian
958d2cfc58
Remove trailing white spaces (#5708)
So our future pull requests won't be polluted by the white space changes.
2018-07-10 14:26:14 -07:00
liyuqian
3b6dedb865
Add anti-alias switch to canvas clip calls (#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
21c7d6a5da
Revert "Add antiAlias and saveCount to clipPath and restore (#5638)" (#5660)
This reverts commit a2bf80590b80a797659193a2d7b320fda0f21ea2.

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
a2bf80590b
Add antiAlias and saveCount to clipPath and restore (#5638)
This would enable us to solve https://github.com/flutter/flutter/issues/18057
2018-06-29 16:24:12 -07:00
Chris Bracken
1340970bab
Assert in place of ArgumentError for null checks (#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
e18f239037
Purge the Skia font cache after deleting an engine's FontCollection (#5598)
See https://github.com/flutter/flutter/issues/18728
2018-06-25 13:23:46 -07:00
Taryn
49838532d8 Fix Colors.fromARGB docs to mention the fromRGBO constructor (#5604) 2018-06-24 14:18:22 -07:00
bungeman
f9998a07bd Change ports/SkFontMgr.h to core/SkFontMgr.h (#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
74ea64e912
Add a rowBytes parameter to decodeImageFromPixels (#5573)
See https://github.com/flutter/flutter/issues/9184
2018-06-21 18:05:54 -07:00
Ryan Macnak
fe9dd64d70
Replace AssetResolver GetAsBuffer with GetAsMapping. (#5546)
Toward no-copy loading of kernel.
2018-06-19 14:24:19 -07:00
Chinmay Garde
a7fda2b48c
Use SkImageFilter::MakeMatrixFilter instead of importing an internal Skia header. (#5569)
Part of fixing https://bugs.chromium.org/p/skia/issues/detail?id=7741
2018-06-19 13:26:06 -07:00
Jason Simmons
28e9e0f268
Create images from uncompressed pixel data (#5550)
Fixes https://github.com/flutter/flutter/issues/9184
2018-06-18 11:37:47 -07:00
Andrew Wilson
525dc18891
Make window metrics doubles to reduce rounding issues. (#5556) 2018-06-18 10:36:58 -07:00
Andrew Wilson
f5f57536d0 Revert "Make window metrics doubles to reduce rounding issues."
This reverts commit 15b76dd33c9844cb8a8de169f945ec1663c6f3ea.
2018-06-18 09:47:37 -07:00
Andrew Wilson
15b76dd33c Make window metrics doubles to reduce rounding issues. 2018-06-18 09:43:30 -07:00
Chinmay Garde
93c47a14ff
On snapshot, perform a device to host transfer for images resident on the GPU. (#5538) 2018-06-14 18:04:13 -07:00
Jason Simmons
c3c40cf958
Lazily load fonts that are embedded within the application (#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
efd6663344
Maintain a FontCollection for each engine instance instead of a process-wide singleton (#5521) 2018-06-13 14:28:21 -07:00
Ben Konyi
8d8d91bfc3
IsolateNameServer reland (#5519)
* Reland "Added IsolateNameServer functionality (#5410)"

This reverts commit c3976b3c7183f479717bffed3f640fb92afbd3dc.

* 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
Ben Konyi
c3976b3c71
Revert "Added IsolateNameServer functionality (#5410)" (#5516)
This reverts commit 61a2d129cfc8c52cf1ff59b03bccf67d9b07af63.
2018-06-12 17:03:13 -07:00