30246 Commits

Author SHA1 Message Date
Jason Simmons
339ee9d8ea Adapt the physical model layer for Fuchsia (flutter/engine#3441) 2017-02-23 16:27:33 -08:00
Chinmay Garde
53b2940c6d Remove rarely used GLConnection stuff in flow. (flutter/engine#3440)
I had added this initially as a means of making it easier to deal with OpenGL directly in Flow. However, we are moving away from dealing with the client rendering APIs directly. Instead, delegating everything to Skia. Besides, we only ever used this to log the GPU description in case of context setup failures. This has not proved to be useful so far. Also, having this in place is making it difficult to remove all dependencies on GL in Shell.
2017-02-23 16:02:53 -08:00
Roozbeh Pournader
6308ea4c4b Add exception for Bulgarian to mk_hyb_file
The Bulgarian hyphenation patterns contain a line consisting of '0ь0'
which has no practical effect on hyphenation. Add an exception in
roundtrip testing to make sure we don't fail while comparing our tables
with the input data.

Test: make -j works and creates .hyb files for bg and cu
Change-Id: Ia46b8a45fe522f5194d8105d31b34b0e27528cc9
2017-02-22 18:48:18 -08:00
Chinmay Garde
0110abf008 Allow plugging in a software backend for rendering in the shell. (flutter/engine#3404) 2017-02-22 15:40:23 -08:00
Seigo Nonaka
3fcf3634db Call hb_font_set_variation if font variations are provided.
Test: None
Change-Id: I203d9ba7e1a1fcfdb10cd6a711d9a35136cbddd6
2017-02-22 10:56:04 +09:00
Dan Rubel
92767a3d58 modify RunFrom<X> methods to return error code rather than call exit (flutter/engine#3428) 2017-02-21 11:31:27 -05:00
Jason Simmons
3e7ecdc1e7 Physical model layer that can draw shadows for a Material widget (flutter/engine#3424) 2017-02-16 17:30:57 -08:00
Chinmay Garde
7e31feadc0 Remove texture image. (flutter/engine#3434) 2017-02-16 16:26:02 -08:00
Chinmay Garde
b22362be89 Update skia to 1c8e82b72bfeb1a02297688cf082c365b62705f7 (flutter/engine#3433) 2017-02-16 15:40:11 -08:00
Ryan Macnak
f03daa15b9 Roll Dart to 1ed4c27c01de6680766593b88a531ef86883a117. (flutter/engine#3431) 2017-02-16 13:26:31 -08:00
Dan Rubel
011f142515 add kernel support (flutter/engine#3369) 2017-02-16 10:11:38 -05:00
Jason Simmons
ed07f34bce Transfer ownership of the buffer in the image decoder bitmap fallback path (flutter/engine#3426)
Previously we had passed a local generator to flow::BitmapImageCreate /
SkImage::MakeFromGenerator, which takes ownership of the generator.
That generator in turn referenced an SkData backed by a local vector.
The result was an SkImage backed by a deleted buffer.
2017-02-15 15:37:39 -08:00
Seigo Nonaka
480ad4a314 Pass region code to HarfBuzz.
Keep the region code and pass it to HarfBuzz during doing layout.

Test: minikin_tests
Bug: 30746293
Change-Id: I7c908701ca677238f663c82c597f8615d190e055
2017-02-15 20:29:38 +09:00
xster
ffc4165cd5 Fix multi-font ttc rendering for iOS (flutter/engine#3418)
Merged iOS and Android font fallback mechanisms and push font discovery logic into skia
2017-02-14 23:54:39 -08:00
mattsarett
f8f53719d6 Use SkImage::makeShader() in place of bitmap workaround (flutter/engine#3419) 2017-02-14 14:35:12 -08:00
Roozbeh Pournader
30b9f327d3 Add U+202F NARROW NO-BREAK SPACE to the sticky white list
Mongolian fonts need to shape across U+202F NARROW NO-BREAK SPACE
(NNBSP). But if the first font in the fallback chain supports NNBSP,
it would break Mongolian shaping since the text would be broken into
three font runs. By making NNBSP sticky, we make sure Mongolian text
is kept in one font run and is shaped properly.

See http://www.unicode.org/L2/L2017/17036-mongolian-suffix.pdf for
background. The proposed character in the proposal was not accepted
for encoding by the Unicode Techincal Committee, but the document
explains in more detail why this change in needed.

Bug: 34344220
Test: manual
Change-Id: I344a63f383fa5485875603570025eac3c4eb2574
2017-02-14 21:29:18 +00:00
Chinmay Garde
9dfad95808 Use updated calls to SkColorSpace in flutter/vulkan. (flutter/engine#3416) 2017-02-13 18:23:32 -08:00
Ryan Macnak
5b4dae1428 Roll Dart VM to 9a7a04525f638b57a746706c3575df66cf02bc2d. (flutter/engine#3413)
Picks up changes to include inlined frames and line numbers in AOT stack traces.
2017-02-13 13:34:12 -08:00
Chinmay Garde
42d77d6159 Revert ShadowMaskFilter use and roll Skia to 246a3c269d8dc91a47ff27f7b71508bf9e74edf5. (flutter/engine#3409) 2017-02-10 16:01:36 -08:00
xster
3f70cb283a Add instructions for debugging engine with xcode (flutter/engine#3411) 2017-02-10 13:56:02 -08:00
Jason Simmons
0444f3a280 Enable some new Dart VM features (flutter/engine#3408)
Fixes https://github.com/flutter/flutter/issues/7579
2017-02-10 12:28:41 -08:00
xster
cceefabcb1 Add CONTRIBUTING instructions for simulator (flutter/engine#3407) 2017-02-09 23:06:11 -08:00
Zachary Anderson
daa9b6bba8 Properly return VM service assets on Fuchsia. (flutter/engine#3406)
In a previous change I re-included the observatory assets in the Fuchsia build, but didn't notice this bit here.

After this, if Settings::enable_observatory can be set to true somehow, the Observatory will come up in Flutter apps on Fuchsia. Unfortunately, I'm not sure how to do that.
2017-02-09 15:18:35 -08:00
xster
04d16b0303 Document the need to sync the engine repo to avoid #8005 (flutter/engine#3403)
* Document the need to sync the engine repo to avoid #8005

* Flit gclient sync and git pull
2017-02-09 12:08:37 -08:00
Jason Simmons
f3d22aaf83 Export the Skia ShadowMaskFilter API (flutter/engine#3401)
See https://github.com/flutter/flutter/issues/6807
2017-02-09 10:25:33 -08:00
Hans Muller
cea17ccb97 Added a point about Point&Size to the Rect dartdoc (flutter/engine#3405) 2017-02-09 09:27:27 -08:00
xster
1d95ca0ba0 Some tweaks to the contributing doc (flutter/engine#3402) 2017-02-08 18:29:11 -08:00
TreeHugger Robot
44c14c81d1 Merge "Introduce unittests for flag sequence." 2017-02-08 17:00:39 +00:00
Seigo Nonaka
655d2a760d Introduce unittests for flag sequence.
The Flag sequence is well handled by latest ICU.
Just add unit tests for catching regression in future.

Test: ran minikin_tests
Change-Id: I78d5461de8ff4d002ca06fb5bb81fcd7bc45d95e
2017-02-09 00:10:35 +09:00
Collin Jackson
e5a90fea32 Call the correct super method in FlutterViewController’s viewDidAppear (flutter/engine#3399) 2017-02-08 06:43:45 -08:00
Chris Bracken
e85df21b83 Switch iOS keyboard type if required (flutter/engine#3400)
Ensure that the text input keyboard is reloaded if the view keyboardType
changes.
2017-02-07 18:01:19 -08:00
Chinmay Garde
ea582e5d36 Allow running in debug product mode with checked mode off. (flutter/engine#3398) 2017-02-07 17:01:27 -08:00
Chinmay Garde
eaf7f58f19 Bump up limits on the GrResourceCache used for the main GrContext. (flutter/engine#3394) 2017-02-07 16:04:06 -08:00
Jason Simmons
5a34ef2553 Obtain test font attributes from the font description (flutter/engine#3396)
Fixes https://github.com/flutter/flutter/issues/7724
2017-02-07 15:36:17 -08:00
Seigo Nonaka
3c71c47a6a Update the instruction to run tests.
"adb sync data" pushes test data as well as test executables.

Test: ran minikin_perftests
Test: ran minikin_tests
Change-Id: I08219f8abc4b59bd26d8f9155975b65b56a88b7b
2017-02-07 15:52:25 +09:00
Chris Bracken
9c12e3dbd4 Add missing keys from Framework Info.plist (flutter/engine#3393)
Added:
* UIRequiredDeviceCapabilities=[arm64]
* MinimumOSVersion=8.0
2017-02-06 14:51:37 -08:00
Jason Simmons
2212f03547 Script for running javadoc on the Flutter Android libraries (flutter/engine#3392) 2017-02-06 12:41:54 -08:00
Jason Simmons
ad76524c95 Fix some Javadoc warnings (flutter/engine#3391) 2017-02-03 16:25:25 -08:00
Jason Simmons
c963fee632 Remove ParagraphStyle.lineCount, which has been superseded by maxLines (flutter/engine#3390)
Fixes https://github.com/flutter/flutter/issues/7723
2017-02-03 13:49:10 -08:00
Jason Simmons
8259f0a8bb Return the expected exit code if sky_shell sees a compilation error during script loading (flutter/engine#3389) 2017-02-03 12:14:35 -08:00
Chris Bracken
45df428f8e Support status bar taps in FlutterAppDelegate (flutter/engine#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
b9779778e3 Set Platform.executable and executableArguments for Linux sky_shell (flutter/engine#3378) 2017-02-02 12:28:52 -08:00
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
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
Seigo Nonaka
77a29ed5ec Introduce createCollectionWithVariation.
This is 2nd attempt of I08e9b74192f8af1d045f1276498fa4e60d73863e.
The original CL was reverted due to conflicting with another CL submitted
before.

Here is the original commit message of reverted change.

This lays the groundwork for variation settings support.
Since we should regard different variations of a font as different fonts, we
need to create new typefaces. To reuse the same instance of MinikinFont, as
much as possible, FontFamily::createFamilyWithVariation now reuses an
existence instance, while incrementing the reference count.

Test: minikin_tests
Bug: 33062398
Change-Id: Ib25bf1bb5a5191e15a6523954146521464c91906
2017-01-31 13:19:56 +09:00