117 Commits

Author SHA1 Message Date
Jason Simmons
43660dd971 Update Canvas.drawVertices to match Skia's latest interface (#3505)
Fixes https://github.com/flutter/flutter/issues/8809
2017-03-24 10:40:19 -07:00
Chinmay Garde
1c07ea530f Remove uses of //base from all //flutter projects and replace them with //fml variants. (#3492) 2017-03-22 15:42:51 -07:00
Seth Ladd
c831d09579 link from Color to Colors (#3494)
* link from Color to Colors

* from review
2017-03-22 11:17:16 -07:00
Hans Muller
4ffba73767 Color operator== should compare runtimeTypes (#3495) 2017-03-22 10:58:03 -07:00
Jason Simmons
6b9eda4a40 Canvas.drawShadow API based on SkShadowUtils::drawShadow (#3486) 2017-03-20 14:17:47 -07:00
Chris Bracken
4a5a324669 dart_runtime_hooks: revert to syslog() call (#3484)
Fixes buildbot error use of undeclared identifier 'asl_log_message',
which I'm unable to repro locally.
2017-03-16 19:09:39 -07:00
Chris Bracken
24d9d25395 Perform all iOS logging through ASL (#3481)
* Perform all iOS logging through ASL

As of iOS 10, ASL is deprecated and replaced with os_log. ASL calls
continue to result in logging but as of iOS 10.3, only ASL_LOG_NOTICE
level and above are logged.

This change partially reverts 2937f06a15cecf5e9398334617ca156316dae52b,
adding back stdout and stderr redirection, which resulted in loss of
some direct writes to stdout that were necessary for debugging.

This change replaces the direct use of syslog with ASL on iOS, which
Apple has stated will continue to log on iOS >= 10. This eliminates the
need for the previous fwd-declaration of syslog.
2017-03-16 18:50:33 -07:00
Brian Osman
803d0e3e0c Do legacy image decoding for now (#3480) 2017-03-15 14:31:05 -07:00
Adam Barth
274d323afe Introduce OffsetBase.isFinite (#3472)
This property will eventually replace OffsetBase.isInfinite.

See https://github.com/flutter/flutter/issues/4301
2017-03-14 10:26:31 -07: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
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
Ryan Macnak
22476d16e5 Roll Dart to 1ed4c27c01de6680766593b88a531ef86883a117. (#3431) 2017-02-16 13:26:31 -08: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
mattsarett
9d8923a80f Use SkImage::makeShader() in place of bitmap workaround (#3419) 2017-02-14 14:35:12 -08:00
Chinmay Garde
d58696936f Revert ShadowMaskFilter use and roll Skia to 246a3c269d8dc91a47ff27f7b71508bf9e74edf5. (#3409) 2017-02-10 16:01:36 -08:00
Jason Simmons
6ca2f8e739 Export the Skia ShadowMaskFilter API (#3401)
See https://github.com/flutter/flutter/issues/6807
2017-02-09 10:25:33 -08:00
Hans Muller
44eaa4161d Added a point about Point&Size to the Rect dartdoc (#3405) 2017-02-09 09:27:27 -08:00
Jason Simmons
cd34b0ef39 Remove ParagraphStyle.lineCount, which has been superseded by maxLines (#3390)
Fixes https://github.com/flutter/flutter/issues/7723
2017-02-03 13:49:10 -08:00
Chris Bracken
fb69728f33 Roll Dart SDK to ed00447138f95ea4ba612509a244ca8205735372 (#3364)
* Roll Dart SDK to ed00447138f95ea4ba612509a244ca8205735372

Make the VM happy with a spurious instruction snapshot.

* Revert "Snapshots: Don't use an empty array where a NULL array is expected. (#3361)"

This reverts commit 275ffdcef80ffb85f4be62b9e8d1b17b5c0fdacf.

Broke iOS simulator builds; should no longer be necessary after rolling
the Dart SDK to ed00447138f95ea4ba612509a244ca8205735372.

On iOS simulator builds, we were seeing DartLookupSymbolInLibrary return
a pointer to a address of the snapshot data rather than the address of
the snapshot buffer itself. On simulator builds we don't build the
snapshot data into a buffer in app.dylib (kDartVmSnapshotData) but link
it statically into the engine itself.
2017-01-25 19:08:33 -08:00
Ryan Macnak
275ffdcef8 Snapshots: Don't use an empty array where a NULL array is expected. (#3361)
Fixes dart-lang/sdk#28504
2017-01-24 18:26:21 -08:00
Ian Hickson
82eaffd42f Improve documentation for the winding rule API and rename 'winding' to 'nonZero'. (#3359) 2017-01-24 17:01:58 -08:00
Ryan Macnak
adef37080f Adapt to refactoring of snapshot APIs in the Dart VM. (#3354)
Adapt to refactoring of snapshot APIs in the Dart VM.
2017-01-23 12:09:59 -08:00
Chinmay Garde
94306f4103 Add a Vulkan backend for Fuchsia and Android. (#3282) 2017-01-20 14:37:10 -08:00
Michael Goderbauer
93fce94482 Expose justify TextAlign option (#3348)
fixes flutter/flutter#6865
2017-01-19 15:07:42 -08:00
Matt Perry
2efc78cc24 Stop processing multiline text after maxLines. (#3342)
Added a Paragraph.didExceedMaxLines property to query when this occurs.

Needed for https://github.com/flutter/flutter/issues/7271
2017-01-18 10:53:24 -05:00
Matt Perry
17237e98dd Add support for a maxLines property on Paragraph. (#3338)
Also fix 'ellipsis' overflow handling to work for multiline text.

Fixes https://github.com/flutter/flutter/issues/7271
2017-01-17 13:55:43 -05:00
Jason Simmons
ccf1f09906 Check if the canvas bounds rect contains infinite or NaN values (#3339)
See https://github.com/flutter/flutter/issues/7431
2017-01-13 17:08:24 -08:00
Jason Simmons
5f91ff02a9 An API for setting the tag for Flutter log messages on Android (#3335)
Fixes https://github.com/flutter/flutter/issues/7226
2017-01-12 15:47:18 -08:00
Adam Barth
d15ef6535a Add Size.flipped (#3328) 2017-01-10 10:45:38 -08:00
Adam Barth
f13518d7e7 Rename TransferMode to BlendMode (#3323)
Fixes https://github.com/flutter/flutter/issues/7200
2017-01-05 23:44:47 -08:00
Adam Barth
eefc7aecd5 Remove Canvas.setMatrix and MaskFilter flags (#3321)
The Skia team says these APIs are outdated and should be removed. They
do not appear to have any clients.

Fixes https://github.com/flutter/flutter/issues/7202
Fixes https://github.com/flutter/flutter/issues/7204
2017-01-05 11:08:59 -08:00
Chinmay Garde
b03af31861 Re-format all GN files using gn format. (#3319) 2017-01-03 15:59:48 -08:00
Ian Hickson
7127a18bab Color docs (#3310) 2016-12-12 23:40:04 -08:00
Jason Simmons
0c985f8f61 Null check before queueing deletion of Skia objects (#3298)
Fixes https://github.com/flutter/flutter/issues/7182
2016-12-08 12:43:50 -08:00
Adam Barth
a8b7631b7a Remove trailing comma 2016-11-28 21:02:42 -08:00
YoungSeok Yoon
1e53b728c2 Fix the assertion in RadialGradient (#3278) 2016-11-28 17:16:36 -08:00
Adam Barth
33af5a5644 Rename hittable to hitTestable (#3275)
Apparently hittable is not politically correct.
2016-11-28 16:09:56 -08:00
Adam Barth
f6547c1df5 Add prune to child scene layers (#3272)
Also, change the hit testing geometry so that we get our hits at the root.
2016-11-28 12:28:18 -08:00
Adam Barth
f627e734c0 Cull offscreen child views (#3267)
There's no reason to present offscreen child views to Mozart.
2016-11-23 13:36:12 -08:00
Chinmay Garde
036bc0d356 Update Skia and get using its BUILD.gn instead of maintaining own own copy. (#3233) 2016-11-17 12:36:16 -08:00
Sigurd Meldgaard
52bbe398a5 Faster hash codes. (#3214)
* Faster hash codes.

Mask the intermediate values when computing composite
hash codes.

* WIP

* WIP

* WIP
2016-11-16 12:28:25 -08:00
Adam Barth
d1bc4c4850 Add support for hover pointer events (#3227)
These are implemented on macOS and Fuchsia.
2016-11-15 20:18:22 -08:00
Adam Barth
5d13dc00aa Add support for child view on Fuchsia (#3217) 2016-11-10 18:03:00 -08:00
Adam Barth
d658f9d324 Add support for Fuchsia IDL on Fuchsia (#3211) 2016-11-10 13:12:32 -08:00
Chinmay Garde
2e0f870c38 Add SceneBuilder.setCheckerboardRasterCacheImages with documentation. (#3202) 2016-11-03 17:28:11 -07:00
Chinmay Garde
3164a97645 Allow checkerboarding raster cache entries for debugging purposes (can be toggled from Dart). (#3200) 2016-11-03 13:59:57 -07:00
Jason Simmons
643d5cb062 Move SkPicture destruction to the IO thread to fix a GL memory leak (#3192)
An SkPicture may hold a reference to an SkImage backed by a GL texture.
The GL texture is associated with the resource context bound to the IO
thread and must be deleted through that context.
2016-11-01 14:31:20 -07:00
Jason Simmons
cdd7db2674 Fix a leak of RenderObjects in Paragraph/ParagraphBuilder (#3189)
The RenderView destructor does not delete its descendants.
RenderObject::destroy must be called to delete the object tree along with
other cleanup tasks.

Also associate a CustomFontData with dynamically loaded fonts in order to get
the desired FontDataCache behavior at RenderObject::destroy time.
2016-10-31 11:16:04 -07:00
Adam Barth
63e71803de Unlink from mojo (#3187)
After this patch, we no longer link with Mojo. We still use some gn definitions
from //mojo to create Dart packages.
2016-10-28 15:01:07 -07:00