707 Commits

Author SHA1 Message Date
David Worsham
b304dabc30
[scene_host] Cleanup scene_host closures (#9061)
Fix null closure warnings, and a possible race condition where the
handle for the view_holder_token is destroyed on the gpu thread.  The
handle's destructor enters the isolate, so it must be destroyed on the
UI thread.

FL-257 #done
FL-269 #done
2019-06-04 12:56:03 -07:00
Gary Qian
a4abfb2333
Text inline widget LibTxt/dart:ui implementation (#8207) 2019-06-03 10:32:46 -07:00
Dan Field
79c6ce19a1
Preserve safe area (#8848)
Preserve safe area on Window regardless of insets.
2019-05-31 09:24:38 -07:00
Jonah Williams
e07fc692bd
Roll web sdk (#9146) 2019-05-30 14:04:07 -07:00
Jonah Williams
fa2e2d9fcb
Add checks to constructors and add missing constructor members (#9106) 2019-05-28 13:37:15 -07:00
Chinmay Garde
7e1788acda
Fix unopt variants of profile and release builds. (#9107)
This fixes a regression I introduced in https://github.com/flutter/engine/pull/8869 while preparing the buildroot for Fuchsia.
2019-05-28 12:42:53 -07:00
Chris Bracken
0f1ff3bdb3
Correct typos, adopt US spellings (#9081)
Corects a bnuch of typeos throughout teh engien codebsae. Also makes
a couple minor Commonwealth -> US spelling adjustments for consistency
with the rest of Flutter's codebase.

Made use of `misspell` tool:
https://github.com/client9/misspell
2019-05-25 13:14:46 -07:00
Jason Simmons
82ccba3030
libtxt: have GetRectsForRange(strut) fall back to tight bounds if layout isn't forcing use of the strut (#9058) 2019-05-22 13:57:59 -07:00
Jonah Williams
8dc3a4cde2
Add missing top level to stub_ui (#9060) 2019-05-22 13:10:50 -07:00
Jonah Williams
6299af30ab
remove over-optimistic assert (#9045) 2019-05-22 12:23:48 -07:00
Jason Simmons
135a140591
Add font features (such as tabular numbers) as an option in text styles (#8823)
Fixes https://github.com/flutter/flutter/issues/31691
2019-05-21 16:47:57 -07:00
liyuqian
3d2e9b24aa
Correct the return type of addRetained (#9025)
It should return void as SceneBuilder::addRetained is returning void.
Thanks yjbanov@ for finding this typo!
2019-05-20 15:58:35 -07:00
Dan Field
065fe5b210
remove unnecessary [new from docs (#8986) 2019-05-16 19:14:10 -07:00
Dan Field
34a524837f
Add matrix4 param to Linear gradients (#8985)
* Add matrix4 param to Linear gradients
2019-05-16 13:10:58 -07:00
Jason Simmons
aa63f090fd
libtxt: add a BoxHeightStyle option based on the height of the strut (#8927)
See https://github.com/flutter/flutter/issues/32332
2019-05-16 11:17:20 -07:00
Matthew Dempsky
66087301cd Roll tonic and update #includes (#8950) 2019-05-14 11:57:09 -07:00
Dan Field
1b649a57d1
update docs (#8928) 2019-05-13 11:44:45 -07:00
Michael Klimushyn
14c82d9969
Only cache required frames (#8837)
Remove the extra `decodedCacheRatioCap` parameter, and the
`_frameBitmaps` member from `Codec`. This means that small looped images
will consume more CPU but prevents us from hitting OOM exceptions based
on trying to render multiple larger images.

Also switch to fDisposalMethod for caching frames.

Previously we looped over every single SkCodec::FrameInfo, tracked its
`fRequiredFrame`, and then saved any frames matching those indeces.
Doing this instead avoids that initialization loop and extra data
structure.
2019-05-13 11:18:20 -07:00
Tong Mu
6e3c043141
Synthesize buttons for embedders (#8873)
* Synthesize a buttons = kPrimaryButton for events of down and move
* Add PointerEventButtons
2019-05-10 12:12:51 -07:00
Jonah Williams
1c8e31b4fd
Make sure Window.dpr still has a setter (#8912) 2019-05-09 06:57:01 -07:00
Jonah Williams
78adbf78db
Add web sdk implementation. (#8891) 2019-05-08 18:16:20 -07:00
Kaushik Iska
e7e6689b7f
Expose API to decode images to specified dimensions (#8596)
* Dart side resize primitives exposed

* Write the codec side changes

* return un-scaled image if we can not allocate bitmap

* Format _instantiateImageCodec calls to be single lined

Move null check for size to be inner

* Address CR comments and make image resize dimensions container

* Round not trunc, also format

* Add tests, remove ImageResizeDims from api surface

* Make placeholder value public

* Make the api side changes

* Add a feature to resize pixels and also add tests

* Fix grammar and add more info
2019-05-08 13:57:35 -07:00
Dan Field
2b1f9925e4
new lints (#8849)
Dart lints added:
* Avoid optional new
* Avoid optional const
* Prefer single quotes
* Prefer default assignment `=`
2019-05-07 16:10:21 -07:00
Chinmay Garde
f6e6d39860
Wire up Fuchsia SDK related updated for shell dependencies. #8869
This does not actually import the runners into the engine. It only sets up the targets so they need no modifications are necessary when the migration is done. The engine has been verified to build in both buildroots.
2019-05-06 18:01:59 -07:00
Dan Field
09fae08271
fix assert (#8851) 2019-05-04 14:08:23 -07:00
Dan Field
bf89afdf6d
Add asserts to semantics.dart (#8846) 2019-05-04 07:47:22 -07:00
Jonah Williams
1d062db4db
remove unecessary usage of runtimeType in dart:ui (#8844) 2019-05-04 00:24:41 -07:00
Michael Klimushyn
88113925e3
Default the animated frame cache to 0 when unset (#8833)
This default is already set in the framework, but this also needs to be
set in the binding layer to preserve the same behavior when the
deprecated framework parameter is removed.
2019-05-03 11:30:57 -07:00
Jonah Williams
c0be4e2776
Fix api conformance check (#8817) 2019-05-02 14:11:37 -07:00
reed-at-google
ae724f1320
colormatrix is now 0...1 (#8772)
* colormatrix is now 0...1

* reformat
2019-04-29 09:03:10 -04:00
Justin McCandless
3493dcfbae
Rename tightWidth to longestLine (#8706)
Renaming a brand new and unused parameter due to some discussion about connecting with the framework.
2019-04-26 16:06:12 -07:00
liyuqian
50de4692a5
Check the matrix in pushTransform (#8758)
Fixes flutter/flutter#31650
2019-04-26 14:09:53 -07:00
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