8959 Commits

Author SHA1 Message Date
Jason Simmons
f24987571a libtxt: refactoring of paragraph layout to improve text justification (#4178)
This changes Paragraph::Layout to iterate line-by-line through the text.
For each line, Layout scans for word boundaries and adds extra space between
words if the line is justified.
2017-10-06 15:46:27 -07:00
Zachary Anderson
be547d66c2 Remove daed --assert_initializer flag (#4181) 2017-10-06 14:54:08 -07:00
P.Y. Laligand
472596fe3b Properly pass the disable_analysis parameter. (#4177)
Added it to a few targets.
2017-10-06 10:48:25 -07:00
Brian Osman
01ab51832a Update Fuchsia font code to new Skia API (#4179) 2017-10-06 13:17:16 -04:00
Chris Bracken
459f722b86 Revert "Use iOS scale when computing render buffer size (#4171)" (#4175)
This reverts commit d43d35347594c893687dec7402a525d83f57db10.

Clear regression to the flutter_gallery_ios__transition_perf benchmarks:
  * average_frame_build_time_millis: 1.4x
  * missed_frame_build_budget_count: 1.2x

No regression seen for other iOS benchmarks (e.g. scrolling).
2017-10-04 17:42:46 -07:00
Alexander Markov
0dba2fe78d Roll Dart to 9ee73fe322ce3875a6b1f16ba16d64b11c680e90 (#4176)
* Switch from FlutterFastaTarget to FlutterTarget as FlutterFastaTarget was removed.
2017-10-04 16:28:30 -07:00
Ryan Macnak
f7685ddf16 Roll Dart to 4b64a835b9c10480063739d1e73847dcc4d8bfb6. (#4174) 2017-10-04 11:26:07 -07:00
Brian Osman
6388e92880 Change to new SkFontMgr API (#4173)
* Change to new SkFontMgr API

These changes clarify ownership rules and work today. They will be
necessary once SK_SUPPORT_LEGACY_FONTMGR_API goes away.

* Fix spacing

* Formatting
2017-10-04 14:22:57 -04:00
Chris Bracken
d43d353475 Use iOS scale when computing render buffer size (#4171)
When checking whether render buffer size has changed, apply the device
scale factor used to convert points to pixels to ensure we're not
needlessly re-allocating render buffer storage.

Adds trace + debug log to make this easier to detect in future.

Originally introduced in 2d530daeca438ca24562d290616c0aec5ab76b88, but
rolled back in 0a6e415b60581ef7934032df20401da1fae9ea9f to test whether
it was responsible for regressions to
flutter_gallery_ios__transition_perf benchmarks:
  * average_frame_build_time_millis
  * missed_frame_build_budget_count
2017-10-03 19:43:36 -07:00
Chris Bracken
a40cc7bb46 Revert "Roll Dart to 4b64a835b9c10480063739d1e73847dcc4d8bfb6. (#4166)" (#4172)
This reverts commit 0d2f0cb64819f7669b6134994a4ba6d7211480fa.

Attempting to roll into the framework causes analysis errors with
mock classes implementing HTTP-related classes previously in dart:io:
[error] Classes can only implement other classes. (packages/flutter_tools/test/base/net_test.dart, line 94, col 41)
[error] Classes can only implement other classes. (packages/flutter_tools/test/base/net_test.dart, line 62, col 33)
[error] Classes can only implement other classes. (packages/flutter_tools/test/base/net_test.dart, line 78, col 40)
[error] Classes can only implement other classes. (packages/flutter_tools/test/src/context.dart, line 249, col 46)

and dartdoc failures:
dartdoc:stdout: [error] Target of URI doesn't exist: 'dart:_http'. at /home/travis/build/flutter/flutter/bin/cache/pkg/sky_engine/lib/io/io.dart, line 206.
2017-10-03 18:35:07 -07:00
Siva
79cb2eaf65 - Remove call to DartDebugger::InitDebugger in InitDartVM (#4167)
- Remove linking of dart_debugger.cc as this is not used
(all debugging is done using the service API, this debugger implementation uses the deprecated dart debugger API)
2017-10-03 16:49:43 -07:00
Alexander Aprelev
dd65308ce4 Switch from FlutterTarget to FlutterFastaTarget (#4169) 2017-10-03 13:57:18 -07:00
Ryan Macnak
0d2f0cb648 Roll Dart to 4b64a835b9c10480063739d1e73847dcc4d8bfb6. (#4166) 2017-10-03 13:25:19 -07:00
Michael Goderbauer
8f1c0e97a2 Revert "Revert "Revert engine Dart roll. (#4158)"" (#4168)
* Revert "libtxt: handle characters encoded as multiple UTF-16 code units (#4165)"

This reverts commit 414c3fe3dfdd3e3d575d192b492ce429ddcc9736.

* Revert "Proper horizontal a11y scrolling on Android (#4163)"

This reverts commit 0448bf9bd7a52dc281aa18db8e08194105d6d419.

* Revert "Update Skia revision to 74a8296d7c. (#4164)"

This reverts commit ac53d29a416385d574a71120528c161db1b05c12.

* Revert "Revert "Revert engine Dart roll. (#4158)" (#4162)"

This reverts commit f97e974e8cd58da75c699295384cd439a7369b13.
2017-10-03 11:23:00 -07:00
Jason Simmons
414c3fe3df libtxt: handle characters encoded as multiple UTF-16 code units (#4165) 2017-10-02 17:11:38 -07:00
Michael Goderbauer
0448bf9bd7 Proper horizontal a11y scrolling on Android (#4163) 2017-10-02 15:46:38 -07:00
Chinmay Garde
ac53d29a41 Update Skia revision to 74a8296d7c. (#4164) 2017-10-02 15:20:01 -07:00
Alexander Aprelev
f97e974e8c Revert "Revert engine Dart roll. (#4158)" (#4162)
This reverts commit 14aab33edd199fe453cd01b9c8a05e9dc3c6679f.

e1aa86739b84dd9f0e69d3ea5c704342397ac93a fixes issue with last dart
roll.
2017-10-02 13:26:58 -07:00
Jason Simmons
e3404b81a5 libtxt: implementation of GetRectsForRange that processes a line at a time (#4155) 2017-10-02 12:54:26 -07:00
Jason Simmons
e1aa86739b Provide an entropy source to the Dart engine (#4161)
This is required by the _CryptoUtils class used by the recently repackaged
Dart HTTP libraries
2017-10-02 12:40:29 -07:00
Jason Simmons
8061df14e2 libtxt: search for fallback fonts that can match emoji and CJK characters (#4156) 2017-10-02 12:01:40 -07:00
Chinmay Garde
267e7a8c0a Roll skia to e4679fa06a. (#4157) 2017-09-29 15:57:39 -07:00
Chris Bracken
02ea7ae5b6 Update buildroot to 53fea9aebbcc39c6522731471a1a45960ee0685e (#4160) 2017-09-29 15:55:06 -07:00
gspencergoog
14aab33edd Revert engine Dart roll. (#4158)
* Revert "Include _http into sky_engine libraries for analyzer (#4154)"

This reverts commit b930f107c3d6648423c42ed10b54f36a92edcbc8.

It is dependent upon the Dart roll, which breaks the engine.

* Revert "Roll dart to ade37f931e90b0fdb8fe16d6bf6f089545da55b6 (#4151)"

This reverts commit 6f1264fb3e11d25a26bc7c44246110ecb5159011.

This Dart roll breaks the engine build on Travis.
2017-09-29 14:32:15 -07:00
gspencergoog
b2a7f4bf8f Add support for system text scale factor. (#4124)
Adds support for system text scale factor, including hooks for Android system settings changes.  iOS hooks will be added in another PR.
2017-09-29 13:19:06 -07:00
Alexander Aprelev
b930f107c3 Include _http into sky_engine libraries for analyzer (#4154) 2017-09-29 08:51:51 -07:00
Jason Simmons
86f95f08d9 libtxt: Remove postprocess_line and improve tracking of X offsets for glyphs and PaintRecords (#4153) 2017-09-28 17:46:25 -07:00
Jason Simmons
14bf515259 libtxt: remove redundant line_widths (#4152) 2017-09-28 16:01:48 -07:00
Alexander Aprelev
6f1264fb3e Roll dart to ade37f931e90b0fdb8fe16d6bf6f089545da55b6 (#4151)
* Roll dart

* Update dart dependencies

* Update dart license hash. No changes to licenses

* Roll to one more version up

* Update license hash
2017-09-28 09:40:47 -07:00
Michael Goderbauer
bdfedcc26f Add overlaps method to Rect (#4150)
* Add overlaps method to Rect

* review comment
2017-09-27 17:42:44 -07:00
Jason Simmons
a0313d1019 Fix an overflow in HarfBuzzShaper's resolveCandidateRuns (#4148)
See 24cf1f3562

Fixes https://github.com/flutter/flutter/issues/12280
2017-09-27 15:03:29 -07:00
Adam Barth
160a98c2b2 Update paths to Fuchsia libraries (#4147)
These libraries are in Topaz now.
2017-09-27 13:45:49 -07:00
Michael Goderbauer
45b11f742d Send scroll progress with a11y event TYPE_VIEW_SCROLLED (#4144) 2017-09-27 11:18:50 -07:00
Craig Stout
e8a3108365 Update vulkan gn target 2017-09-26 16:32:59 -07:00
gspencergoog
90ba98e741 Fixing accidental paste. (#4145) 2017-09-26 13:44:39 -07:00
gspencergoog
faabc10178 Support correct keyboards for multi-line text editing. (#4115)
This addresses part of #8028, implementing the Engine-side support for it.
2017-09-26 12:53:19 -07:00
Craig Stout
9c518cb751 Update vulkan semaphore extension
Use fuchsia specific extension to avoid casting handles as fds.
2017-09-26 11:34:34 -07:00
Ian Hickson
ccf9859b0d Clamp overflows in Color.lerp. (#4141)
Previously, cases like:

```dart
Color.lerp(const Color(0xFF00FF7F), const Color(0xFF00FFFF), 1.1)
```

...would result in unexpected effects (in this instance, lerping
between these colors with a curve that overshoots would take what
should be a simple animation from pale green to blue and add some
flickering bright green whenever it overshoots).
2017-09-26 11:11:09 -07:00
Alexander Aprelev
95847bf814 Revert "Roll dart dependency to 24ad1035147b65dd42e765b566f5002e87caafa7 (#4140)" (#4143)
This reverts commit 513828b58053e399c20e7306028cd1edfc7ba090.

This breaks linux build due to outdated pool dependency in observatory pub packages.
2017-09-25 18:03:56 -07:00
Alexander Aprelev
513828b580 Roll dart dependency to 24ad1035147b65dd42e765b566f5002e87caafa7 (#4140)
* Roll dart dependency to 24ad1035147b65dd42e765b566f5002e87caafa7

* Update dart license hash(no relevant changes). Update dart deps.
2017-09-25 15:32:35 -07:00
Adam Barth
ccce4c3adb Remove spurious error message (#4135)
It's not an error to be unable to connect to the context service.
2017-09-25 13:34:35 -07:00
Jason Simmons
77ec0b5f5b Replace a View.getDisplay call that is not supported on API level 16 (#4139)
Fixes https://github.com/flutter/flutter/issues/12235
2017-09-25 11:25:47 -07:00
Jason Simmons
005212683c roll buildroot (#4138) 2017-09-22 17:38:17 -07:00
Jason Simmons
a7e14ea474 libtxt: refactor glyph position calculation (#4134)
* Remove padding values in line_heights and glyph_position_x.  Each value
  in glyph_position_x now represents an actual glyph in the layout.

* Remove code intended to handle extra characters beyond the end of the
  last line.  The LineBreaker should ensure that the end of the last run
  matches the end of the last line.

* Return the upstream/downstream affinity of the cursor position in
  GetGlyphPositionAtCoordinate.

* Account for the space at the end of a word wrapped line in
  GetGlyphPositionAtCoordinate / GetCoordinatesForGlyphPosition
2017-09-22 15:15:59 -07:00
Jason Simmons
76dd4e1138 Roll Skia (#4131) 2017-09-22 14:38:46 -07:00
P.Y. Laligand
d7da1255c9 Moved Maxwell to //peridot. (#4137) 2017-09-22 14:17:41 -07:00
Jason Simmons
e31d0f4ea1 Update the license script to include the topaz root and exclude Skia's version of libpng (#4136) 2017-09-22 14:03:14 -07:00
P.Y. Laligand
fc3cb8fb3b Adjust to new location of lib/tonic. (#4132) 2017-09-21 14:30:28 -07:00
Alexander Aprelev
0a6e415b60 Revert "account for pixel scale when checking against existing buffer storage size (#4103)" (#4133)
This reverts commit 2d530daeca438ca24562d290616c0aec5ab76b88 as it looks
like a potential cause of performance benchmark regressions on
https://flutter-dashboard.appspot.com/benchmarks.html:
 - flutter_gallery_ios__transition_perf average_frame_build_time_millis
 - flutter_gallery_ios__transition_perf missed_frame_build_budget_count
2017-09-21 12:45:16 -07:00
Travis Martin
9d98d886ad Report onscreen text to Fuchsia context engine. (#4097)
Add a class to track onscreen text via SemanticsNodes from the
accessibility layer, and report this text to the ContextEngine.
2017-09-21 12:41:13 -07:00