7266 Commits

Author SHA1 Message Date
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
Adam Barth
8d102cbe40 Add hello_flutter and make it work on Fuchsia (#3016) 2016-09-11 15:53:48 -07:00
Adam Barth
62053fc957 Wire up font service on Fuchsia (#3015) 2016-09-11 13:34:31 -07:00
Adam Barth
57e98c9b24 Switch JSON parsing from //base to //third_party/rapidjson (#3014)
This removes another //base dependency and will let us reuse this code
on Fuchsia.
2016-09-10 23:33:20 -07:00
Chinmay Garde
a55fa1efb9 Add a —disable-observatory flag to explicitly disable observatory even in non-product modes. (#3012) 2016-09-09 15:54:07 -07:00
Chinmay Garde
23dabd4b70 Remove the enable_observatory instance variable from blink::Settings. (#3011)
We used to be able to toggle observatory via a command line flag. But now, we enable or disable observatory based on the Flutter product mode.

This also allows us to fix an issue where the —non-interactive flags was being hijacked by the Dart initialization logic to enable or disable observatory. However this flag was orignally meant for the standalone runner to launch either to run tests or to run a full graphics enabled window on the desktop.
2016-09-08 16:35:30 -07:00
Chinmay Garde
d3ba01d8a4 Work around a Clang issue where the compiler defines __ARM_FEATURE_CRC32 even though the crc32 instruction is unavailable. (#3010) 2016-09-08 11:01:09 -07:00
Adam Barth
92973b377b Remove Paragraph stubs (#3002)
We can now use the real thing on Fuchsia.
2016-09-07 22:33:56 -07:00
Adam Barth
d7f807c960 Factor runtime initialization into InitRuntime (#3009)
This makes the code easier to share between Fuchsia and stand-alone
Flutter.
2016-09-07 22:19:50 -07:00
Jason Simmons
737afe9b85 Skip rendering frames if the viewport metrics are unknown or empty (#3007) 2016-09-07 16:05:13 -07:00
Jason Simmons
2ef674c92d Roll lib/zip (#3006) 2016-09-07 13:21:48 -07:00
Adam Barth
e54ca9d627 Add asset bundle support on Fuchsia (#3005)
After this patch, Flutter apps on Fuchsia can access their asset
bundles. Unlike other platforms, the asset bundles are stored in memory
rather than in the file system.
2016-09-07 11:17:36 -07:00
Adam Barth
ca17c1cf76 Introduce UnzipperProvider (#3004)
This patch abstracts where the content of the zip file is stored.
Currently, zip files are stored in the file system, but in Fuchsia,
we're going to store them in memory (at least for the time being).
Rather than represent a zip file as a path in the file system, we
instead use an UnzipperProvider, which can create zip::UniqueUnzipper
objects on demand.
2016-09-07 00:22:27 -07:00
Adam Barth
81574be6f0 Switch to //lib/zip (#3003) 2016-09-07 00:07:54 -07:00