20087 Commits

Author SHA1 Message Date
TreeHugger Robot
8dd05e83c4 Merge "Remove sample directory" 2017-03-06 23:47:55 +00:00
Chinmay Garde
be5d971aa7 Use software rendering on iOS simulators without needing a flag. (#3465) 2017-03-06 14:49:25 -08:00
Roozbeh Pournader
66da9e9fab Remove sample directory
Since there are no known users of Minikin outside Android yet, these
files are simply a maintenance burden with no actual benefit.
Removing the samples until there are potential external users.

Test: Not needed
Change-Id: If7f1fb775cae427fbe31b86c202d1380c701bf28
2017-03-06 14:05:23 -08:00
Michael Goderbauer
6a00eee9f3 whitespace fix (#3463) 2017-03-06 13:14:56 -08:00
Mikkel Nygaard Ravn
f9c1f5fa53 Remove usage of JDK7 features not available until Android SDK 19+ (#3462) 2017-03-06 13:22:29 +01:00
Michael Goderbauer
1bd1f0e25b Roll Dart to 890dff146ac4733018c059b36bc4d67c45da3232 (#3461)
* Roll Dart to 890dff146ac4733018c059b36bc4d67c45da3232

* uddate licenses
2017-03-03 19:30:13 -08:00
vardhan-cr
a87e0a10aa Flutter content handler initializes ICU data when it starts up (#3460)
* Flutter content handler initializes ICU data when it starts up

* oops, redundant include

* init ICU before getting the font provider
2017-03-03 16:29:58 -08:00
Roozbeh Pournader
c7ef4000c1 Correct hyphenation for various complex cases
This adds better support for Arabic script languages, Armenian,
Catalan, Hebrew, Kannada, Malayalam, Polish, Tamil, and Telugu by
adding various hyphenation types and edits appropriate for the
locales.

For Arabic script languages, soft hyphens act transparently with
regard to joining: If a line is broken at a soft hyphen where the two
characters around the soft hyphen were joining each other before,
they will continue to appear joining if the line is broken at the
soft hyphen and a hyphen glyph is inserted.  This is needed for
Central Asian languages such as Uighur.

For Armenian, U+058A ARMENIAN HYPHEN is used for line breaks caused
by either automatic hyphenation or soft hyphens.

For Catalan, nonstandard line breaks are implemented for "l·l", which
hyphenates as "l-/l".

For Polish, when there is a line break at a hyphen, the hyphen is
repeated at the next line.

For the South Indic languages, when breaks happen due to soft breaks
or automatic hyphenation, no visible hyphen is inserted, although a
penalty is added.

For Hebrew, support for using U+05BE HEBREW PUNCTUATION MAQAF has
been implemented, but it's turned off pending confirmation of
desirability.

Also, hard hyphens, which previously had no penalty added for
breaking the line after them, now have the same penalty as an
automatic or soft break, with the difference that no hyphen is
inserted when they break.

Finally, some bugs have been fixed with hyphenating multiscript and
multi-font words.

Bug: 19950445
Bug: 19955011
Bug: 25623243
Bug: 26154469
Bug: 26154471
Bug: 33387871
Bug: 33560754
Bug: 33752592
Bug: 33754204
Test: Unit tests added, plus thorough manual testing
Change-Id: Iaccf776ce8d1d434ee8b1c534ff3659d80fdc338
2017-03-02 15:26:13 -08:00
mikejurka
90dd98ff33 Workaround for surface size on Fuchsia/Magma (#3458)
Allow surface size to be passed by caller
temporarily until we get a proper Display API
2017-03-01 21:08:06 -08:00
Michael Goderbauer
342a31136e roll dart version to pickup fixes in gen_snapshot (#3457)
* roll dart version to pickup fixes in gen_snapshot

* update licenses
2017-03-01 12:39:45 -08:00
Jason Simmons
4946d44925 Skip license processing for top-level source directories that are unchanged (#3437)
See https://github.com/flutter/flutter/issues/8106
2017-03-01 10:36:51 -08:00
Mikkel Nygaard Ravn
74de13c0bd FlutterXxxChannel concepts added to support Flutter/Android interop (#3446)
New concepts: FlutterMessageChannel (basic message send/receive superseding existing FlutterView methods), FlutterMethodChannel (method invocation and event streams), pluggable codecs for messages and method calls: unencoded binary, string, json, and 'standard' flutter binary encoding.
2017-03-01 13:54:32 +01:00
Jason Simmons
7f25cd0d65 Do a glFlush after creating textures on the IO thread before they are used by the GPU thread (#3456)
Fixes https://github.com/flutter/flutter/issues/8431
2017-02-28 15:50:02 -08:00
Michael Goderbauer
8a5271ca55 Roll-forward #3454 and roll tonic (#3455)
Bug causing roll-back #3454 has been resolved upstream in tonic.
2017-02-28 15:25:28 -08:00
Michael Goderbauer
eaacbf5f6f Revert "--print-deps now returns resolved paths (#3449)" (#3454)
This reverts commit 0a7b177c330367904597a6129b3eb653d29dfca0.

Reason: broke hot reload when using "package:" style imports for
sources within the same project.
2017-02-28 10:54:00 -08:00
Jason Simmons
0edcbb7db4 Allow translucent background colors in PhysicalModel (#3452)
Set the TransparentOccluder shadow flag if the color is not opaque
2017-02-27 16:27:44 -08:00
Jason Simmons
113f6e3c1e Disable the cache on the GrContext used for decoding images (#3451)
Fixes https://github.com/flutter/flutter/issues/8429
2017-02-27 16:21:21 -08:00
Michael Goderbauer
4d8e255f5f better document sky_snapshot (#3450) 2017-02-27 11:27:36 -08:00
Michael Goderbauer
0a7b177c33 --print-deps now returns resolved paths (#3449) 2017-02-27 10:27:24 -08:00
Seigo Nonaka
b1f1509a41 Merge "Remove MinikinRefCounted and use shared_ptr instead" 2017-02-27 04:30:31 +00:00
James Robinson
d8a8f10af7 Update to Dart revision de63e4fa94a1cebf86f0541ac14f25fd0bff73c0 (#3442)
This contains some fixes for Fuchsia and I'd like to keep the version
of Dart used in fuchsia and flutter builds consistent. Should have no
other impactful changes for Flutter.
2017-02-24 17:19:13 -08:00
Jêrôme Poichet
5f95749770 Fix inconsistent Mozart touch events. (#3448)
Mozart ADD, REMOVE and HOVER phases were going through the default value
of Blink's Cancel type, causing inconsistencies.

Bug: US-157
2017-02-24 13:27:27 -08:00
Chris Bracken
335daf1930 Apply iOS status bar padding to flutter views (#3447)
This change eliminates two previous assumptions:
1. If a Flutter view is embedded in a parent view, that the parent view
   controller would apply any status bar padding necessary.
2. That we should not apply padding unless the flutter view is
   fullscreen.

A simple case where the first assumption fails to hold is a Flutter view
embedded in a UINavigationController with a hidden toolbar. A simple
case where the second assumption fails to hold is a view in a window
whose top overlaps the status bar but isn't fullscreen.
2017-02-24 13:11:10 -08:00
Jason Simmons
e5442c96ae Return an error to Dart when spawning an isolate with an unsupported URI (#3443)
Fixes https://github.com/flutter/flutter/issues/8084
2017-02-24 09:44:36 -08:00
Roozbeh Pournader
4bce602bbe Add exception for Bulgarian to mk_hyb_file am: 2c97cc90c9 am: d911033995
am: d2e637ea00

Change-Id: Ieee903aff9b9759da30996d9c64cf0dcf94d7294
2017-02-24 14:46:53 +00:00
Roozbeh Pournader
d2e637ea00 Add exception for Bulgarian to mk_hyb_file am: 2c97cc90c9
am: d911033995

Change-Id: I960946e29e3aeb6bac9cc2028a2201e8c8d5ae4f
2017-02-24 14:43:52 +00:00
Roozbeh Pournader
d911033995 Add exception for Bulgarian to mk_hyb_file
am: 2c97cc90c9

Change-Id: I551c3cae80bf13ca43f13548777691b244197df1
2017-02-24 14:41:45 +00:00
Roozbeh Pournader
2c97cc90c9 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
(cherry picked from commit 3e203b7b62404d3cf4aaf5e11b946047461a7a82)
2017-02-24 13:04:41 +00:00
Seigo Nonaka
dfbc6e3742 Remove MinikinRefCounted and use shared_ptr instead
Let's use shared_ptr since manual ref counting can be a bug-prone and
using the global mutex inside destructor is not useful for some time.

To remove raw pointer manipulation, needed to change Layout
constructors. Layout is no longer copyable and need to pass
FontCollection to constructor.

Bug: 28119474
Test: minikin_tests passed
Test: hwui_unit_tests passed
Test: No performance regression in minikin_perftest.
Change-Id: I8824593206ecba74cbc9731e298f045e1ae442a3
2017-02-24 17:11:32 +09:00
Chinmay Garde
257817bce0 Remove .pyc files from licenses.golden. (#3445) 2017-02-23 19:23:58 -08:00
Chinmay Garde
4562b835ca Roll Skia revision to 3f81f3703a68755c88f5cc4a87728b98f34c4cd4 (#3438) 2017-02-23 17:58:05 -08:00
Jason Simmons
e01d1b39ef Adapt the physical model layer for Fuchsia (#3441) 2017-02-23 16:27:33 -08:00
Chinmay Garde
2868251402 Remove rarely used GLConnection stuff in flow. (#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
Jêrôme Poichet
e5f16da932 New mozart input events. (#3439)
* New mozart input events.

* Adding TODO for keyrepeat
2017-02-23 14:48:19 -08:00
Roozbeh Pournader
3e203b7b62 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
df9e9560be Allow plugging in a software backend for rendering in the shell. (#3404) 2017-02-22 15:40:23 -08:00
Seigo Nonaka
39654bb644 Call hb_font_set_variation if font variations are provided.
Test: None
Change-Id: I203d9ba7e1a1fcfdb10cd6a711d9a35136cbddd6
2017-02-22 10:56:04 +09:00
vardhan-cr
98e0091f47 Remove callback from ApplicationController.Kill fidl interface. (#3435) 2017-02-21 11:03:35 -08:00
Dan Rubel
304355436b modify RunFrom<X> methods to return error code rather than call exit (#3428) 2017-02-21 11:31:27 -05:00
Jason Simmons
a44647afac Physical model layer that can draw shadows for a Material widget (#3424) 2017-02-16 17:30:57 -08:00
Chinmay Garde
516b832dbb Remove texture image. (#3434) 2017-02-16 16:26:02 -08:00
Chinmay Garde
d7199e513c Update skia to 1c8e82b72bfeb1a02297688cf082c365b62705f7 (#3433) 2017-02-16 15:40:11 -08:00
James Robinson
ab09530927 Update invocation of create_snapshot_bin.py (#3429)
This applies commit 88441bfc0f712ad451784851bfcf0b0cc418ad75 from the
skia_rev_130a118cc68f8f9973e9572356011de378463fea branch to master so
master works in the Fuchsia build again.
2017-02-16 13:27:37 -08:00
Ryan Macnak
22476d16e5 Roll Dart to 1ed4c27c01de6680766593b88a531ef86883a117. (#3431) 2017-02-16 13:26:31 -08:00
Dan Rubel
481049f9cd add kernel support (#3369) 2017-02-16 10:11:38 -05:00
Jason Simmons
8218674d4a Transfer ownership of the buffer in the image decoder bitmap fallback path (#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
22462be735 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
ffde33dc11 Fix multi-font ttc rendering for iOS (#3418)
Merged iOS and Android font fallback mechanisms and push font discovery logic into skia
2017-02-14 23:54:39 -08:00
Zachary Anderson
ff087dd07d Enable Observatory in the content handler (#3420)
I'm not sure that this is the right way to do this, but this change causes the Observatory to come up correctly in the content handler.
2017-02-14 19:03:16 -08:00
mattsarett
9d8923a80f Use SkImage::makeShader() in place of bitmap workaround (#3419) 2017-02-14 14:35:12 -08:00