1683 Commits

Author SHA1 Message Date
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
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
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
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
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
James Robinson
99348cbf65 [build] Add new flutter_app GN template for Fuchsia style package management (flutter/engine#2999) 2016-09-01 23:01:58 -07:00
Chinmay Garde
b761c67571 Skia: Add crc32 sources when SK_CPU_ARM64 is defined. (flutter/engine#2997) 2016-09-01 14:38:33 -07:00
Chinmay Garde
5c71303ee8 Rework the skia/BUILD.gn to be more disciplined about not leaking private config information to dependents. (flutter/engine#2996)
* Move all private config information from skia_config to skia_library_config. This was causing most skia specific defines to be applied to all targets that depended on Skia. These defines were only used by the Skia implementation. Makes the command line invocation for our sources smaller and less confusing.
* Removes defines not present in the current Skia sources.
* Dont add both directories containing SkUserConfig.h from ext and the Skia sources. Depending on the order in which the config directory was specified on the command line, the sources would use a different config.
2016-09-01 12:37:38 -07:00
Jason Simmons
f4bf0f6e49 Revert to using SkFontMgr_FontConfigInterface after the latest Skia roll (flutter/engine#2994)
In older versions of Skia, there were two files named SkFontMgr_fontconfig.cpp.
We want to use the one that contains SkFontMgr_FCI.  That file was renamed
to SkFontMgr_FontConfigInterface.cpp

This caused the assert in https://github.com/flutter/flutter/issues/5694
2016-09-01 11:38:50 -07:00
Adam Barth
2761d7bcd8 Build sky/engine on fuchsia (flutter/engine#2992) 2016-08-31 21:01:07 -07:00
Chinmay Garde
66ecf81e48 Remove support for the —enable-checked-mode flag from the engine. (flutter/engine#2987) 2016-08-31 09:46:05 -07:00
Chinmay Garde
72eab498d0 Respect the —enable-checked-mode flag when not running precompiled code instead of defaulting it on. (flutter/engine#2986) 2016-08-30 16:25:51 -07:00
Chinmay Garde
e613297b5e Add trace event slices for the duration in which the engine produces a pipeline item. (flutter/engine#2985)
* Add trace event slices for the duration in which the engine produces a pipeline item.

* Trace the entire lifetime of an item in the pipeline.
2016-08-30 15:44:56 -07:00
Chinmay Garde
332de9c7d2 When rasterizing to a recorder backed canvas for SKP tracing, don’t attempt to update the raster cache. (flutter/engine#2983)
We could get into a situation where the second time we rasterize a picture for an SKP, the raster cache detects that the same picture is being repeated in subsequent onscreen frames and then proceeds to rasterize the contents to an offscreen texture. This not only causes an unnecessary cache entry, but also shows the cached image in the final SKP trace (which is not what was originally displayed on screen).
2016-08-30 14:52:39 -07:00
Chinmay Garde
0df374dd83 Force anti-aliasing on clipRRect calls. (flutter/engine#2982)
Per recommendation from the Skia team. Benefits from optimizations applied in Skia for Chrome.
2016-08-30 14:11:21 -07:00
Adam Barth
82f98b73ad Attempt to fix build by adding factory (flutter/engine#2975) 2016-08-28 23:45:05 -07:00
Adam Barth
18b5e9aebe Update Skia (flutter/engine#2974) 2016-08-28 21:49:16 -07:00
James Robinson
1ef5bf3a08 [gn] Explicitly include common.gni in build files that use vars from it (flutter/engine#2973)
runtime/BUILD.gn and ..core/BUILD.gn use flutter_runtime_mode which
is defined in common.gni. If the build comes through common/BUILD.gn
this is imported (implicity) but builds that depend on specific
files, like the Fuchsia build, won't have this imported.  This
imports the gni from the build files that use it instead of relying
on it already being there.
2016-08-26 13:48:01 -07:00
Chinmay Garde
52f70a61ff Don’t depend on tonic/debugger in release since the Dart debugger is unavailable in product mode. (flutter/engine#2972) 2016-08-26 11:47:50 -07:00
Chinmay Garde
a36164b0b7 Keep track on the layer tree construction time in the animator. (flutter/engine#2968) 2016-08-23 17:03:38 -07:00
Chinmay Garde
8fc97078ca Add “—endless-trace-buffer” to switch to an endless buffer from a ring buffer while tracing. (flutter/engine#2966) 2016-08-23 16:16:22 -07:00
Jason Simmons
70cc2b0e33 Scale picture layers to the picture's cull rect (flutter/engine#2967) 2016-08-23 14:46:23 -07:00
Chinmay Garde
e27ac27b87 Simplify PictureLayer::Paint. (flutter/engine#2962) 2016-08-22 15:11:11 -07:00
Chinmay Garde
1a424320f7 Pipelines vend single use continuations that callers can complete at any time to signal readiness of a pipeline resource. (flutter/engine#2957) 2016-08-19 16:57:05 -07:00
Chinmay Garde
915e97e4b3 Revert "Remove the create_ios_framework.py tool. (#2946)" (flutter/engine#2950)
This reverts commit d173acbd03254d214f2a0b9791f01be937c87628.
2016-08-18 16:51:17 -07:00
Todd Volkert
dd98748b48 Add config properties to specify snapshot blob file names. (flutter/engine#2943)
* Add config properties to specify snapshot blob file names.

This adds the ability of the shell to override the default
dart aot snapshot blob file names, and it wires up Android's
FlutterMain to recognize the properties in the app's manifest.

This will be used for flutter applications that build their
binary snapshots into files other than the default ones
that the engine uses.
2016-08-18 16:27:16 -07:00
Adam Barth
cc54935495 Build WTF on Fuchsia (flutter/engine#2948)
Also, clean out some unneeded dependencies from engine/platform.
2016-08-18 16:13:06 -07:00
Chinmay Garde
d173acbd03 Remove the create_ios_framework.py tool. (flutter/engine#2946) 2016-08-18 12:35:55 -07:00
Chinmay Garde
6cd3679c83 Make the engine provide layer trees to the rasterizer via a pipeline. (flutter/engine#2942) 2016-08-18 11:23:15 -07:00
Chinmay Garde
2f7fde0ebd Completely remove the platform/mojo shell. (flutter/engine#2940) 2016-08-17 15:13:05 -07:00
Chinmay Garde
b18dd4abd1 Add flutter::Pipeline to //synchronization. (flutter/engine#2939) 2016-08-17 15:05:43 -07:00