2373 Commits

Author SHA1 Message Date
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
Chris Bracken
36fb28ec98 Remove commented out Intel licence block (flutter/engine#3329) 2017-01-10 12:43:00 -08:00
Adam Barth
882919971d Add Size.flipped (flutter/engine#3328) 2017-01-10 10:45:38 -08:00
Adam Barth
8591ef59c8 Rename TransferMode to BlendMode (flutter/engine#3323)
Fixes https://github.com/flutter/flutter/issues/7200
2017-01-05 23:44:47 -08:00
amirh
05910fb84f Add a getter for flutterView in FlutterActivity. This allows fullscreen flutter apps to extend FlutterActivity and do custom stuff with the flutter view. (flutter/engine#3324) 2017-01-05 20:35:00 -08:00
Chinmay Garde
04d14ea433 Fix Linux builds by correctly initializing the GPURasterizer. (flutter/engine#3322)
The API was updated recently so platforms can report memory usage for the
rasterizer to display as an overlay.
2017-01-05 11:34:42 -08:00
Adam Barth
2ba424edb7 Remove Canvas.setMatrix and MaskFilter flags (flutter/engine#3321)
The Skia team says these APIs are outdated and should be removed. They
do not appear to have any clients.

Fixes https://github.com/flutter/flutter/issues/7202
Fixes https://github.com/flutter/flutter/issues/7204
2017-01-05 11:08:59 -08:00
Chinmay Garde
064a35c013 Make GN generate Xcode projects on Mac. (flutter/engine#3320) 2017-01-03 16:40:15 -08:00
Chinmay Garde
d14c8ac6f5 Re-format all GN files using gn format. (flutter/engine#3319) 2017-01-03 15:59:48 -08:00
Adam Barth
6ecdcd4612 Fix Fuchsia build (flutter/engine#3318) 2017-01-03 13:25:38 -08:00
Chinmay Garde
63fbe60fa6 Display resident memory statistics on the performance overlay. (flutter/engine#3314) 2017-01-03 12:27:30 -08:00
Michael Thomsen
b194ed3b5e Update editor recommendation (flutter/engine#3317)
Fixes https://github.com/flutter/flutter/issues/7294
2016-12-22 21:41:15 +01:00
Jason Simmons
49424e1b4f Detach the EGL surface from the GPU thread and then destroy it during the FlutterView surfaceDestroyed callback (flutter/engine#3316)
Fixes https://github.com/flutter/flutter/issues/7147
2016-12-16 15:36:33 -08:00
Benjamin Lerman
a56d9c1666 Remove obsolete usage of the fuchsia tracing macros. (flutter/engine#3311) 2016-12-14 16:08:42 +01:00
Chinmay Garde
327e5163cf Dont override the explicitly set paint bounds in Layer::Preroll. (flutter/engine#3313) 2016-12-13 17:14:25 -08:00
Collin Jackson
07b11ca18b Fix reference SkyWindow > FlutterWindow (flutter/engine#3309) 2016-12-13 08:46:16 -08:00
Ian Hickson
a326126b87 Color docs (flutter/engine#3310) 2016-12-12 23:40:04 -08:00
Jason Simmons
ba88e87175 Do not dispatch UI events if they arrive after the FlutterView has been destroyed (flutter/engine#3306)
Fixes https://github.com/flutter/flutter/issues/7234
2016-12-12 16:30:26 -08:00
Chinmay Garde
f1486c2ca0 Fix typo in README regarding --unopt builds on host. (flutter/engine#3308) 2016-12-12 16:04:57 -08:00
Collin Jackson
9a53005f50 Fix reference to nib file (flutter/engine#3307) 2016-12-12 15:57:33 -08:00
Chinmay Garde
102d5855a0 Update buildroot revision. (flutter/engine#3305) 2016-12-09 16:18:42 -08:00
Chinmay Garde
6f3487f5f6 Add option to desktop test shells to use an embedded font for consistent unit tests. (flutter/engine#3301)
* This allows the tests to add their own FLX files but still use consistent fonts.
* The test fonts are only embedded on the desktop test shells. The option is not available on mobile platforms.
* Right now, all fonts will resolve to the test font. If we want tests to be able to use the fonts they embed in FLX files but use the test font for platform fallbacks, we will need to add font selector fallbacks. I can do this in an another patch. So far, there are no users of this functionality.
2016-12-09 14:47:49 -08:00
Zachary Anderson
51a86fd1fd Use dart instead of dart_no_observatoy (flutter/engine#3304)
Now that the observatory build works in Fuchsia, use dart instead of dart_no_observatory so that dart_no_observatory can be removed from the build.
2016-12-09 09:52:48 -08:00
Chinmay Garde
3e3e694bfb Decorate kDartWriteProtectCodeArgs with FTL_ALLOW_UNUSED_TYPE since it may not be used in all configurations. (flutter/engine#3302) 2016-12-08 16:26:39 -08:00
John McCutchan
c30259f646 Disable code page write protection in debug mode (flutter/engine#3299) 2016-12-08 15:06:13 -08:00