675 Commits

Author SHA1 Message Date
Todd Volkert
0c9c293b56
Add Rect.fromCenter() constructor (#8716) 2019-04-25 14:40:29 -07:00
Zachary Anderson
3a29e6a7a7
Plumb arguments from Settings to Dart main() (#8710) 2019-04-25 07:57:54 -07:00
Dan Field
1a8534cb93
Revert "Increase the memory usage estimate for EngineLayer (#8700)" (#8738)
This reverts commit 30fb4a697724061ffa8f44ed42d5fc9fff968566.
2019-04-25 06:55:31 -07:00
Jason Simmons
30fb4a6977
Increase the memory usage estimate for EngineLayer (#8700)
EngineLayers can hold references to Skia objects and may consume significant
resources.  This change will result in more aggressive cleanup of EngineLayers
by the Dart GC.

See https://github.com/flutter/flutter/issues/31303
2019-04-23 13:25:08 -07:00
Dan Field
3e47b4bb39
Reland const Rect/RRect (#8695) 2019-04-23 11:21:03 -07:00
Brian Osman
098ada5398
Convert animated unpremul images to premul during decode (#8698)
Skia allows drawing unpremul images, but filtering them can look bad.
Internally Skia performs this transformation when creating SkImages from
encoded data (so this already happens for MakeCrossContextFromEncoded),
and for consistency/quality it should be done here, too.

Fixes #28785
2019-04-23 13:47:23 -04:00
Jason Simmons
ed1f3fd99f
Change Vertices.indices to use a Uint16 list to more accurately reflect Skia's API (#8657)
Also throw if SkVertices::Builder reports an invalid configuration.

Fixes https://github.com/flutter/flutter/issues/31270
2019-04-22 16:13:22 -07:00
Dan Field
4f2fd84cbc
Revert Rect/RRect 64 bit (#8690)
* Revert "fix toString (#8688)"

This reverts commit 9fa7336784b56ef70fd3580ac54d2939d1faa5a0.

* Revert "Make Rect and RRect use 64 bit doubles, and make them const-able (#8565)"

This reverts commit c12315273f6344175dae748ec1f23e15b4e7d59e.
2019-04-22 15:45:59 -07:00
Dan Field
9fa7336784
fix toString (#8688) 2019-04-22 14:12:31 -07:00
Dan Field
c12315273f
Make Rect and RRect use 64 bit doubles, and make them const-able (#8565)
* Make Rect and RRect 64bit and const-able
2019-04-22 12:58:48 -07:00
Matthew Dempsky
b0cbce4175 Replace ThreadLocal with ThreadLocalUniquePtr<T> (#8659)
Fixes https://github.com/flutter/flutter/issues/31292.
2019-04-19 17:33:46 -07:00
Matthew Dempsky
4688dc7700 Remove unnecessary DartIO::EntropySource wrapper (#8635) 2019-04-18 17:15:04 -07:00
Justin McCandless
a144f17aee
Tight Paragraph Width (#8530)
Calculate and expose paragraph tightWidth to the framework to allow drawing Text based on this.
2019-04-18 09:08:41 -07:00
liyuqian
8ff631f3df
Rename flow namespace to flutter (#8615)
This follows our namespace change from shell to flutter: https://github.com/flutter/engine/pull/8520.
2019-04-17 14:38:45 -07:00
Michael Klimushyn
0e27e0fc38
Pipe Z bounds from ViewportMetrics to Flow (#8583)
This is the first step in making Flutter aware of and responsive to Z
bound overflow. On its own this patch shouldn't result in any changes in
behavior. This will need to be followed up with a patch in Fuchsia's
Flutter runner to set the Z bounds after this lands, and another patch
in the engine actually implementing the desired overflow behavior.

This Z bound info is routed through the engine itself to make sure the
bounds in flow are truly consistent from the Fuchsia runner. However
these values should eventually be exposed to the framework as well.
2019-04-17 09:56:46 -07:00
Kaushik Iska
7292d62ef8
Revert Versions API (#7828)
* Revert "Fix versions implementation (#7726)"

This reverts commit 3c38dd342f53d39603d1c5b138b5e4d36d93720f.

* Revert "Expose the Flutter engine, Dart and Skia versions to Dart. (#7634)"

This reverts commit b94e759b256819fb33cb9d2b41565fc137cac733.

* remove namespace shell stuff

* fix format

* fix licenses
2019-04-12 14:23:13 -07:00
Zachary Anderson
a344015e9a
[fuchsia] Add flutter:: to scene_host.cc (#8549) 2019-04-11 13:36:49 -07:00
Ben Konyi
ae4df6fd18
Revert "Change Rect internal representation from Float32List to Float64List (#8524)" (#8545)
This reverts commit 0b36d3e2f0235f25dc5b5657bd2e594fe7414aee.
2019-04-11 09:16:36 -07:00
Hans Muller
0b36d3e2f0
Change Rect internal representation from Float32List to Float64List (#8524) 2019-04-10 10:39:29 -07:00
Chinmay Garde
39e1d00f39
Remove redundant specification of the |flutter| namespace in the engine. (#8523) 2019-04-09 17:50:06 -07:00
Chinmay Garde
56052c70af
Rename the shell namespace to flutter. (#8520) 2019-04-09 17:10:46 -07:00
Chinmay Garde
eec74e5c92
Rename the blink namespace to flutter. (#8517)
Some components in the Flutter engine were derived from the forked blink codebase. While the forked components have either been removed or rewritten, the use of the blink namespace has mostly (and inconsistently) remained. This renames the blink namesapce to flutter for consistency. There are no functional changes in this patch.
2019-04-09 12:44:42 -07:00
reed-at-google
df707c6f1f
switch to newer APIs for shaders and filters (#8511)
* switch to newer APIs for shaders and filters

* fix formatting
2019-04-09 11:00:36 -04:00
David Worsham
7ce64be6c1
[scenic] Remove unused mozart.internal (#8496) 2019-04-08 19:49:59 -07:00
Hugo
78bd318c96 Add Locale.toLanguageTag() (#8421)
Adds `Locale.toLanguageTag()`, which returns a valid Unicode Locale Identifier
using underscores as separator that can be reliably parsed.
2019-04-08 11:21:19 -07:00
David Worsham
ff1bcdc009
Add Views V2 support for Fuchsia (#8115) 2019-04-07 01:18:59 -07:00
Dan Field
e10d46421d
Improve path metrics tests and docs (#7851)
* Improve path metrics tests and docs
2019-04-05 13:58:46 -07:00
reed-at-google
5944867cab
update to use SkTileMode (#8439) 2019-04-04 08:41:49 -04:00
Chinmay Garde
7e38b0aa23
Revert "Revert "Separate the data required to bootstrap the VM into its own class. (#8397)" (#8406)" (#8414)
This reverts commit f7b4903d7c9913447af3aaebc4308d1a1e2a4dde.
2019-04-03 13:38:12 -07:00
Ryan Macnak
64fc583295
Remove use of DART_CHECK_VALID. (#8417)
Bug: https://github.com/flutter/flutter/issues/30407
2019-04-03 10:01:57 -07:00
Alexander Aprelev
2f17860104
Pass environment defines to compile flutter platform step. (#8412)
* Pass environment defines to the compiler

* Remove non-strong platform target
2019-04-02 13:09:53 -07:00
Zachary Anderson
f7b4903d7c
Revert "Separate the data required to bootstrap the VM into its own class. (#8397)" (#8406)
This reverts commit c991647404f8117dab2ca4ed49aa3ba48a634240.
2019-04-02 09:12:56 -07:00
MH Johnson
3796d98918
[ui] Add null check in FontWeight.lerp (#8274)
* Add null check in FontWeight.lerp

* Add Unit tests for FontWeight.lerp
2019-04-01 21:56:19 -04:00
Chinmay Garde
c991647404
Separate the data required to bootstrap the VM into its own class. (#8397)
When attempting to shutdown and subsequently restart the VM, having the
VM own this data introduces lifecycle issues due to circular references.
2019-04-01 14:58:05 -07:00
Michael Goderbauer
5e124ffc13
Fix typos (#8339)
Courtesy of google's "CommonTypos" analysis.
2019-03-29 17:47:55 -07:00
Jonah Williams
e633b26c5c
Introduce unit tests and refactor web dart:ui into "package" (#8346) 2019-03-29 14:54:53 -07:00
Chinmay Garde
86f4b741b8
Move libdart selection into its own target in //flutter/runtime. (#8373)
Cleanup repeated rules.
2019-03-29 14:29:09 -07:00
Chinmay Garde
a1a2129bc4
GN Format all files in the engine. (#8369) 2019-03-29 12:44:57 -07:00
Jason Simmons
6d1a6a4f47
Allow per-platform customization of the default Skia font manager (#8358)
The font manager returned by SkFontMgr::RefDefault is determined by Skia's
build configuration flags.  Embedders may want to use a default font manager
other than the one selected by their build of Skia.
2019-03-29 09:52:29 -07:00
Jason Simmons
6c948ba248
Ensure that Picture::RasterizeToImage destroys Dart persistent values on the UI thread (#8182)
The DartPersistentValue used to hold the image callback is tied to a
Dart isolate.  Destructing the DartPersistentValue requires entering
the isolate and must be done on the UI thread.

Fixes https://github.com/flutter/flutter/issues/29379
2019-03-28 12:37:18 -07:00
Chris Yang
fd7d7fa5a0
Add a11y support for embedded iOS platform view (#8156)
Follow up the framework change in flutter/flutter#29304.
Inject the accessibility element tree in the semantic node if the node is for platform views.

flutter/flutter#29302
2019-03-26 16:04:42 -07:00
Kate Lovett
af64f725f6
Fixing links between higher and lower classes. (#8295) 2019-03-25 15:44:14 -07:00
Kate Lovett
5f8ae420c1 Linking Higher & Lower Class Docs (#8265)
* Linking lower layer classes to higher layers in API Docs.
2019-03-22 13:43:34 -07:00
Justin McCandless
81dbfc12e4
Fix incorrect vertices colors length check (#8247)
A DCHECK was checking incorrect values, and this corrects it.
2019-03-22 06:57:29 -07:00
Jonah Williams
adc6685468
Add platformViewId to stub_ui (#8253) 2019-03-21 18:01:53 -07:00
Jonah Williams
146646d1b9
Correct greater than or equal logic in offset base (#8210) 2019-03-19 13:41:47 -07:00
David Worsham
f7a092262c [fuchsia] Remove deprecated libraries from snapshot (#8085) 2019-03-14 16:05:21 -07:00
Chinmay Garde
e514f0bd18
Ensure that typed data is released within SendPlatformMessage scope. (#8155)
We used to make tonic make the wrapper before the SendPlatformMessage invocation. However, tonic would not collect the wrapper before make the Dart API call to return the value from the native method. This is illegal and would trip an assertion in the Dart VM. A more systematic fix required reworking tonic to handle this case. However, to fix our illegal use of the Dart API now, this patch creates the wrapper manually in function scope.

Fixes https://github.com/flutter/flutter/issues/29058
2019-03-14 12:02:46 -07:00
Gary Qian
2daebebf4b
Fix text.dart height docs (#8079) 2019-03-13 11:13:53 -07:00
Gary Qian
31b289f277
Fix indexing error in dart:ui TextStyle.toString (#8143) 2019-03-12 16:48:47 -07:00