7213 Commits

Author SHA1 Message Date
James Robinson
dcb026188a [build] Add new flutter_app GN template for Fuchsia style package management (#2999) 2016-09-01 23:01:58 -07:00
Chinmay Garde
9dc8de122c Skia: Add crc32 sources when SK_CPU_ARM64 is defined. (#2997) 2016-09-01 14:38:33 -07:00
Chinmay Garde
5fa98fc672 Rework the skia/BUILD.gn to be more disciplined about not leaking private config information to dependents. (#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
8688206e72 Revert to using SkFontMgr_FontConfigInterface after the latest Skia roll (#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
Chinmay Garde
54706afba8 Avoid using [NSArray firstObject] on the Mac platform view. (#2993) 2016-09-01 10:53:10 -07:00
Adam Barth
e281b602d4 Build sky/engine on fuchsia (#2992) 2016-08-31 21:01:07 -07:00
Adam Barth
f102f9c1f5 Remove dead code (#2991)
This code is unused.
2016-08-31 20:44:10 -07:00
Adam Barth
d8d5708f61 Update to new harfbuzz path (#2990) 2016-08-31 20:30:20 -07:00
Chinmay Garde
4157e7d70c Don’t add the unsupported --enable-checked-mode flag to args in SkyActivity. (#2988) 2016-08-31 09:55:03 -07:00
Chinmay Garde
b03f0e43ba Setup SKP tracing base path for the Mac desktop platform. (#2984)
Replicates iOS behavior of placing trace files in the documents directory.
2016-08-31 09:50:04 -07:00
Chinmay Garde
0f87eabd3c Remove support for the —enable-checked-mode flag from the engine. (#2987) 2016-08-31 09:46:05 -07:00
Chinmay Garde
cdff6fa306 Respect the —enable-checked-mode flag when not running precompiled code instead of defaulting it on. (#2986) 2016-08-30 16:25:51 -07:00
Chinmay Garde
71dfef76fd Add trace event slices for the duration in which the engine produces a pipeline item. (#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
94c5be8e6d When rasterizing to a recorder backed canvas for SKP tracing, don’t attempt to update the raster cache. (#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
ddc75b854b Force anti-aliasing on clipRRect calls. (#2982)
Per recommendation from the Skia team. Benefits from optimizations applied in Skia for Chrome.
2016-08-30 14:11:21 -07:00
Chinmay Garde
72a8e2f19e Log trace file path when capturing an SKP in rasterizer_direct. (#2981) 2016-08-30 11:10:28 -07:00
Jason Simmons
39d071b94e Do not dereference the rasterizer on the UI thread in the animator (#2980)
The rasterizer may have been deleted on the GPU thread before Animator::Render
runs on the UI thread
2016-08-30 10:02:44 -07:00
Chinmay Garde
50b15874bd Fix Mac build error due to -Wsign-compare. (#2979) 2016-08-29 17:14:20 -07:00
Chinmay Garde
f9c86cddb8 Add a temporary engine systrace logger till the Dart timeline learns how to log to systrace. (#2978) 2016-08-29 17:03:59 -07:00
Jason Simmons
ce36db67ec Ensure that the rasterizer is shut down before the PlatformView is deleted (#2977)
Noticed this while looking at https://github.com/flutter/flutter/issues/5594
2016-08-29 16:59:02 -07:00
Chinmay Garde
357034d1df Bump up the thread priorities of the GPU, UI and IO threads on Android. (#2976) 2016-08-29 16:44:30 -07:00
Adam Barth
67d7caeb9f Attempt to fix build by adding factory (#2975) 2016-08-28 23:45:05 -07:00
Adam Barth
ef38a88cb3 Update Skia (#2974) 2016-08-28 21:49:16 -07:00
James Robinson
b0dc4a6316 [gn] Explicitly include common.gni in build files that use vars from it (#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
cf3cbfb7af Don’t depend on tonic/debugger in release since the Dart debugger is unavailable in product mode. (#2972) 2016-08-26 11:47:50 -07:00
John McCutchan
c4022b61fa Roll Dart to 024501679241ba19e03d548db1b1b438e0dabc49 (#2971) 2016-08-25 07:39:00 -07:00
John McCutchan
b2e592592f Roll Dart and Tonic forward (#2970) 2016-08-24 14:33:34 -07:00
Jason Simmons
7d729f66b4 Fix leak of PlatformViewAndroid when FlutterView is destroyed (#2969) 2016-08-24 13:45:26 -07:00
Chinmay Garde
dcd3874530 Keep track on the layer tree construction time in the animator. (#2968) 2016-08-23 17:03:38 -07:00
Chinmay Garde
d35e0805e0 Add “—endless-trace-buffer” to switch to an endless buffer from a ring buffer while tracing. (#2966) 2016-08-23 16:16:22 -07:00
Chinmay Garde
28e9b3bc49 Make the URL loader more resilient to dropping the start callback on the correct thread in case of early connection termination. (#2964) 2016-08-23 14:54:05 -07:00
Jason Simmons
acb7939404 Scale picture layers to the picture's cull rect (#2967) 2016-08-23 14:46:23 -07:00
Chinmay Garde
c7c94974bb Don't log GL connection information in debug. (#2965) 2016-08-23 12:18:46 -07:00
John McCutchan
98deb4f220 Register _flutter.listViews in profile mode (#2963) 2016-08-23 09:36:45 -07:00
Chinmay Garde
2e684230fa Simplify PictureLayer::Paint. (#2962) 2016-08-22 15:11:11 -07:00
Dragoș Tiselice
07b59dff2c Removed custom service definition logging. (#2961)
Since this functionality will be removed soon, this patch removes
the logging in order not to hinder the iOS development experience.
2016-08-22 14:00:23 -07:00
Adam Barth
0949efee24 Update buildroot (#2960) 2016-08-20 09:53:51 -07:00
Chinmay Garde
fc8b9777c3 Pipelines vend single use continuations that callers can complete at any time to signal readiness of a pipeline resource. (#2957) 2016-08-19 16:57:05 -07:00
Chinmay Garde
32ba859650 Only attempt to draw in the rasterizer if a valid layer tree is received. (#2958) 2016-08-19 16:03:14 -07:00
Chinmay Garde
e4704cc4ff Re-enable tracking layer tree construction time for the performance overlay. (#2956) 2016-08-19 15:22:58 -07:00
Chinmay Garde
82fbbd2fbb In hot mode, allow reloading platform views that are already running. (#2949) 2016-08-19 13:12:44 -07:00
Jason Simmons
19181be49c Remove obsolete vsync_provider assertion now that the fallback provider is available (#2955) 2016-08-19 13:09:54 -07:00
Chinmay Garde
f84c308f54 If the vsync provider is being replaced, make sure the animator expects no more signals from the old registration. (#2954) 2016-08-19 12:58:58 -07:00
Chinmay Garde
e9121df3bb Make the animator host an implicit fallback VSync provider in case platforms cant provide their own. (#2953) 2016-08-19 12:52:54 -07:00
Chinmay Garde
dd3d0cd45d Add a PlatformVSync trace event to VSyncProviderImpl.java. (#2951) 2016-08-18 18:21:23 -07:00
James Robinson
7cbe044033 Fix flutter_wtf_unittests linking on fuchsia (#2952) 2016-08-18 17:35:31 -07:00
Chinmay Garde
a6e340dfd0 Revert "Remove the create_ios_framework.py tool. (#2946)" (#2950)
This reverts commit 26f8970835335a3723509d1b04a39c4b4c2b963e.
2016-08-18 16:51:17 -07:00
Todd Volkert
2cf8b14487 Add config properties to specify snapshot blob file names. (#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
1d9a8ca051 Build WTF on Fuchsia (#2948)
Also, clean out some unneeded dependencies from engine/platform.
2016-08-18 16:13:06 -07:00
John McCutchan
b8c1fe7e46 Fix Android keyboard in hot mode (#2944) 2016-08-18 14:00:25 -07:00