161 Commits

Author SHA1 Message Date
Michael Goderbauer
cfe70e07d3 Revert "Run Flutter on iOS and Android with color correct Skia (#3743)" (#3775)
This reverts commit ffe8181ffe7432b61a67323c80fd8025704e4695.
2017-06-14 16:26:20 -07:00
Michael Goderbauer
1787c3fb1e Adding SemanticsFlag.isSelected (#3764)
* Adding SemanticsFlag.isSelected

* typo
2017-06-09 15:58:30 -07:00
mattsarett
ffe8181ffe Run Flutter on iOS and Android with color correct Skia (#3743)
* Run Flutter on iOS and Android with color correct Skia (#3716)

***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-09 08:39:21 -04:00
Ryan Macnak
3f8eddf34a Plumbing for a core snapshot with code (currently empty). (#3749) 2017-06-07 09:57:24 -07:00
Sarah Zakarias
f37aafd456 Add setInitialRoute on FlutterView. (#3727) 2017-06-06 10:59:41 +02:00
Ian Hickson
62c6f6571a Add breadcrumbs from dart:ui to other docs. (#3741) 2017-06-05 20:06:40 -07:00
Chris Bracken
c3721a589b Log to stdout on all platforms except Android (#3739)
Fixes a Fuchsia breakage introduced in
dcfcc9259d4f4321e8daea24f1778694a8dca98a.
2017-06-05 14:27:41 -07:00
Chinmay Garde
70b71a49ea Revert "Run Flutter on iOS and Android with color correct Skia" (#3738) 2017-06-05 14:08:22 -07:00
mattsarett
fe82757603 Run Flutter on iOS and Android with color correct Skia (#3716)
***Turns on color correct rendering for Android and iOS
***Communicates dst color space to raster cache
***Turns on color space aware image decoding

Test:
***color_testing_demo on Pixel XL
***flutter_gallery on iPad Mini and iPad Pro (haven't figured out how to run manual_tests on iOS)

TODO:
I needed to split up this CL somewhere. These are follow-up tasks.
***Make desktop backends color correct
***Make debugging tools (ex: encoding frames to png) preserve color space
***Investigate using UIKit API to allow iOS to fine tune color space of rendered content
2017-06-05 14:59:04 -04:00
Chris Bracken
9af413ca8b Log to stdout in flutter_tester (#3728)
Fixes a regression introduced in
dcfcc9259d4f4321e8daea24f1778694a8dca98a in flutter_tester on Linux.
2017-06-02 10:25:15 -07:00
Chris Bracken
dcfcc9259d Simplify log forwarding on iOS, Android (#3726)
Eliminates logging to stdout on Android -- now using __android_log_print
only.

Eliminates logging to syslog on iOS -- now writing to stdout with the
existing ASL redirection (from platform_mac.mm) only. syslog() wasn't
ever picked up in logs.

This patch is a pre-factoring change before swapping out iOS engine
logging to a flutter-specific mechanism.
2017-06-02 09:32:08 -07:00
Chinmay Garde
71da3d7955 Ensure that gradient tile mode enum values in Dart match SkShader::TileMode. (#3721) 2017-06-01 12:18:13 -07:00
Zachary Anderson
a808ab9f0c Stop passing ignored argument to snapshot script (#3723) 2017-06-01 12:09:14 -07:00
Chris Bracken
75c74dc463 Add inactive, suspending ApplicationLifecycleState values (#3713)
**This is a breaking change on iOS**

Previously, the `paused` state was entered when the application resigned
active status. `inactive` now maps to this status. `paused` now maps to
an app that has been backgrounded.

`inactive` is currently emitted on iOS only and corresponds to iOS's
foreground inactive state.

Current state transitions are:
`resumed` <--> `inactive` <--> `paused`

suspending is currently emitted on Android only and corresponds to the
transition to Android's stopped state.

Current state transitions are:
`resumed` <--> `paused` --> `suspending` --> `resumed`

These transitions may change in future.
2017-05-24 16:34:34 -07:00
Adam Barth
73508ed1c1 Add faster entry points for drawPoints and friends (#3712)
Fixes https://github.com/flutter/flutter/issues/10087
Fixes https://github.com/flutter/flutter/issues/10233
2017-05-24 13:19:44 -07:00
Jason Simmons
c992b1ee92 Use a new Skia API for safe passing of images across threads and GrContexts (#3705)
Fixes https://github.com/flutter/flutter/issues/9439
2017-05-22 17:26:56 -07:00
Ian Hickson
8b09c7231e Better onDrawFrame docs (#3704) 2017-05-22 12:30:54 -07:00
mattsarett
c6b05f19c1 Add appropriate include file to canvas.cc (#3697)
This will ensure that the engine is not broken by a future
skia roll.
2017-05-17 15:19:51 -04:00
Ian Hickson
6fef702cfa Trivial fixes to dart:ui docs. (#3689) 2017-05-15 13:30:24 -07:00
Adam Barth
7dd359e165 Solicit input about Canvas.drawPoints API break (#3693) 2017-05-15 10:07:10 -07:00
Adam Barth
f1bfdddfc8 Add SkColorSpace to Picture.toImage() (#3691)
Skia doesn't actually create the image if we don't supply a color space.
2017-05-13 10:33:04 -07:00
Jason Simmons
df5f62f236 Add a flag that checkerboards offscreen render targets created by SkCanvas.saveLayer (#3685)
Fixes https://github.com/flutter/flutter/issues/9473
2017-05-11 15:00:16 -07:00
Ian Hickson
b7f214902c Add documentation to TileMode. (#3668) 2017-05-10 12:22:08 -07:00
Adam Barth
33ee0a50d6 Add Picture.toImage (#3657)
Fixes https://github.com/flutter/flutter/issues/6774
2017-05-08 09:10:34 -07:00
Ian Hickson
1c90fe6b23 Correct the docs for Size.lerp. (#3653) 2017-05-06 21:07:13 -07:00
Ian Hickson
0071651ecb Some doc typos (#3647) 2017-05-04 22:42:04 -07:00
Adam Barth
da0b1f5a36 Make microtask queue be per thread (#3644)
Previously, it was a static. Doesn't have much effect in practice because we
only use this microtask queue for main isolates, which exist on a single
thread.
2017-05-04 15:06:43 -07:00
Jason Simmons
c0f1e3b47b Change the shadow elevation parameter to floating point (#3637) 2017-04-27 10:52:13 -07:00
Jason Simmons
8d6ded45f0 Add a second per-frame callback that is invoked after the microtask queue is drained (#3632)
See https://github.com/flutter/flutter/issues/7626
2017-04-27 10:23:46 -07:00
Mikkel Nygaard Ravn
5fa1fcedaf Revert "Remove unused import (#3620)" (#3621)
This reverts commit cc931fe3f71539d3baacf1dd0e3b8a4444711996.
2017-04-22 14:26:08 +02:00
Mikkel Nygaard Ravn
cc931fe3f7 Remove unused import (#3620) 2017-04-22 14:16:13 +02:00
Adam Barth
3ed4684a09 Rename library to dart.ui (#3608)
This name is consistent with how the other `dart:` libraries are named now.
2017-04-19 09:56:22 -07:00
Ian Hickson
bcc8779cb8 Remove the Point class. (#3567)
* Remove the Point class.

* Add Size.contains and Rect.translate for consistency

* Make Offset and Size compare == with subclasses.

Without this we would break the _DebugSize hack.

* Fix copy/pasta

* Fix the examples in the engine repo
2017-04-12 13:45:46 -07:00
Ryan Macnak
1084a83f11 AOT for Fuchsia. (#3570) 2017-04-11 14:53:14 -07:00
Ryan Macnak
1fed16fb25 Adjust GN for removal of libdart, take two. (#3584)
Update targets only included in host_debug_unopt.
2017-04-11 09:52:54 -07:00
Ryan Macnak
6d4b153ba8 Revert "Adjust GN for removal of libdart. (#3583)"
This reverts commit f5d0004ebd0db95c4019ca27fde2aceb0b3fe3e3.
2017-04-10 17:07:28 -07:00
Ryan Macnak
f5d0004ebd Adjust GN for removal of libdart. (#3583) 2017-04-10 16:42:27 -07:00
Mikkel Nygaard Ravn
68194b8df8 Distinguish between null platform message and one with zero-byte payload (#3577) 2017-04-09 00:07:28 +02:00
Seth Ladd
9bc769a794 link to image in github (#3572) 2017-04-07 11:14:57 -07:00
Chinmay Garde
aa0f2c84c7 Roll Skia to 45a00cee88c0ea8ea175694cb94b26748713fe36 and update licenses. (#3569) 2017-04-06 11:49:36 -07:00
Jason Simmons
4c05830aaf Use the SkVertices::Builder API (#3549) 2017-03-31 15:16:45 -07:00
Jason Simmons
29f289acbb Remove dart:jni (#3546)
Fixes https://github.com/flutter/flutter/issues/9129
2017-03-31 13:07:52 -07:00
Jason Simmons
cd60a77725 Include build_config (for OS_ANDROID) in image_decoding.cc (#3537) 2017-03-28 18:25:28 -07:00
Florin Malita
5ee2ba9cb8 Roll Skia revision to 342977ced701d06df2b3d2eedd8b64aeae1eb5c5 (#3523)
* Roll Skia revision to 342977ced701d06df2b3d2eedd8b64aeae1eb5c5

* Updated license files
2017-03-28 10:25:02 -07:00
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