Commit Graph

3486 Commits

Author SHA1 Message Date
Alexander Aprelev
110e6fdd1c Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884. (flutter/engine#4960)
* Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884.

Changes since last roll:

```
7764e6962e Initial API to build analysis contexts (replaces ContextLocator.locateContexts)
5ea271bb01 Clean up documentation of implicit new/const insertions tests.
cf93009caf Removed the magic const feature from implicit-creation.md
bd39320b3b Recover from error on undefined continue label.
5d89a1ac32 Add tests for mixin application constructor forwarding.
e6962790a1 Use import URIs when invalidating files
23c59bd819 Fix compare_failures
290cc58e71 Use actual receiver when error-wrapping a null-aware property get.
34763bc4c9 Reland "[VM] Introduction of type testing stubs - Part 1-4"
a86b864fa9 Handle updated .packages in incremental compiler
f555ae505a Trust type annotations in strong mode
0a4a3bed68 When cloning YieldStatement, copy the flags
91bbc798fa Skip abstract forwarding stubs
7689dc9e06 Bring in the latest pub_semver
f71d204185 Fix expected type in substByContext
5e99872770 Improve missing/invalid type reference recovery
899dbe4dae Forward type arguments in one-shot interceptors.
1fd3011f47 dart2js: Add more whole-program information to dump-info
5e23c2843d Revert "[infra] Temporarily disable Windows SDK builder on CQ"
2471888d4a Serialize any MethodInvocation as possible const.
b430570364 dart2js: handle constant casts with type variable substitutions
3575b810b3 Only add const in a constant context (issue 32819)
09f7d2aee5 dart2js: naive support for instantiations in constants - ignore the actual instantiation
4dd5e6e6ad js_runtime: fix _JsonMap keys list type
71ffe976a9 Correctly handle constant fields when computing constness (take 2)
d58b0e2d44 [VM] Mark bigint test slow after small Smi change
1e997ee6b7 Revert "Reland "[VM] Introduction of type testing stubs - Part 1-4""
00097adce0 Remove reference to deprecated setter
cb065a116f [infra] Update checked-in SDK version to 2.0.0-dev.46.0
0e9a77a360 [VM] Reduce Smi size to 32 bit on 64 bit platforms
34bfefd508 [gardening] Update status file
969c0de335 Avoid crash on EOF error in file with Windows line encoding
8054409a02 Reland "[VM] Introduction of type testing stubs - Part 1-4"
```

* Ignore freetype2 in skia since 'we use our own version'

* Update license hash
2018-04-10 14:09:08 -07:00
Jason Simmons
d7dd122a5e Avoid copying the contents of large platform message responses (flutter/engine#4947)
Assets are loaded via platform messages, and currently asset payloads are
being copied into Dart typed data buffers.  This change uses external
typed data objects that wrap the existing buffer if copying would be
expensive.

See https://github.com/flutter/flutter/issues/16291
2018-04-10 12:15:58 -07:00
egdaniel
679a670c34 Update to use new vulkan GrBackendRenderTarget ctor (part 2) (flutter/engine#4963)
This moves to the new skia ctor for vulkan GrBackendRenderTarget which doesn't take a stencil count since vulkan doesn't bind stencil and render target together like GL does with framebuffer so it is not needed.

This is the same idea as pull, https://github.com/flutter/engine/pull/4962, but the github UI was only allowing me to change one file via the online edit :(
2018-04-10 14:54:59 -04:00
Alexander Markov
753cb10ea0 Roll Dart to ef926f98f525b085e1488be8c42b1c3f0a24c50d (flutter/engine#4956) 2018-04-09 14:48:32 -07:00
Alexander Aprelev
00424d36f7 Perform exit from server, not starter as awaiting from starter causes hanging in incremental compilation scenario. (flutter/engine#4955) 2018-04-09 14:34:46 -07:00
Alexander Markov
22cda88320 Revert "Add support for measuring, combining, and getting bounds of Path objects " (flutter/engine#4954)
* Revert "Add support for measuring, combining, and getting bounds of Path objects  (#4799)"

This reverts commit db8570675d, as it broke engine build bots on Linux and Windows.
2018-04-09 14:31:30 -07:00
Alexander Markov
d98852d5a0 Revert "Roll Dart to ef926f98f525b085e1488be8c42b1c3f0a24c50d" (flutter/engine#4953)
Engine build is currently broken, so reverting Dart SDK roll for now.

* Revert "Roll Dart to ef926f98f525b085e1488be8c42b1c3f0a24c50d (#4951)"
This reverts commit 3835225235.
2018-04-09 13:46:54 -07:00
Alexander Aprelev
0f5bffce62 Return non-zero exit code when frontend reports errors. (flutter/engine#4952) 2018-04-09 13:06:59 -07:00
Alexander Markov
3835225235 Roll Dart to ef926f98f525b085e1488be8c42b1c3f0a24c50d (flutter/engine#4951) 2018-04-09 13:00:36 -07:00
Dan Field
db8570675d Add support for measuring, combining, and getting bounds of Path objects (flutter/engine#4799)
* add path measure

* fix typo

* getBound and addPathWithMatrix

* Add myself to Authors, add PathOps

* fix linting issues

* update licenses_flutter to add new files

* Use matrix4 instead of matrix3 for consistency/interop

* put pubspec back

* fix bug in getSegment

* fix typo

* Add return value for PathOp

* refactoring from review

* refactoring from review - still TBD on computeMetrics()

* add doc

* lint issue

* fix computeMetrics, add Path.from

* add missing wireup for clone

* change PathMetrics to iterable, fix bug with angle on Tangent

* prefer std::make_unique

* cleanup docs

* add path measure

* fix typo

* getBound and addPathWithMatrix

* Add myself to Authors, add PathOps

* fix linting issues

* update licenses_flutter to add new files

* Use matrix4 instead of matrix3 for consistency/interop

* put pubspec back

* fix bug in getSegment

* fix typo

* Add return value for PathOp

* refactoring from review

* refactoring from review - still TBD on computeMetrics()

* add doc

* lint issue

* fix computeMetrics, add Path.from

* add missing wireup for clone

* change PathMetrics to iterable, fix bug with angle on Tangent

* prefer std::make_unique

* cleanup docs

* fix iterator bug

* remove unnecessary clone for computeMetrics

* fix some doc issues

* fix PathMeasure iterator, extendWithPath, isClosed, and pubspec.lock

* get rid of orElse; use StateException

* StateError, not StateException

* doc improvements and nits

* add unit tests, fix bugs found during testing

* fix two uncommited doc changes

* one more

* change sign of tangent angle, update docs

* update unit tests for inverted angle

* update tangent to include vector

* Doc fixes
2018-04-09 11:45:39 -07:00
Chris Bracken
a34c18c8dc Add tool to create multi-arch iOS gen_snapshot (flutter/engine#4948)
This adds create_macos_gen_snapshot.py, which can be used to generate a
multi-architecture (x86_64, i386) gen_snapshot fat binary. The resulting
binary can then be run in the desired mode using:

/usr/bin/arch -i386 path/to/gen_snapshot
/usr/bin/arch -x86_64 path/to/gen_snapshot

When creating AOT snapshots for iOS, running as an i386 binary will
generate armv7 code, whereas running as an x86_64 binary will generate
arm64 code.

The primary user of this script is the build bot.
2018-04-06 19:21:05 -07:00
Jason Simmons
342d466567 libtxt: support for locale-specific text styles (flutter/engine#4943)
Fixes https://github.com/flutter/flutter/issues/12630
2018-04-06 11:48:03 -07:00
Chris Bracken
29effd38b1 Require armv7 in create_ios_framework.py (flutter/engine#4944)
This enforces that iOS Flutter.framework builds include arm64, armv7,
and x86_64 (simulator) architectures. This change also eliminates the
previous --device-out-dir option, which has been replaced by
--arm64-out-dir.
2018-04-05 17:43:30 -07:00
Majid Valipour
9eae92b797 Enable Image encoding by leveraging existing Skia functionality (flutter/engine#4762)
Add Image.toByeData()

Fixes flutter/flutter#11648
2018-04-05 17:26:49 -07:00
Chris Bracken
9eb4088916 Add armv7 support to create_ios_framework script (flutter/engine#4942)
This adds support for --armv7-out-dir and renames --device-out-dir to
--arm64-out-dir for clarity. It preserves --device-out-dir as a fallback
until the bot recipe has been updated to use --arm64-out-dir.
2018-04-05 14:14:34 -07:00
Jason Simmons
48193eb2ab libtxt: render fake bold text if a bold font is not available (flutter/engine#4933)
Fixes https://github.com/flutter/flutter/issues/16149
2018-04-04 14:01:21 -07:00
Chris Bracken
1a82cb0edc Set FlutterTexture copyPixelBuffer return nullable (flutter/engine#4934)
This is to support Swift users, where nil is allowed for CVPixelBufferRef.
2018-04-04 13:53:49 -07:00
Jason Simmons
abcbdb0be0 libtxt: add missing dependency for Mac/iOS builds (flutter/engine#4931) 2018-04-04 10:12:41 -07:00
Jason Simmons
414fef2430 libtxt: use Helvetica as a fallback font on iOS 8 and earlier (flutter/engine#4930)
Fixes https://github.com/flutter/flutter/issues/16055
2018-04-04 09:37:51 -07:00
Brian Osman
5c21933363 Make Rect.largest match the "largest" rect used in DefaultLayerBuilder (flutter/engine#4926) 2018-04-04 09:36:08 -04:00
Craig Stout
fb8aae52b8 [vulkan] Add VK_ERROR_NOT_PERMITTED_EXT 2018-04-03 17:49:27 -07:00
Jason Simmons
0134aeca41 Set the asset bundle path when initializing the shell in the embedder API (flutter/engine#4925)
This is required so that Dart initialization can find the platform kernel
assets when running in Dart 2 mode
2018-04-03 09:47:57 -07:00
Jason Simmons
92aab4ba64 Provide a texture registry to the compositor context used for screenshots (flutter/engine#4921)
Fixes https://github.com/flutter/flutter/issues/16143
2018-04-02 15:19:04 -07:00
Brian Osman
959fc0357a Remove use of SkRect::MakeLargest (flutter/engine#4918)
This API is being hidden for safety reasons. Instead, use a locally
defined rect that's slightly smaller (so operations don't overflow).
2018-04-02 14:36:15 -04:00
Brian Osman
2e34fd3575 Remove use of legacy Skia API (flutter/engine#4917) 2018-04-02 13:59:49 -04:00
Luigi Rosso
92cf90b20a Allow setting transform on radial gradients. (flutter/engine#4916) 2018-03-31 20:01:40 -07:00
P.Y. Laligand
28bdac9c2a [fuchsia] Look for .packages under the proper directory. (flutter/engine#4909) 2018-03-30 21:08:47 -07:00
P.Y. Laligand
0774128838 [fuchsia] Use the dart_library template instead of the build system's implementation. (flutter/engine#4908) 2018-03-30 19:27:15 -07:00
Alan Russian
17f59f4dd6 Add CallSuper annotation to onCreate(). (flutter/engine#4789)
This provides improved code inspection, making it easier for developers to figure out what might be going wrong if they override this and don't call super, like I just did. :-)
2018-03-30 19:03:49 -07:00
Jeff Brown
9e40f3e2d3 Port flutter content handler to FIDL2. (flutter/engine#4903) 2018-03-29 21:49:35 -07:00
Dan Field
151204edf5 Support Path.addCircle (flutter/engine#4783)
* add Path.addCircle

* docs formatting

* revert path.cc/path.h; remove addCircle and update docs on addOval

* add missing file.
2018-03-28 21:04:47 -07:00
xster
0739f028f4 Add hint to use ninja with goma (flutter/engine#4894) 2018-03-28 15:51:33 -07:00
Jason Simmons
f6a5a300d5 libtxt: move to the next run if the current run ends before the start of the line block (flutter/engine#4891)
Fixes https://github.com/flutter/flutter/issues/15975
2018-03-28 14:18:37 -07:00
Zachary Anderson
a3666e8280 Retry fixing vulkan include (flutter/engine#4874) 2018-03-27 10:10:45 -07:00
Ryan Macnak
485d4b795d Make flutter_test on Mac exit on error like Linux and Windows. (flutter/engine#4873) 2018-03-26 20:51:19 -07:00
Ryan Macnak
fcb00ca95b Revert "Fix vulkan include path (#4870)" (flutter/engine#4872)
Breaks Linux and Mac build bots.

This reverts commit 2321c199f0.
2018-03-26 16:56:00 -07:00
Jason Simmons
b035c5b0f6 Allow FirstFrameListeners to remove themselves from the FlutterView's list (flutter/engine#4871)
Fixes https://github.com/flutter/flutter/issues/15884
2018-03-26 15:43:38 -07:00
Zachary Anderson
2321c199f0 Fix vulkan include path (flutter/engine#4870) 2018-03-26 14:05:25 -07:00
Stanislav Baranov
05943ceb68 Support for decimal and signed numeric keyboard (flutter/engine#4853)
* Support for decimal and signed numeric keyboard

* Comments
2018-03-26 13:14:38 -07:00
Yegor
ee3f5ece99 CONTRIBUTING.md: explain the need for building host with non-host (flutter/engine#4863)
* CONTRIBUTING.md: explain the need for building host with non-host

* address comments

* locally-built
2018-03-23 17:50:52 -07:00
Brian Salomon
caccc81f4d Remove declaration for undefined GPUSurfaceGL::SelectPixelConfig (flutter/engine#4857) 2018-03-23 12:38:58 -04:00
Brian Salomon
828875524a Vulkan swap chain setup no longer uses GrPixelConfig and doesn't include from skia/src (flutter/engine#4856) 2018-03-23 12:38:41 -04:00
Ian Hickson
f8f2558835 Document Window.defaultRouteName a little better. (flutter/engine#4851) 2018-03-22 15:55:59 -07:00
Jason Simmons
58277dcd62 Fix GPUSurfaceGL includes on Linux (flutter/engine#4849) 2018-03-22 11:40:29 -07:00
Ian Hickson
c8d191401f Slightly improve the docs for the internal _futurize method (flutter/engine#4847) 2018-03-22 10:52:50 -07:00
Chris Bracken
6eb10b4841 Fix supported color type check on iOS simulators (flutter/engine#4846)
Since OS_MACOSX and OS_IOS are both enabled for simulator builds, ensure
we're using constants conistent with our #includes.
2018-03-21 19:31:24 -07:00
Chris Bracken
9dcf4907f6 Fix GPUSurfaceGL includes on macOS (flutter/engine#4844)
macOS doesn't include GLES support.
2018-03-21 16:45:41 -07:00
Chris Bracken
9f169ccfbb Handle Apple-specific GLES headers (flutter/engine#4843)
In 2bd16b8a3b, includes were added for
GLES. On macOS/iOS, these headers are named slightly differently.
2018-03-21 16:16:04 -07:00
Brian Salomon
2bd16b8a3b VulkanSurface and GPUSurfaceGL no longer use GrPixelConfig (flutter/engine#4814)
* VulkanSurface and GPUSurfaceGL no longer use GrPixelConfig

* fix 565

* fix gpu_surface_gl changes
2018-03-21 14:13:05 -07:00
Sarah Zakarias
18fe5d7dec Provide asset lookup key on ios (flutter/engine#4817) 2018-03-21 11:36:49 +01:00