2113 Commits

Author SHA1 Message Date
Chinmay Garde
360755d6c8 If the platform requests setting up the resource context without making the context current, don’t attempt to create the GL native interface. (flutter/engine#3059) 2016-09-26 12:24:04 -07:00
Jason Simmons
692aabce8f Implement ellipsizing of text in the engine (flutter/engine#3056)
See https://github.com/flutter/flutter/issues/4478
2016-09-26 11:30:11 -07:00
Chinmay Garde
ca79a2a30f Extract a common interface out of GaneshCanvas (into GPUCanvas) that can also be used for the Vulkan canvas. (flutter/engine#3058) 2016-09-24 20:50:10 -07:00
Chinmay Garde
eab36e0efe Remove the systrace logger. Dart can now redirect traces to systrace. (flutter/engine#3057) 2016-09-23 16:56:59 -07:00
Chinmay Garde
b2e97acdb8 Move shell to //flutter and split shell/BUILD.gn into smaller pieces for each subcomponent. (flutter/engine#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
722a87a076 Roll buildroot to pull in Android NDK update. (flutter/engine#3055) 2016-09-23 13:15:28 -07:00
Chinmay Garde
14a3432be2 Update buildroot. (flutter/engine#3051) 2016-09-21 14:00:31 -07:00
Adam Barth
4acfeefb58 Revert "Wire up mojo tracing (#3047)"
This patch depends on another patch that hasn't landed yet.

This reverts commit 2a657e55a90307decc50f56f3512ae0d412bcef4.
2016-09-21 12:29:11 -07:00
Thomas Voß
2a657e55a9 Wire up mojo tracing (flutter/engine#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
70e14cacb6 Run the download_android_tools.py in a gclient hook. (flutter/engine#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
4c78039b5f Fix isolate spawn when running from source (flutter/engine#3041) 2016-09-21 07:55:55 -07:00
James Robinson
8c4eeb6676 Add media.dart to flutter_services, update copyright year (flutter/engine#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
37ee7c506c Make the creation of VulkanWindow platform agnostic by refactoring out Android specific surface creation routines. (flutter/engine#3048) 2016-09-20 15:55:48 -07:00
James Robinson
c593068449 Add flutter_services package to uniformly expose services to Flutter library (flutter/engine#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
3a895f71ae A Color.fromRGBO (flutter/engine#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
23848620be Update flutter/DEPS to point to latest buildroot. (flutter/engine#3045) 2016-09-20 14:26:40 -07:00
Zachary Anderson
de4b5930b3 Pull boringssl generated source from boringssl_gen repo (flutter/engine#3042) 2016-09-20 09:17:38 -07:00
Adam Barth
b9b73d3110 Remove deprecated Skia enums (flutter/engine#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
71b3e0cd3b Export source_dir variable in flutter_app GN template (flutter/engine#3039) 2016-09-18 14:14:14 -07:00
Jason Simmons
0f437854c8 Update how flutter_gdb finds the root of the engine source tree (flutter/engine#3038) 2016-09-16 17:20:56 -07:00
Chinmay Garde
923c36f013 Setup a vulkan window with device selection and swapchain setup. (flutter/engine#3033) 2016-09-15 17:38:16 -07:00
Adam Barth
140e085e64 Fix bug found by framework test 2016-09-15 12:19:58 -07:00
Adam Barth
5a040b1445 Update DCHECKS 2016-09-15 12:06:53 -07:00
Adam Barth
41099a5147 Fixup updateWindowWindowMtrics types 2016-09-15 11:02:13 -07:00
Adam Barth
45ddf03738 Polish dart:ui API (flutter/engine#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
Adam Barth
a2b853d610 Fix checked mode 2016-09-14 15:10:20 -07:00
John McCutchan
4ea908ee09 Add 'ext.ui.window.scheduleFrame' service protocol extension (flutter/engine#3030) 2016-09-14 11:32:57 -07:00
Ian Hickson
1ac1e37f63 Update CONTRIBUTING.md (flutter/engine#3028)
Have the sample build script exit after the first failed build.
2016-09-14 10:30:36 -07:00
Seth Ladd
3a3fdfc857 say what the engine is (flutter/engine#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
b63abcb0c8 Fix even more problems with ParagraphStyle.toString (flutter/engine#3027)
Also, with the comments.
2016-09-13 23:41:02 -07:00
Ian Hickson
b134c83830 Make the script rebase the right repository (flutter/engine#3025) 2016-09-13 23:40:50 -07:00
Ian Hickson
8e3cf29c2f Fix the encoding of TextStyle and ParagraphStyle (flutter/engine#3026)
We were off by one on, uh, everything.
2016-09-13 23:20:20 -07:00
Ryan Macnak
a1b268babc Mark libraries as loaded before creating the script snapshot. (flutter/engine#3023)
Fixes #5814.
2016-09-13 10:46:39 -07:00
Chinmay Garde
0736739f57 Update buildroot revision. (flutter/engine#3020) 2016-09-12 14:54:42 -07:00
Dragoș Tiselice
ac99851ce8 Added drawArc to Canvas. (flutter/engine#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
8b925fcbb1 Move font selector into //flutter/runtime (flutter/engine#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
051dcb0c26 Add hello_flutter and make it work on Fuchsia (flutter/engine#3016) 2016-09-11 15:53:48 -07:00
Adam Barth
893a300c92 Switch JSON parsing from //base to //third_party/rapidjson (flutter/engine#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
613ea2c91f Add a —disable-observatory flag to explicitly disable observatory even in non-product modes. (flutter/engine#3012) 2016-09-09 15:54:07 -07:00
Chinmay Garde
7489deea92 Remove the enable_observatory instance variable from blink::Settings. (flutter/engine#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
32da110110 Work around a Clang issue where the compiler defines __ARM_FEATURE_CRC32 even though the crc32 instruction is unavailable. (flutter/engine#3010) 2016-09-08 11:01:09 -07:00
Adam Barth
0373f4a3b3 Remove Paragraph stubs (flutter/engine#3002)
We can now use the real thing on Fuchsia.
2016-09-07 22:33:56 -07:00
Adam Barth
bb6d32b498 Factor runtime initialization into InitRuntime (flutter/engine#3009)
This makes the code easier to share between Fuchsia and stand-alone
Flutter.
2016-09-07 22:19:50 -07:00
Jason Simmons
e9f614d9bb Roll lib/zip (flutter/engine#3006) 2016-09-07 13:21:48 -07:00
Adam Barth
2ad422b25f Add asset bundle support on Fuchsia (flutter/engine#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
deee07150c Introduce UnzipperProvider (flutter/engine#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
04bb1060ab Switch to //lib/zip (flutter/engine#3003) 2016-09-07 00:07:54 -07:00
Chinmay Garde
58237abebc Update Dart revision. (flutter/engine#3001)
Pulls in fixes related to incremental builds of Dart sources that end up in the snapshotter.
2016-09-02 14:45:56 -07:00
Chinmay Garde
e963eba8fd Remove references to unused GN files and flags. (flutter/engine#2998)
* Remove references to unused GN files and flags.
* Fix Linux build.
2016-09-02 12:31:54 -07:00
James Robinson
57a5f4cea4 Update flutter_app template to new .packages filename scheme (flutter/engine#3000)
The name of the generated packages file now includes the target name.
2016-09-02 11:12:13 -07:00