7602 Commits

Author SHA1 Message Date
Chinmay Garde
0904cf3e2d Bump up limits on the GrResourceCache used for the main GrContext. (#3394) 2017-02-07 16:04:06 -08:00
Jason Simmons
d49a6b110b Obtain test font attributes from the font description (#3396)
Fixes https://github.com/flutter/flutter/issues/7724
2017-02-07 15:36:17 -08:00
Chris Bracken
cbf49d0652 Add missing keys from Framework Info.plist (#3393)
Added:
* UIRequiredDeviceCapabilities=[arm64]
* MinimumOSVersion=8.0
2017-02-06 14:51:37 -08:00
Jason Simmons
cdf46381d4 Script for running javadoc on the Flutter Android libraries (#3392) 2017-02-06 12:41:54 -08:00
Jason Simmons
2466d31edf Fix some Javadoc warnings (#3391) 2017-02-03 16:25:25 -08:00
Jason Simmons
cd34b0ef39 Remove ParagraphStyle.lineCount, which has been superseded by maxLines (#3390)
Fixes https://github.com/flutter/flutter/issues/7723
2017-02-03 13:49:10 -08:00
Jason Simmons
d317fb3b9d Return the expected exit code if sky_shell sees a compilation error during script loading (#3389) 2017-02-03 12:14:35 -08:00
Chris Bracken
c354127d4d Support status bar taps in FlutterAppDelegate (#3387)
Provide a default status bar tap handler for FlutterAppDelegate.
By default, taps are passed to the key window's rootViewController if
it's a FlutterViewController. Apps with custom app delegates can
customize this behaviour to send the tap to the FlutterViewController(s)
they prefer by overriding touchesBegan:withEvent.
2017-02-02 16:29:22 -08:00
Jason Simmons
c1524787df Set Platform.executable and executableArguments for Linux sky_shell (#3378) 2017-02-02 12:28:52 -08:00
Michael Goderbauer
b8d144dab8 Roll Dart SDK to a7eb2f45c3a0ed935c049bae805fe76ecdd95a22 (#3386) 2017-02-01 19:32:49 -08:00
Chinmay Garde
cd19497b3b Fix breaking build after formats reorder in #3384 (#3385) 2017-02-01 15:01:16 -08:00
Chinmay Garde
dd45346928 [Vulkan] Try a desired list of surface formats before picking one at random. (#3384) 2017-02-01 14:54:10 -08:00
Chinmay Garde
01afda49b1 [iOS] Ensure FlutterMain is called before interacting with the engine in any way. (#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
20bdd2f458 Roll Dart (#3382) 2017-02-01 11:31:16 -08:00
Michael Goderbauer
4da9d87cf1 Roll Dart SDK to 9994a0b44fce95e2012fabdea8d364cc71352e18 (#3381) 2017-01-31 23:39:33 -08:00
Jason Simmons
2c5f028ddd Fix a race in PlatformView construction (#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
2d54edf0f9 Support scroll to top on iOS statusbar touches (#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
25791da8ab [iOS] Make FlutterInit redundant and deprecate the same. (#3377) 2017-01-31 12:56:55 -08:00
Michael Goderbauer
e5c05a8964 Option to compile gen_snapshot.exe on Windows to target android. (#3379) 2017-01-31 12:55:21 -08:00
Chinmay Garde
0c3e6ff414 Account for vk.GetPhysicalDeviceSurfaceCapabilitiesKHR returning invalid extents. (#3376) 2017-01-30 16:27:00 -08:00
Jason Simmons
d92d4c1b03 Script that runs engine unit tests and Dart tests of engine APIs (#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
701943281b Roll Buildroot (#3374) 2017-01-27 15:36:30 -08:00
Jason Simmons
2870077584 Roll tonic (#3373) 2017-01-27 13:43:19 -08:00
Jason Simmons
8e7d68f823 Return an exit code from sky_shell representing what kind of error occurred (#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
9de4d1530b Deprecate FlutterAppDelegate (#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
2986418cf4 Make the diagnostic "listening on" message consistent with observatory's (#3370) 2017-01-26 15:51:34 -08:00
Chinmay Garde
d45638fc2b [content_handler] Make RuntimeHolder convey its viewport metrics to the direct input instance. (#3367) 2017-01-26 14:36:30 -08:00
Chinmay Garde
a042f57550 On Fuchsia with Vulkan on Acer, bypass Mozart and read input directly. (#3366) 2017-01-26 14:00:57 -08:00
Jason Simmons
fe9fb6803e Do not double delete the test font data stream (#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
fb69728f33 Roll Dart SDK to ed00447138f95ea4ba612509a244ca8205735372 (#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 275ffdcef80ffb85f4be62b9e8d1b17b5c0fdacf.

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
8fea842f02 Add a flag to sky_shell that keeps the process alive after the Dart script completes (#3363) 2017-01-25 12:06:23 -08:00
Chinmay Garde
1afa280c86 Use threads with configurable stack sizes in the content handler. (#3356) 2017-01-25 11:33:38 -08:00
Chris Bracken
0854b95aba Apply iOS status bar padding only to fullscreen views (#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
275ffdcef8 Snapshots: Don't use an empty array where a NULL array is expected. (#3361)
Fixes dart-lang/sdk#28504
2017-01-24 18:26:21 -08:00
Jason Simmons
1210a2e7e1 Roll FTL (#3360) 2017-01-24 17:49:55 -08:00
Ian Hickson
82eaffd42f Improve documentation for the winding rule API and rename 'winding' to 'nonZero'. (#3359) 2017-01-24 17:01:58 -08:00
Jason Simmons
fdcd65eedd Exit the non-interactive sky_shell on Linux when the Dart script has completed (#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
16b2964f5c Handle double-height status bar on iOS (#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
0206d20dab Make gen_snapshot compile on Windows (#3355) 2017-01-23 14:12:26 -08:00
Ryan Macnak
adef37080f Adapt to refactoring of snapshot APIs in the Dart VM. (#3354)
Adapt to refactoring of snapshot APIs in the Dart VM.
2017-01-23 12:09:59 -08:00
Chris Bracken
858e401c4d Roll Dart SDK to b43da048c31a16b9993de1536406ed014ef73ffd (#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
ab3fef5e7d Add MultiLicense license class (#3349)
Add MultiLicense license class
2017-01-20 16:25:04 -08:00
Jason Simmons
d9cc317771 Add flags for disabling the diagnostic server or setting its port (#3352)
Fixes https://github.com/flutter/flutter/issues/7557
2017-01-20 15:18:13 -08:00
Chinmay Garde
94306f4103 Add a Vulkan backend for Fuchsia and Android. (#3282) 2017-01-20 14:37:10 -08:00
Chris Bracken
dd106ae8e0 Add .packages to .gitignore (#3350)
Generated by pub in tools/licenses for license aggregation.
2017-01-20 13:40:45 -08:00
Michael Goderbauer
93fce94482 Expose justify TextAlign option (#3348)
fixes flutter/flutter#6865
2017-01-19 15:07:42 -08:00
Chris Bracken
596b3e971c Trim off BoringSSL header boilerplate (#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
5406903208 Add OpenSSL as supported licence type (#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
d394e8a9bf Clear the GPU thread's EGL context only after the GPUSurfaceGL has been destroyed (#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
2efc78cc24 Stop processing multiline text after maxLines. (#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