7279 Commits

Author SHA1 Message Date
James Robinson
83c01acce1 Revert "Roll to mojo/public @ e8a607c6f017017faf9aac73bc881c419a71f902 (#3052)" (#3062)
This reverts commit 92fdf25d391ff4518885bbbee768053f84563923.

This breaks the android x86 build:

gn gen --check in out/android_debug_x64
ERROR at //mojo/public/tools/BUILD.gn:59:9: Assertion failed.
        assert(current_cpu == "arm",
        ^-----
Only arm version prebuilt netowrk_service.mojo is available.
step returned non-zero exit code: 1
2016-09-27 14:11:08 -07:00
James Robinson
92fdf25d39 Roll to mojo/public @ e8a607c6f017017faf9aac73bc881c419a71f902 (#3052) 2016-09-27 13:07:47 -07:00
Jason Simmons
a1f81c8893 Roll buildroot (#3060) 2016-09-27 11:41:27 -07:00
Chinmay Garde
a3024c7afa If the platform requests setting up the resource context without making the context current, don’t attempt to create the GL native interface. (#3059) 2016-09-26 12:24:04 -07:00
Jason Simmons
8eab44c623 Implement ellipsizing of text in the engine (#3056)
See https://github.com/flutter/flutter/issues/4478
2016-09-26 11:30:11 -07:00
Chinmay Garde
2d585bc4a6 Extract a common interface out of GaneshCanvas (into GPUCanvas) that can also be used for the Vulkan canvas. (#3058) 2016-09-24 20:50:10 -07:00
Chinmay Garde
f5683b9937 Remove the systrace logger. Dart can now redirect traces to systrace. (#3057) 2016-09-23 16:56:59 -07:00
Chinmay Garde
9eb446e0d5 Move shell to //flutter and split shell/BUILD.gn into smaller pieces for each subcomponent. (#3053)
* Namespaces have been updated to reflect the move from //flutter/sky/shell to //flutter/shell.
* shell/BUILD.gn file has been split into smaller GN files for each subcomponent of the shell (common, GPU, diagnostic, testing).
* GN dependencies have been rewritten to stop exposing common shell dependencies as public. Duplicates have also been removed.
* GPU subcomponent has been updated make it more suitable for Vulkan integration.
* The GLFW backend has been resurrected.
2016-09-23 15:33:25 -07:00
Chinmay Garde
52c1243f40 Roll buildroot to pull in Android NDK update. (#3055) 2016-09-23 13:15:28 -07:00
Adam Barth
1049105d86 Support RGB_x888 on Fuchsia (#3054)
The new boot sequence on Fuchsia now gives us the more accurate RGB_x888 pixel
format, which we should support. Also finish pushing pixels to the screen
before drawing new pixels.
2016-09-22 15:35:59 -07:00
Chinmay Garde
19ff4df805 Update buildroot. (#3051) 2016-09-21 14:00:31 -07:00
Adam Barth
687e89e310 Revert "Wire up mojo tracing (#3047)"
This patch depends on another patch that hasn't landed yet.

This reverts commit 960da66f34fb7bd219c0cb8d313b25c8c54c1034.
2016-09-21 12:29:11 -07:00
Thomas Voß
960da66f34 Wire up mojo tracing (#3047)
* Wire up to mojo::tracing::* infrastructure.

* Initialize tracing as early as possible.

* Make dependency specific to fuchsia.
2016-09-21 12:18:27 -07:00
Chinmay Garde
75673cb0f9 Run the download_android_tools.py in a gclient hook. (#3050)
Originally, this was a step that had to be carried out manually. Presumably because we did not want developers to download the Android SDK and NDK if they were not targetting Android. In practice, this is rarely the case. Even the buildbots unconditionally run the script (though they don’t need Android artifacts on the Mac since there is no Mac to Android builder).
2016-09-21 12:05:02 -07:00
John McCutchan
da488fe303 Fix isolate spawn when running from source (#3041) 2016-09-21 07:55:55 -07:00
James Robinson
3551e7a48e Add media.dart to flutter_services, update copyright year (#3049)
This adds media.dart which was omitted from flutter_services and fixes
incorrectly generated copyright headers to reflect the current year.
2016-09-20 16:39:32 -07:00
Chinmay Garde
b843b255b7 Make the creation of VulkanWindow platform agnostic by refactoring out Android specific surface creation routines. (#3048) 2016-09-20 15:55:48 -07:00
James Robinson
fda77c34de Add flutter_services package to uniformly expose services to Flutter library (#3046)
This adds a flutter_services package responsible for exposing the Dart
interfaces exported by the engine in a uniform fashion, regardless of
how and where the generated code for the interfaces are organized.
2016-09-20 14:57:56 -07:00
Adam Barth
1737413218 A Color.fromRGBO (#3043)
Sometimes it is convenient to construct a color from an opacity rather than an
alpha value.

Fixes https://github.com/flutter/flutter/issues/5205
2016-09-20 14:31:05 -07:00
Chinmay Garde
27a7af49ad Update flutter/DEPS to point to latest buildroot. (#3045) 2016-09-20 14:26:40 -07:00
Chinmay Garde
5e4cb2bcc8 Remove //mojo/services/network implementations (oknet and ns_net). (#3013) 2016-09-20 14:18:18 -07:00
Chinmay Garde
c5b61691b4 Remove unnecessary log in FontCacheMac.cpp. Spams tests. (#3044) 2016-09-20 10:59:06 -07:00
Zachary Anderson
1b73d4d06f Pull boringssl generated source from boringssl_gen repo (#3042) 2016-09-20 09:17:38 -07:00
Adam Barth
6c5315c3a1 Remove deprecated Skia enums (#3037)
Apparently Skia would like to remove these enum values.

Fixes https://github.com/flutter/flutter/issues/5912
2016-09-18 21:15:52 -07:00
James Robinson
ef3ef93afa Export source_dir variable in flutter_app GN template (#3039) 2016-09-18 14:14:14 -07:00
Jason Simmons
9d98290ebe Update how flutter_gdb finds the root of the engine source tree (#3038) 2016-09-16 17:20:56 -07:00
Adam Barth
44f0c5c9fb Remove the startup flash on Android (#3036)
We need to block in the surfaceChanged callback until we can swap the GL
surface with some content in order to avoid flashing transparent and then
black.

Fixes https://github.com/flutter/flutter/issues/5373
2016-09-16 14:46:36 -07:00
Jason Simmons
7b2aa8f796 Add an FlutterView API that captures the last frame as a bitmap (#3035) 2016-09-16 14:00:49 -07:00
Adam Barth
1992ba5f61 Fix color swapping on Fuchsia (#3034)
Previously we were swapping the wrong color channels. This change makes it
correct.
2016-09-15 17:54:45 -07:00
Chinmay Garde
1b67eb2b82 Setup a vulkan window with device selection and swapchain setup. (#3033) 2016-09-15 17:38:16 -07:00
Adam Barth
e4121f80a9 Fix bug found by framework test 2016-09-15 12:19:58 -07:00
Adam Barth
9fe7992df5 Update DCHECKS 2016-09-15 12:06:53 -07:00
Adam Barth
25cf81e02c Fixup updateWindowWindowMtrics types 2016-09-15 11:02:13 -07:00
Adam Barth
a971482577 Polish dart:ui API (#3032)
This patch makes three API changes:

 * The dart:ui library now always communicates in physical pixels. The
   framework is responsible for converting to whatever logical coordinate
   system it wishes to use.
 * The textBaselien property is now on TextStyle rather than ParagraphStyle,
   which will let us choose which baseline to use on a per-span basis rather
   than on a per-paragraph basis.
 * This patch also removes the old MojoServices function endpoints.

Fixes https://github.com/flutter/flutter/issues/3779
Fixes https://github.com/flutter/flutter/issues/1360
2016-09-15 10:26:04 -07:00
mikejurka
22d8a21731 Fuchsia: convert framebuffer pixel format after drawing if needed (#3031) 2016-09-15 08:43:39 -07:00
Adam Barth
18780f441b Fix checked mode 2016-09-14 15:10:20 -07:00
John McCutchan
3e159351f3 Add 'ext.ui.window.scheduleFrame' service protocol extension (#3030) 2016-09-14 11:32:57 -07:00
Adam Barth
edcb3aa452 Wire up microtasks on Fuchsia (#3019)
This patch teachs us how to observe tasks on Fuchsia and kick off the
microtask queue.
2016-09-14 11:31:50 -07:00
Ian Hickson
1ab79a2117 Update CONTRIBUTING.md (#3028)
Have the sample build script exit after the first failed build.
2016-09-14 10:30:36 -07:00
Seth Ladd
3ccdc5b13f say what the engine is (#3029)
* say what the engine is

closes https://github.com/flutter/flutter/issues/289

* Update README.md
2016-09-14 10:25:19 -07:00
Ian Hickson
e9dd3e4e0d Fix even more problems with ParagraphStyle.toString (#3027)
Also, with the comments.
2016-09-13 23:41:02 -07:00
Ian Hickson
de5ed27031 Make the script rebase the right repository (#3025) 2016-09-13 23:40:50 -07:00
Ian Hickson
930c9e7265 Fix the encoding of TextStyle and ParagraphStyle (#3026)
We were off by one on, uh, everything.
2016-09-13 23:20:20 -07:00
mikejurka
9b320d8151 Update to use sk_sp text blob API (#3024) 2016-09-13 15:34:45 -07:00
Ryan Macnak
cd333e66eb Mark libraries as loaded before creating the script snapshot. (#3023)
Fixes #5814.
2016-09-13 10:46:39 -07:00
mikejurka
12fc138524 use sk_sp<SkData> instead of SkData* (#3021)
(skia change 42943c8aa9c611c18ad0f1a30a27669f3d82239c)
2016-09-12 16:42:52 -07:00
Chinmay Garde
0fe462df7b Update buildroot revision. (#3020) 2016-09-12 14:54:42 -07:00
Dragoș Tiselice
67888c5993 Added drawArc to Canvas. (#2995)
* Added drawArc to Canvas.

Added a way to call SkCanvas::drawArc from Dart. This method is
optimized for the arc case and should be faster that drawing paths.

* Removed implementation details from docs.

* Added more details to the docs.
2016-09-12 13:41:01 -07:00
Adam Barth
c95bb6253f Move font selector into //flutter/runtime (#3018)
This patch makes it easier to share the code with
//flutter/content_handler on Fuchsia.
2016-09-11 22:22:00 -07:00
Adam Barth
93913c2b52 Use mx_process_self() now that this is required (#3017) 2016-09-11 15:54:20 -07:00