2397 Commits

Author SHA1 Message Date
Chinmay Garde
78ef0ab0b6 Fix breaking build after formats reorder in #3384 (flutter/engine#3385) 2017-02-01 15:01:16 -08:00
Chinmay Garde
e6e3d4c3b6 [Vulkan] Try a desired list of surface formats before picking one at random. (flutter/engine#3384) 2017-02-01 14:54:10 -08:00
Chinmay Garde
cfa2e89fba [iOS] Ensure FlutterMain is called before interacting with the engine in any way. (flutter/engine#3383)
* [iOS] Ensure FlutterMain is called before interacting with the engine in any way.

* Licenses
2017-02-01 13:53:15 -08:00
Jason Simmons
a2da5d57ec Roll Dart (flutter/engine#3382) 2017-02-01 11:31:16 -08:00
Michael Goderbauer
9f5be95bff Roll Dart SDK to 9994a0b44fce95e2012fabdea8d364cc71352e18 (flutter/engine#3381) 2017-01-31 23:39:33 -08:00
Jason Simmons
23a36caa6f Fix a race in PlatformView construction (flutter/engine#3380)
The PlatformView superclass constructor was posting a task to the UI thread
that adds the view to the shell's global list.  This could result in UI thread
operations seeing PlatformView instances that are not fully constructed and do
not yet have an engine.

This was happening in https://github.com/flutter/flutter/issues/7735
2017-01-31 17:54:34 -08:00
Chris Bracken
21f38d7a48 Support scroll to top on iOS statusbar touches (flutter/engine#3375)
On iOS, when a tap is detected in the status bar, provide a means to
pass that touch event through to one or more FlutterViewControllers to
trigger a scroll to top. In iOS apps, scroll to top should occur under
the following conditions:

1. There is one and only one UIScrollView visible with
   scrollsToTop == YES.
2. The status-bar is in standard height mode, not in double-height mode.
   In double-height mode, the expected behaviour is to trigger a switch
   to the application associated with the double-height status bar.
3. A tap or a drag gesture occurs that is entirely constrained to the
   status bar frame. (We currently only handle the tap scenario).

Unfortunately, AppDelegates only get touchesBegan events for status bar
taps, though get get touchesBegan and touchesEnded events for drags
within the status bar frame. As such, we currently synthesise the
touchesEnded event for taps.
2017-01-31 13:42:58 -08:00
Chinmay Garde
ea73356841 [iOS] Make FlutterInit redundant and deprecate the same. (flutter/engine#3377) 2017-01-31 12:56:55 -08:00
Michael Goderbauer
9ca3d938f7 Option to compile gen_snapshot.exe on Windows to target android. (flutter/engine#3379) 2017-01-31 12:55:21 -08:00
Chinmay Garde
d0128e48f6 Account for vk.GetPhysicalDeviceSurfaceCapabilitiesKHR returning invalid extents. (flutter/engine#3376) 2017-01-30 16:27:00 -08:00
Jason Simmons
97b9a9d039 Script that runs engine unit tests and Dart tests of engine APIs (flutter/engine#3372)
The Dart tests were migrated from the flutter/test/engine suite in the
framework repository
2017-01-30 10:52:44 -08:00
Jason Simmons
83f620747e Roll Buildroot (flutter/engine#3374) 2017-01-27 15:36:30 -08:00
Jason Simmons
9bc4c597f5 Roll tonic (flutter/engine#3373) 2017-01-27 13:43:19 -08:00
Jason Simmons
cf7899dde4 Return an exit code from sky_shell representing what kind of error occurred (flutter/engine#3368)
This is intended to match the exit codes returned by the Dart command line tool
2017-01-27 09:59:08 -08:00
Chris Bracken
122ff8528c Deprecate FlutterAppDelegate (flutter/engine#3371)
All samples and the 'flutter create' command now use a project-specifc
app delegate.

Any projects that still rely on FlutterAppDelegate should create an
empty delegate that subclasses UIResponder<UIApplicationDelegate> and
defines:
  @property (strong, nonatomic) UIWindow *window;
2017-01-26 18:20:26 -08:00
Ian Hickson
ee825ea5d7 Make the diagnostic "listening on" message consistent with observatory's (flutter/engine#3370) 2017-01-26 15:51:34 -08:00
Jason Simmons
29872224ed Do not double delete the test font data stream (flutter/engine#3365)
SkTypeface::MakeFromStream takes ownership of the passed SkStreamAsset*

Fixes https://github.com/flutter/flutter/issues/7657
2017-01-26 12:08:18 -08:00
Chris Bracken
7db0cd44c3 Roll Dart SDK to ed00447138f95ea4ba612509a244ca8205735372 (flutter/engine#3364)
* Roll Dart SDK to ed00447138f95ea4ba612509a244ca8205735372

Make the VM happy with a spurious instruction snapshot.

* Revert "Snapshots: Don't use an empty array where a NULL array is expected. (#3361)"

This reverts commit c3c478ec699bba863bd422292277bb984f506d1a.

Broke iOS simulator builds; should no longer be necessary after rolling
the Dart SDK to ed00447138f95ea4ba612509a244ca8205735372.

On iOS simulator builds, we were seeing DartLookupSymbolInLibrary return
a pointer to a address of the snapshot data rather than the address of
the snapshot buffer itself. On simulator builds we don't build the
snapshot data into a buffer in app.dylib (kDartVmSnapshotData) but link
it statically into the engine itself.
2017-01-25 19:08:33 -08:00
Jason Simmons
15df8436d1 Add a flag to sky_shell that keeps the process alive after the Dart script completes (flutter/engine#3363) 2017-01-25 12:06:23 -08:00
Chris Bracken
2caf40dade Apply iOS status bar padding only to fullscreen views (flutter/engine#3362)
* Apply iOS status bar padding only to fullscreen views

Previously padding was applied to account for the status bar, whether in
standard or expanded 'in-call' geometry only if the current view was not
a subview of a containing view. This didn't cover the case of root views
embedded in other windows (e.g. dialogs).

We also ensure that the window is fullscreen to account for cases like
small dialogs centred on the screen.

* Do not apply padding if we're a subview in a containing view
2017-01-25 01:35:55 -08:00
Ryan Macnak
c3c478ec69 Snapshots: Don't use an empty array where a NULL array is expected. (flutter/engine#3361)
Fixes dart-lang/sdk#28504
2017-01-24 18:26:21 -08:00
Jason Simmons
de44f803ae Roll FTL (flutter/engine#3360) 2017-01-24 17:49:55 -08:00
Ian Hickson
09fc14cd43 Improve documentation for the winding rule API and rename 'winding' to 'nonZero'. (flutter/engine#3359) 2017-01-24 17:01:58 -08:00
Jason Simmons
4c32d9a960 Exit the non-interactive sky_shell on Linux when the Dart script has completed (flutter/engine#3358)
The script will be finished when the microtask queue has been drained and
Dart_HasLivePorts is returning false for the main isolate
2017-01-24 15:39:30 -08:00
Chris Bracken
5f5db63df3 Handle double-height status bar on iOS (flutter/engine#3357)
* Handle double-height status bar on iOS

In certain cases, iOS displays a double-height status bar (e.g., when an
application is using device location or while in a call). In such cases,
iOS offsets the app view origin by 20px, reduces view height by 20px,
then overlays a 40px opaque status bar: 20px covering the newly opened
20px gap at the top of the screen, 20px covering the top 20px of the
view, which had previously been under the standard-sized status bar.

Flutter previously set top padding to the height of the status bar,
which resulted in 40px padding with a double-sized status bar. However,
the padding should match the portion of the status bar overlapping the
view, which is 20px.

Note that the final case is the one in which no status bar is shown and
padding should be zero.

* Only apply status bar padding on root views
2017-01-24 10:30:36 -08:00
Michael Goderbauer
42c2625950 Make gen_snapshot compile on Windows (flutter/engine#3355) 2017-01-23 14:12:26 -08:00
Ryan Macnak
023ebac36d Adapt to refactoring of snapshot APIs in the Dart VM. (flutter/engine#3354)
Adapt to refactoring of snapshot APIs in the Dart VM.
2017-01-23 12:09:59 -08:00
Chris Bracken
66402283dc Roll Dart SDK to b43da048c31a16b9993de1536406ed014ef73ffd (flutter/engine#3353)
* Roll Dart SDK to b43da048c31a16b9993de1536406ed014ef73ffd

* Update licenses.golden for Dart SDK

* Update LICENSE for sky_engine
2017-01-20 19:55:26 -08:00
Chris Bracken
f4e4480874 Add MultiLicense license class (flutter/engine#3349)
Add MultiLicense license class
2017-01-20 16:25:04 -08:00
Jason Simmons
4c92ea1506 Add flags for disabling the diagnostic server or setting its port (flutter/engine#3352)
Fixes https://github.com/flutter/flutter/issues/7557
2017-01-20 15:18:13 -08:00
Chinmay Garde
26fe5e1b12 Add a Vulkan backend for Fuchsia and Android. (flutter/engine#3282) 2017-01-20 14:37:10 -08:00
Chris Bracken
159ee84387 Add .packages to .gitignore (flutter/engine#3350)
Generated by pub in tools/licenses for license aggregation.
2017-01-20 13:40:45 -08:00
Michael Goderbauer
4a6fe23300 Expose justify TextAlign option (flutter/engine#3348)
fixes flutter/flutter#6865
2017-01-19 15:07:42 -08:00
Chris Bracken
5e8b20a826 Trim off BoringSSL header boilerplate (flutter/engine#3347)
The first 23 lines of the BoringSSL license contain informational text
including Buganizer issue numbers that is not part of the license text
itself.
2017-01-19 14:06:00 -08:00
Chris Bracken
7f9239124d Add OpenSSL as supported licence type (flutter/engine#3345)
* Add OpenSSL as supported licence type

Adds special handling for the OpenSSL licensed files under BoringSSL.
Specifically, some of the ARM assembly files in the latest Dart SDK are
dual-licensed with OpenSSL.

* Support blocks that ref by type with no copyright

The upcoming Dart SDK includes files (e.g., sha256-armv4.S) with a block
that specifies teh code is dual-licenced under OpenSSL, but doesn't
include a copyright date of its own.
2017-01-18 17:38:43 -08:00
Jason Simmons
e5a2958d0a Clear the GPU thread's EGL context only after the GPUSurfaceGL has been destroyed (flutter/engine#3346)
The GPUSurfaceGL holds references to Skia objects that may own GL objects.
If the GL objects are destructed on the GPU thread after the EGL context has been
dropped, then the GL delete calls will not take effect.
2017-01-18 17:19:50 -08:00
Matt Perry
97184fe85d Stop processing multiline text after maxLines. (flutter/engine#3342)
Added a Paragraph.didExceedMaxLines property to query when this occurs.

Needed for https://github.com/flutter/flutter/issues/7271
2017-01-18 10:53:24 -05:00
Jason Simmons
30e0f97176 Do not pass negative selection indexes to InputConnection.setSelection (flutter/engine#3344)
This was causing exceptions on Jellybean
2017-01-17 17:43:24 -08:00
Chris Bracken
8c9a77dca7 Search full license root subtree in search by type (flutter/engine#3343)
Previously, search by license type only searched the contents of the
chain of direct ancestor subdirectories. This change broadens the search
to the full subtree of the current license root when no license is found
in the chain of direct ancestor directories.
2017-01-17 15:57:19 -08:00
Jason Simmons
f383a1d444 Apply window insets using an older API on pre-Lollipop systems (flutter/engine#3340)
Fixes https://github.com/flutter/flutter/issues/6586
2017-01-17 15:36:47 -08:00
Chris Bracken
17842845cb Add @ character to set of supported comment chars (flutter/engine#3341)
Used in ARM assembly in BoringSSL after Dart SDK SHA
c1f00f786a87c36374f31818e6acf86ed1065e44.
2017-01-17 14:45:11 -08:00
Matt Perry
bdc3efa0cc Add support for a maxLines property on Paragraph. (flutter/engine#3338)
Also fix 'ellipsis' overflow handling to work for multiline text.

Fixes https://github.com/flutter/flutter/issues/7271
2017-01-17 13:55:43 -05:00
Jason Simmons
c42a2edc20 Check if the canvas bounds rect contains infinite or NaN values (flutter/engine#3339)
See https://github.com/flutter/flutter/issues/7431
2017-01-13 17:08:24 -08:00
Chris Bracken
76a1339755 Extract more uses of the indent regex (flutter/engine#3337)
In cd79979fb, we extracted a regular expression matching licence
indentation. This patch extracts two more instances.
2017-01-13 15:31:05 -08:00
Jason Simmons
633c3e25db An API for setting the tag for Flutter log messages on Android (flutter/engine#3335)
Fixes https://github.com/flutter/flutter/issues/7226
2017-01-12 15:47:18 -08:00
Chinmay Garde
a0e4467f4d iOS: Ensure that task observers for VSync callbacks are not bypassed in VSyncWaiterIOS. (flutter/engine#3334) 2017-01-11 14:58:06 -08:00
Chris Bracken
75e13ba661 Roll Dart SDK to 3a422bceb76d6155cab0c728b68f2badad8ff0e9 (flutter/engine#3333)
* Roll Dart SDK to 3a422bceb76d6155cab0c728b68f2badad8ff0e9

* Update licences.golden for latest Dart SDK
2017-01-11 14:01:41 -08:00
Chris Bracken
5952e3664d Fix exception message formatting (flutter/engine#3332)
Add a couple missing newlines.
2017-01-10 17:28:04 -08:00
Chris Bracken
cd79979fbf Extract common indent constant (flutter/engine#3331) 2017-01-10 13:52:40 -08:00
Chris Bracken
8eb3c38e09 Ignore VERSION_MACOSX_[SN]DK in licence aggregator (flutter/engine#3330)
Not shipped to clients.
2017-01-10 12:43:16 -08:00